Boomboom shake the room

Well I I managed to get some work done on this today even if it was not as much as yesterday, but I did do load of gardening as well today. So after yesterday doing a lot of sprite work, today I wanted to focus on getting map stuff done, I had to do some extra work on the sprites, to create a duplicate of the builds, so I can drop this on top of the map and have the explosions work in between the background and this new foreground. That way it gives a sense of depth. I also reworked some of the cloud sprites.

I then looked into how to do the explosions seeing as drawing them in sprites is a bit well, shit. I found a tutorial on creating player bullets, then took that and modified it slightly whilst also adding in a few bits and came up with something that works quite well. My idea woudl be to scale these explosions depending where on the y axis they appear. The higher up the screen the smaller they are the lower the bigger. I also took this and reworked it a bit to create clouds randomly the would track accross the screen and when out of the view, they reset and start to come back through. This was all done in a test file which you can see here, click to open

I then took what I had there (explosions) and pasted the code over to the main file. I had a few issues as I got errors even though the code should have worked but in the end I deleted it all out and re pasted in and wrote the functions I had lost and it worked. I also pulled over the shake function as well I had tried and got that working in this. You can see it working here with the game backdrop and explosions behind buildings, same as before hit z to cause and explosion.

>>back<<