When I was that age I made a bouncing ball in Flash (ActionScript, similar to JS).[0] This is still my "hello world" when trying out a new game dev environment because it covers: - drawing - movement - input - acceleration - gravity - friction - collision And all of these in essentially the simplest possible way. Most of all, it's a lot of fun to have a bouncing ball, and even more fun if you can use the keyboard or…
For anyone wanting to do this in JS, check out Dan Shiffman’s Nature of Code https://natureofcode.com/ Uses p5js, so nicer than pure canvas. Note there’s a big leap from making a simple physics toy to making a game .
I rebranded the ball to a box and made it so it plays a rocket animation in each (opposite) direction when you press the arrow keys. (In Flash, this was trivial!)
Made it so you had a certain amount of fuel and had to land to refuel.
I remember all of this taking a day or so, but I might be misremembering.
I had it mostly working but then I changed something, broke it, and didn't know how to fix it. (Box kept sinking through the floor)
These days I'd probably just use Box2D hahah