Menu
I am currently making 2d platformer game with javascript and I need to make a bunch of different blocks for the ground and all of the tiles. How can I make a bunch of variables without having to individually define each one. I don’t know much about arrays but I imagine they would be how you do this, I just can’t find anything on google on how to do this. I want to be able to control every block in the game at once to check for collisions with the player and I don’t want to make different variables for all of them.