Narrative Modified Snake Game I get to created the authorised indorse of Snake, with modifications. I followed a tutorial from the meshwork to excogitate the basics of the game. Once I duplicated what the video created, the game was only a ophidian that travelled around and grew long-range as it ate orchard apple trees, and died if it hit itself or the w all, restarting the game. It had no sanitary either. My modifications make an apple bowel movement the snake by 1 unit, a pear grow the snake by 3 units, and a pineapple grow the snake by 5 units. I also added a bomb, which randomly miscellaneas define and kills the snake if it collides. The game is intended for one player, who controls the snakes movement. The snake is always in motion and the arrow keys change the direction of the snake. The helping of the snakes head is discern from the rest of its body, besides two objects (head and tail) have the parent of the snake. This way, the modify ing the snake object include them automatically. Next, I modified the code for the object apple to give for the pear and pineapple. I gave them code to grow the snake with large increments to add to strategy. For example, if the snake is getting in truth long, the player whitethorn want to avoid the pineapple, which grows the snake the most.
I added a sound to each fruit; the apple a small beep, the pear a medium beep, and the pineapple a fancy ditty. I then added a bomb. The code for the apple could not be used for the bomb be retain a crap it is intended to reappear randomly at once it collides with t he head. However, the player would die if ! they hit the bomb, so this code would stuff the bomb to sit in one place until it was hit. I decided that rather than have multiple bombs I would synonymous the bomb to randomly change location. This was a challenge patently I finally decided to make invisible triggers all over the board. When the snake hit the triggers, the object event would cause the bomb to move to a random place lend oneself the object option instead of...If you want to get a full essay, order it on our website: OrderCustomPaper.com
If you want to get a full essay, visit our page: write my paper
No comments:
Post a Comment