Snake (Python)
You have already successfully completed the workshop Discover Python programming, and you want to speed up? This workshop is made for you!
8 Steps
Intermediate
Overview
Flashback on the history of the Snake game.
Demonstration of what will be achieved in this workshop.
Setting up
Script installation on the console.
Introducing functions.
Installing game engine.
Notions of colorimetric spaces.
Definition of the spatial reference frame of the META.
Introducing global variables.
Initialization of the graphical rendering engine.
Controls and display
Interception of user interactions.
Controlling snake movements.
Displaying snake on the game scene.
Scheduling of game engine tasks.
Imposing rules
Constraining the playing area.
Detect when the snake bites its tail.
Apples display on the game scene.
Detect when the snake swallows an apple.
Score points
Snake's tail extension management.
Score management and display.
Optimization
Graphic rendering optimization and display acceleration.