AndreasRoither / Bombermann

Web Project - Bombermann Classic Remake
MIT License
2 stars 0 forks source link

Player.kill is called to often #32

Closed AndreasRoither closed 6 years ago

AndreasRoither commented 6 years ago

myPlayer.killPlayer is called everytime the bomb flames are drawn which is too much

AndreasRoither commented 6 years ago

Moved myPlayer.killplayer function call from bomb.draw to bomb.makeExplosion since that one gets called only once -> a bomb with 2 Length results in 9 funciton calls now, instead of a function call every 16ms