Wednesday, October 8, 2008
Sunday, October 5, 2008
Squeak Lab
Working with the program of Squeak over the next two weeks, I would like to try my hand at creating the classic game of Sammy the Snake. For this game, the user must be able to control Sammy with the 4 arrow keys. Sammy must be able to 'grow' when he eats the randomly appearing food. Whenever Sammy eats, the game must be able to keep track of the food eaten via a score board.
To build this game, key sensitive connections need to develop for user control. I forget which function this is, but it will need to connect to the arrows, which each change the direction of Sammy to 0°/90°/180°/270° (up/left/down/right). If Sammy "sees" his color (meaning, if he hits himself) or the wall, than the game is over. So there needs to be scripts that allows for this and a Game Over function. This also means there should be a Start Game script that is activated by any key stroke (or the space bar).
The thing I believe will be most challenging and requiring the need of a TA, will be programming the randomly placed 'food'. I think this will be similar to the function of the pong ball going in a random direction.
Any thoughts and assistance will be much appreciated.
Subscribe to:
Posts (Atom)