Hey this Greg and welcome back to this 4 part programming series on how to code a class snake game. In the first 2 parts of this series which I'll link above and down in the comments, we created our gameboard grid system, we added our snake head, built out a movement system, came up with a way to randomly add food to our stage, and then came up with a way to add body segments to the snake anytime they eat the food and those body segments will follow our snake head around the board. Now in this part 3 we will move on to things like game levels, snake speed, growth rate, scoring bonuses, game testing and more.
Want to play a finished version of this game? https://scratch.mit.edu/projects/6313...
Jump to Key Moments:
0:50 Edge of Screen Detection
1:41 Thinking about more gameplay elements
3:40 Adding game levels
4:08 Varying color of body segments
7:13 Increasing snake growth rate and advancing levels
12:43 Linking up growth rate variable and code to add body segments
15:52 Linking up food counter and level advancement
20:13 Making testing easier during game development
23:05 Building out a score system
27:18 Using a sprite to display the score
32:39 Randomly appearing score bonus
35:45 Coding the score bonus
36:33 Utilizing timers
39:37 Testing the score bonus system
42:34 Fading out the bonus sprite
45:08 Connecting the bonus sprite to the score code
49:25 Final Bonus Testing
51:10 Keeping an eye out for exploitable gameplay elements
Watch the other parts:
Snake Game Part 1: • Learn How to Code a Classic Snake Game (Pa...
Snake Game Part 2: • Learn How to Code a Classic Snake Game (Pa...
Snake Game Part 4: • snake game part4of4
Thanks for watching!
cheers,
Greg