Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Day 6

As suggested the style got cleaned up today and it's a bit more uniform. 

Also there was a silly bug in the spawning code that got fixed.:It could happen that very few or even no enemies at all would spawn in a level. The origin of this bug was a routine that checked if a square is still on screen. If it wasn't, it got deleted. And with the change in aspect ratio I changed the spawning regions so it could be that a square spawned off screen... 

The lesson to be learned here: If you include code from another project (the spawning was taken from Catch²), make sure to check if the logic still applies. In this case it was of course not the case. All squares fall to the center of the screen and either get destroyed by the paddle or when hitting the circle. So they could never be outside of the screen (if not spawned there) and therefore never need to be deleted.