Game programming – Week 11

Game programming I - Week 11

This week, large progress has been made. We have added walls through the use of a text file.

1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1
1:1 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 1:1 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 1:1
1:1 0:2 1:1 1:1 0:2 1:1 1:1 1:1 0:2 1:1 0:2 1:1 1:1 1:1 0:2 1:1 1:1 0:2 1:1
1:1 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 1:1
1:1 0:2 1:1 1:1 0:2 1:1 0:2 1:1 1:1 1:1 1:1 1:1 0:2 1:1 0:2 1:1 1:1 0:2 1:1
1:1 0:2 0:2 0:2 0:2 1:1 0:2 0:2 0:2 1:1 0:2 0:2 0:2 1:1 0:2 0:2 0:2 0:2 1:1
1:1 1:1 1:1 1:1 0:2 1:1 1:1 1:1 0:2 1:1 0:2 1:1 1:1 1:1 0:2 1:1 1:1 1:1 1:1
0:0 0:0 0:0 1:1 0:2 1:1 0:2 0:2 0:2 0:2 0:2 0:2 0:2 1:1 0:2 1:1 0:0 0:0 0:0
1:1 1:1 1:1 1:1 0:2 1:1 0:2 1:1 1:1 0:0 1:1 1:1 0:2 1:1 0:2 1:1 1:1 1:1 1:1
0:2 0:2 0:2 0:2 0:2 0:2 0:2 1:1 0:0 0:0 0:0 1:1 0:2 0:2 0:2 0:2 0:2 0:2 0:2
1:1 1:1 1:1 1:1 0:2 1:1 0:2 1:1 1:1 1:1 1:1 1:1 0:2 1:1 0:2 1:1 1:1 1:1 1:1
0:0 0:0 0:0 1:1 0:2 1:1 0:2 0:2 0:2 0:2 0:2 0:2 0:2 1:1 0:2 1:1 0:0 0:0 0:0
1:1 1:1 1:1 1:1 0:2 1:1 1:1 1:1 0:2 1:1 0:2 1:1 1:1 1:1 0:2 1:1 1:1 1:1 1:1
1:1 0:2 0:2 0:2 0:2 1:1 0:2 0:2 0:2 1:1 0:2 0:2 0:2 1:1 0:2 0:2 0:2 0:2 1:1
1:1 0:2 1:1 1:1 0:2 1:1 0:2 1:1 1:1 1:1 1:1 1:1 0:2 1:1 0:2 1:1 1:1 0:2 1:1
1:1 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 1:1
1:1 0:2 1:1 1:1 0:2 1:1 1:1 1:1 0:2 1:1 0:2 1:1 1:1 1:1 0:2 1:1 1:1 0:2 1:1
1:1 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 1:1 0:2 0:2 0:2 0:2 0:2 0:2 0:2 0:2 1:1
1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1 1:1

We were also able to add both pellets through the use of this text file and a ghost. We have however not been able to add collision so far and are still trying to make pac-man move continuously.
Our ghost moves now, but it is not fully functional. We have parts of the audio, but don’t know how to proceed so we got stuck. We also worked on the start state, but the program meets problems where you can’t connect state change to the spacebar and it doesn’t change the state to gamestate.

Filed under: 5SD022, Game programming I – 5SD022, University Tagged: game, Pac-man, programming, university, uppsala

About Marcus van Aller

2015 Graphics