I would like to make a 2d game using plain Javascript this coming weekend. What do you suggest?

  • 4
    Html and css
  • 5
    to google and read about game mechanics, and mathematics for games.
  • 2
    Tic tac toe?
  • 2
    Make somethin like Facebook but better instead
  • 2
    Who told you about my Chinese Facebook 😮
  • 3
    @SortOfTested New Facebook?

    Mother fuck....jiiiann yaaaaaang
  • 6
    Why use plain js, and not a library like p5.js or three.js, which would be easier and have have a bunch of tutorials.
  • 2
    @MrNitrogen agreed, p5.js is a great one
  • 2
    One div = one pixel
  • 2
    @MrNitrogen obviously he needs two.js
  • 3
    Does WebGL count as "plain javascript" since its integrated into browsers and not an external library?

    If so, look into WebGL, which is just a wrapper for OpenGL accessible from a browser through javascript.

    It's the closest and most performant (as far as I know) way to drawing things on screen.

    Though if you don't want to struggle with a lot of boilerplate code look for an engine. I believe RayLib has a .js extension
  • 1
    make a game that has physics in it. like gravity and stuff
Add Comment