How to make for the game?

I create games in js I am a newbie.I wanted to ask a question how to make a game in js for the canvas more and more optimized?Would like to make games that would run and not load the computer with a working browser.
March 19th 20 at 09:24
2 answers
March 19th 20 at 09:26
JavaScript? That is not loaded? No way.

Seriously, try to write concise code, less useless variables to optimize function. Here it is possible for a book to paint.
To heap - optimize textures (weight game more often because of them), to understand in General the process of rendering (to know what not to do) to use pools, Preinstallation and a bunch of other scary words.

But! First and foremost is to learn how to PROFILE the APPLICATION. To understand what exactly you retards. - Kiara5 commented on March 19th 20 at 09:29
March 19th 20 at 09:28
To simplify to the minimum game codes, to avoid water and crap.

Find more questions by tags Web DevelopmentDevelopment of gamesJavaScript