Mindmap
II-II
Inhalt der Mindmap
II-II
Prescribed
- Use for loop to create and position multiple object
- Snake Segments
- Draw
- Update
- Check collision
- Apples
- Draw
- Update
- Snake Segments
- Allow user to control player using mouse or keyboard
- Using On_Button_Pressed
- Left
- Direction = LEFT
- Right
- Direction = RIGHT
- Up
- Direction = UP
- Down
- Direction = Down
- Left
- Using On_Button_Pressed
- Do not allow the player to go off/through the wall
- Kills snake when attempting to go through the wall and snake segment
- Freeze for program for 2 seconds
- Close the window
- Display gameover and score
- Freeze for program for 2 seconds
- Check collision using nested list for body segment, snake head xy and width, height of window
- Kills snake when attempting to go through the wall and snake segment
- Keep record of score and display them
- Score variable
- Start at 0
- An apple eaten = +10
- Using arcade.draw_text to display the score variable
- Custom pixelised font that suits the traditional arcade games
- Score variable
- Use for loop to create and position multiple object
Additional
- Difficulty menu
- Easy
- Collect 5 apples
- Different speed, accomplished by changing the fps
- Normal
- Collect 15 apples
- Hard
- Collect 50 apples
- Infinite
- Collect apples until die or fill the entire board
- Custom snake speed (fps)
- Tkintker for buttons
- Hide all buttons after pressed, sets default value to corresponding the the difficulty chosen
- Easy
- Multiple apples exist at the same time
- Class for apple
- define variable in window class to function as apple class
- Nested list for apple position
- Once eaten, element deleted then create a new listed element for the new xy position of apple
- Class for apple
- Timer
- Body grows after eating an apple
- Nested list for snake segments
- Insert an coords corrisponding to the direction of the snake segment
- Delete the last segment of the list
- Insert a new position for the snake segment where the snake head lastly was
- Body following head
- Nested list for snake segments
- Difficulty menu
Informationen
- Beschreibung
- Mindmap am II-II, erstellt von Aestus Estus am 02/06/2022.
- Erstellt von
- Aestus Estus
- Aufrufe
- 2
- Bewertung