In this cycle I am to be able to add the lasers to the player, which interact with the enemy when they colide and then this causes an animation for the enemy to explode.
Usability Features
Key Variables
Variable Name
Use
laser
This will be each individual laser within that group, which I will be creating.
lasersGroup
This will be the group of the lasers in the game.
Pseudocode
procedure lasers
create lasers group (laser texture)
create multiple from lasers group (100)
enable lasers
add collisions from laser to enemy
end procedure
Development
Outcome
Challenges
It was most challenging in this cycle to get the animations to work once the player had been hit, as you can't just play a gif once the enemy is hit, and add it over where the player is. You have to use spritesheets and animate each frame individually, with certain sizes for each frame and it just plays each set square quickly one after eachother to make a gif of sorts. I found it challenging to get this to show up in game as it kept not showing up on screen. Additionally it took some tweaking to be able to get the frame rate, as the size of each picture square correct, as one small mistake can make everything not fall into the place where it should be and this causes visual errors which aren't appealing to the player.
Testing
Evidence for testing
Tests
1 Run code Thing happens As expected Pass 2 Press buttons Something happens As ex