terrybuck / Evilution

2D Game where one attempts to thwart an ever evolving evil
0 stars 0 forks source link

Add edge detection for screen #11

Open terrybuck opened 5 years ago

terrybuck commented 5 years ago

Add some code to prevent the hero and Boss from leaving the screen

andrewanderson commented 5 years ago

I was just coming here to log this one. +1

terrybuck commented 5 years ago

added edge detection for hero character and made sure all randomly generated characters are generated on screen. I still need to add something to detect a screen resize, as current edge detection works on the initial render size of the canvas.

commit f356d868c05a22861272fde7eeea53f38958d2f4