2d game anthony newman brother
TRANSCRIPT
2d game
This is me starting to make a sprite for my game
And this is the end product
This is me creating the sprite properties
This is me creating a player object
This is me coding my sprite.
This is the coding finished
This is me creating a level to test my sprite
I will be setting movement limits because the sprite can go off the screen and I don’t want that.
This is me setting movement limits
This means that if the sprite goes to 32 pixels it won’t be able to go any further
I have set my movement limits
Here you can see that the sprite can’t go off the screen now
I am now going to create a scrolling star background
Here I have put the background on, now I’m going to make it scroll
Here is the finished background, it is a scrolling background
I am now going to create a thrust coming out from my sprite
Here is the finished
product
here is the finished code for the particle system.
I am now creating bullets for my sprite
here is the code for the bullets
Here you can see the bullets
Here I am creating the enemy spawner and setting its movements.
Here is the finished coding
I am now going to create where the enemy can be destroyed by my laser.
Here you can see that I have destroyed
the bottom enemy.
I made it so that the bullet doesn’t
continue to be on the screen after it has destroyed the enemy
I am going to make it so that the enemy can destroy me.
I have made it so that if the
bullet goes outside the room it is destroyed.
I am making the shield for my player.
Here you can see that I
have a health bar now.
Here you can see that my health bar has gone down
I’m creating it where the player dies and the game restarts