Learning area
Programming games
Here you build real games: with a game area, a game loop and keyboard controls. Everything runs in the browser with the small Codelix game module. You need functions, lists and dictionaries from the Python section.
0 of 4 lessons done
Chapter 2Projects
- 0245 minutes
Project: catch game
Make things appear at random places with random · Check whether two rectangles touch (collision) · Count points, take away lives and end the game with game.stop()
- 0360 minutes
Project: snake game
Build a game area made of squares with game.grid() and game.cell() · Store a snake as a list of positions and let it grow · Change direction with game.pressed() and detect the end of the game
- 0460 minutes
Project: paddle duel
Move a ball with a speed in x and y direction · Let the ball bounce off walls and paddles · Program a simple computer opponent