Tags

,

Axel Eriksson : Group 9 : Flight of the Giraffa

New week, new assignments…
This week and the latest week I have been working on another power up, not the one with lazer beams. This one contains meteors, meteors that spawn randomly from the right side going left.

When I thought of doing this assignment I took upon my self, it felt pretty logical and easy to do. I was wrong but at the same time right, first it was a bit slow but when it all went smooth everything fell into pieces and I knew exactly how to do it. I started by coding a file that can read an object and draw it on the screen. If you call the method to be worked through. With that said, I mean that you make a code for something that works perfectly fine, but it does not run automatically and the object is drawn out on the screen. It is not that simple, you have to call the whole code you just created to make it run through it and do everything you want to. You could say that it is like a system where you need to push the button to make it work, but in this case the button is call. In the picture it is the game loop, everything need to be called in the game loop to make it a part of the game.

Namnlös.png
This meteor power up comes from the right side flying towards the player, it is not yet fixed that it targets the players position when it spawns so it just goes from a randomly place from the right side and flies to left. This makes it a bit easier to position yourself, but will be changed soon enough. If the player gets hit by this meteor you will die, but their is a way you can get an advantage by these meteors. The only thing you have to do is shooting at it till it explodes, that makes it a chance to spawn a a rainbow meteor that you can be destroyed as well by attacking it. Now if you succeed by destroying both the meteor and then the rainbow meteor it will clear the whole screen of enemies, this is a good way to make it easier to get out of sticky situations when playing the game and are surrounded by enemies.rainbowasteroid_spritesheet_128.pngNamnlös.png

That is what I did last week and I hope you understand everything, even if the grammar is completely crap, hehe..