Variant: Several Tetris variants are listed on Wikipedia. When a full row is made, the blocks in that row disappear and the blocks above it move down. The player must rotate and place them to create full rows with no gaps. Tetrisĭescription: Shapes made up of four blocks fall from the top of the board. This game is covered in Chapter 6 of "Making Games with Python & Pygame".ĭownload Python Source: wormy.py 6. Tron (see below) is a two-player variant of this game. Have two worms that the player must control simultaenously. Add bad guys that move around the board that the worm must avoid. Variants: Add walls to the level, instead of just a blank rectangle. The game ends if the worm crashes into the edge of the board or into itself. Eating an apply causes the worm to grow in length. The player controls the direction the "head" of the worm moves, and the worm must try to eat apples that randomly appear. Nibblesĭescription: A worm or snake constantly moves around the board. ![]() This game is covered in Chapter 5 of "Making Games with Python & Pygame".ĭownload Pyhton Source: simulate.py 5. Variant: A nine-button version can add challenge to this game (but more than that would probably just be tedious.) If the player presses a wrong button, the game ends. The pattern gets longer each time the player completes the pattern. After displaying the pattern, the player must repeat the pattern by clicking the buttons in proper order. Simonĭescription: Four colored buttons light up in a specific pattern. This game is covered in Chapter 4 of "Making Games with Python & Pygame".ĭownload Python Source: slidepuzzle.py 4. Variants: Instead of numbers, you can have a scrambled picture cut up into 4x4 tiles. To win the game, the player must slide tiles over to put the tiles back in order. This game is covered in Chapter 1 of "Making Games with Python & Pygame"ĭescription: A 4x4 board of numbered tiles has one missing space and is randomly set up. Or, quickly overturn groups of cards at the beginning of the game. Variations: Provide "hints" in the form of four possible matching cards after the player flips the first one. The player needs to overturn all the cards in the fewest moves to win. If they match, then they stay overturned. Memory Puzzleĭescription: A board full of overturned cards. ![]() This game is covered in Chapter 20 of "Invent with Python"ĭownload Source: dodger.zip 2. Have power up pickups that grant invulnerability for a while, slow down bad guys, give the player a temporary "reverse bad guys" power, etc. Have enemies fall from more than one side of the game. Variations: Have enemies fall at different rates and be different sizes. ![]() The longer the player lasts without being hit, the higher the score. The player can be controlled with the arrow keys or more directly with the mouse. Dodgerĭescription: Several bad guys fall from the top of the screen, and the user must avoid them. ![]() However, you can make your own variants.Source: 1. The following games are described in these free Python programming books and their source code is available. Don't forget to Sign up or Subscribe to our series (see Lessons for freebies) and learn how to code games step by step! Series 3 takes you through programming in python and pygame with classes and understanding some of the basics like edge detection and collision detection!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |