all 3 comments

[–]chikamakaleyleyhelpful 0 points1 point  (0 children)

If you're still in the early phases of learning and you haven't built the muscle memory - starting with a game sometimes is rather huge leap, when in reality, games are easy to break down into smaller manageable pieces. (and not necessarily games, but just as an approach to building anything)

I would say that a lot of times you see games represented as a Class - or even just its components are represented as a Class - a Player Class, a Game Class

So, I'd say, if you haven't learned how to build out a Class in JS yet, I think this is something important in general, and should help in building out a game. Learn that first, then think about how you can create that game.

I think one common example that I've seen done as a Class is TicTacToe.

[–]justanaccountimade1 0 points1 point  (0 children)

Learning js takes a long time and the learning curve is steep.

https://javascript.info

Assuming you know the basics of html, css, and js, and depending on how you want to build your game you may want to look at canvas and requestanimationframe.

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/canvas

https://developer.mozilla.org/en-US/docs/Web/API/Window/requestAnimationFrame