Coded by: PUSHKAR TALWALKAR Roll No : 2018101010
Contents:
- Rules of the game
- Description of classes created
- Requirements
- Special Features
Rules of the Game:
-
USE small case only(disable caps lock) to control your character: a : move left d : move right w : move up (jetpack) q : quit the game Spacebar : Activate shield for 10 seconds. It takes 60 seconds to recharge the shield
-
You have 3 lives. Reach to the end of the game, beat the boss enemy, and win the game.
-
You have to finish the game in 100 seconds, else you lose.
-
Collect coins to get more points.
-
The Magnet (M) attracts the player towards it when in it's range.
-
The SpeedUp (P) speeds up the game and the character motions
-
The zappers (in *) take your lives.
-
The boss enemy is tricky; he follows your motion and shoots snowballs at you.
-
The boss enemy cannot be touched without losing a life.
-
The boss can be shot by your bullets.
Description of the Classes created:
The game is structured as follows:
- Person : Any movable object
- Bullet(Person) : The bullet of the hero, Mandalorian
- Snowball(Person) : The snowball thrown by the boss
- Mandalorian(Person) : The hero
- Enemy(Person) : The boss enemy
- Coins : Coins in the grid
- Board : The Board as a whole.
- Magnet(Coins) : The magnet which attracts the player.
- Powerup(Magnet) : The speed up powerup
- Alarmhandler : Handles errors in input
- _getChUnix : Takes asynchronous input
- Ground : Creates the ground in the board of the game
- Zapper : Creates the zappers/laser beams in the game. This is the most common obstacle.
- Engine(Board,Mandalorian,Enemy,Bullet,Magnet,Coins,Ground,Zapper,Snowball) : The game in its entirety.
Instructions to run game:
- Download the repository.
- In the folder, run the command in terminal : python3 Game.py
Requirements:
- Python3
- Colorama library (install by:"pip3 install colorama")
Special Features:
- Colors are used.
- Zapper of one more type : 135 degrees with the ground are created.
- Well structured boss.
- There is a secret hack to reach the boss directly, avoiding all the obstacles. (Hint: Try the numbers on the keyboard)