In pixel pad I learned how to program my own game. I reserved help from the tutorials and hears what I learned. In video one, I learned how to make a spaceship appear on the game, first I had to a choose a spaceship that I liked after I had to make the spaceship move. By saying is key is pressed, I was able to make the spaceship move. |
In video 2, I learned how to to add an enemy to my game. I chose one sprite as one of my enemy. I had to to make the enemy spawn on my screen by saying new object is 'Enemy'. I chose my enemy speed as 10 because I want to make the game a little harder. I also chose the size of my enemy I chose 1.0 because i wanted my enemy a little bigger than my player. |
In video 4, I learned how to shoot my bullet. By saying key was pressed I was able to shoot bullets when I pressed space bar. I also had to make the bullet destroy itself, if the bullet never got destroyed it might lag the game so by saying if self.y is 350 then destroy the bullet. I also made a spawner for the enemy so the enemy can spawn while playing the game. |
In video 5, I learned how to make my enemy spawn in random places. By saying self.x I was able to chose where I want my enemy to spawn. I also added my score system, that allowed me to display my score on my screen and now player can keep track of there score.
|
|