Wednesday, 28 September 2016

PacMan (Selfmade)


Creating the Pacman game was slightly more complicated than Breakout was. Some of the mechanics wouldn't work and kept crashing the game. This was mostly the sound, especially the chomping one. It seemed as though the sound was on a constant loop causing it to crash. However, removing the sound and adding a new one fixed it.

The Pacman moves in all directions (Left, right, up and down) and faces the way of which button is pressed on the keyboard. However the animation of the chomping stops once the Pacman begins moving. This is due to the gif image needing to stop for a few seconds. It is not a huge problem though.

At the start of the game Pacman has three lives. The player receives a message telling the player that they have lost, then the game will automatically restart. The player has three lives and once they all go down the game is over.

All moving objects bounce off of the walls when they hit, they will then return in the same direction as they came. This goes for the ghosts who will bounce back and forth at a speed of 1. When progressing to the next room the ghosts movement is much faster and the dots are placed in much more difficult places.

Pacman gains a point for every dot he eats. On the first room the point maximum is 25, on the second room the point maximum is 35, making the second room much more difficult than the first.
 
 
When the players has gained 25 on the first room, it will then go onto the next. After completing the next room the game will end with a message saying "You have won!".
The game has sound for when Pacman eats a dot and when he dies.

Tuesday, 20 September 2016

Breakout (selfmade)



As I made my breakout game, I learned how to create sprites, objects and make them move with the buttons pressed on the keyboard. However, there were a few issues. One being the bat going through the wall. I quickly learned how to fix this. Another being, that when the player moves through the exit a message should appear telling them they have won. I have yet to figure out how to fix this and will be working on it. Lastly, there is no sound. This makes the game less exciting and boring for the player.

I have now added a menu with bright colours and instructions on how to play my game. The words are easy to read as the colours aren't too painful for the eyes. In my first paragraph I mentioned that there wasn't a message telling the player that they had won or lost. This has now been added into the game along with sound effects when the ball hits the bricks, the bat and the wall.
Also, every time the player breaks the bricks, a point is added, when the player loses, the points go down.
There was an issue, however, with the winning exit saying "You have lost!". This took a while to sort out and it sometimes switches back to saying "You have lost!". Another thing is that the game some times crashes with no reason. This has stopped significantly since I attempted to sort out the winning screen.
Now, after help the winning screen is fixed. The game will now also restart after winning or losing.

After looking at my old design, I found it to be boring and bland. I have added colour and made the background more exciting to keep the player from getting bored or sick of the game.