3/22/2023 0 Comments Screen snake controls![]() When user select “Start Game” option first level of game started. When we open snake game, we see a screen like below (figure 2) which shows different options: Start Game, Resume Game, Change Level, See High Score and See Previous History of Game. Save highest score and players history in files and display corresponding information when user selects an option from them (figure 2).If player eats a power food its score is increased by 20. Display power food after each minute and it should disappear after 15 seconds.If score is highest show a message “you have broken all previous records and now highest score is xyz”. Game must terminate when snake collide with itself or with hurdles by showing a message game over and your score is “XYZ”.You can increase or decrease the difficulty level using hurdles. Hurdles can take “L-shape”, “U-shape”, ”Z-shape”, and horizontal or vertical lines of variable lengths.į. New hurdles should be placed such as they do not collide with already placed food items and snake.Į. The hurdles disappear after 30 seconds and reappear again at different locations on the board.ĭ. The snake should avoid the hurdles while navigating to eat food item.Ĭ. You can have at least one hurdle and at most three.ī. Each food disappears after 15 seconds of its placement.Ī. The length of snake increases when it eats food.į. When the snake eats the food, the food item again appear by following the same conditions described above.Į. Not two food are along the same diagonal (primary and secondary).ĭ. Not two food items are on the same columns.Ĭ. Display five foods at a particular time at random locations on a board by following the following rulesī.Show player score on progress bar at top of the game.Snake first block (mouth) must be a circle and have at least 2 squares as the tail. Create board (hint: a 2D array) and snake.The snake dies if it collides with itself or the hurdle. The game also has hurdles placed at the random locations. Food disappears after 15 seconds and appears again on some other random location. By eating food snake’s length increases one unit and player’s score increases by 5 points. When the game is started a snake is controlled by up, down, left and right keys to eat food which appears on random locations. Now it is your time to create it with more interesting colors and features. Most of you have played a very interesting game “Snake” on your old Nokia phones (Black & White). CS118: Programming Fundamental Project: Snake Game Game Description: In this we had to re-design the popular snake game using GUI. In our first semester, this was our second project of the course CS118. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |