csci312a-s19 / fp-rollrace

fp-rollrace created by GitHub Classroom
0 stars 2 forks source link

Event listeners should not be created in render function #201

Open anthoturc opened 5 years ago

anthoturc commented 5 years ago

In GameEngine.js there is an event listener being added to the body every time that render is called (a lot).

kaidelorenzo commented 5 years ago

no I think this might cause lag when you hold down the spacebar or in the change key menu but IDK