- Module dependencies that may need to be installed:
- time
- colorama
- random
- Use
pip3 install <module_name>
to install any, if required. - Run game using
python3 main.py
Key | Function |
---|---|
W | Up Movement |
A | Left Movement |
D | Right Movement |
Q | Quit game |
M | Shoot Bullet |
E | Speed UP! |
V | Activate Shield |
- Inheritance
- Mando and Devil classes are derived from Carbon Class
- Polymorphism
- Devil class has a method render() which overrides Carbon.render()
- Encapsulation
- Class based approach to construct the game
- Abstraction
- Mechanisms like move, gravity, bullets, etc. are implemented as defined methods.
- W for UP
- A for LEFT
- D for RIGHT
- M for Bullets
- Gravity
- Progressive screen
- Scenery, obstacles change as player moves
- No going back!
- Cave-like
- Demon (Boss Enemy): Follows players coordinates and shoots a barrage of bullets at Mando, each bullet taken costs 1 life. Can sustain 20 bullets before dying.
- Fire Beams will incinerate Mando on contact costing 1 life.
- Magnets will attempt to stagger Mando by attracting him.
- Score is increased by 1 when player collects a coin
- Player has 15 lives (too much? met the boss yet?)
- Game speed will be increased by 33%
- Lasts for 5s
- Lasts for 10s
- Passes through beams and enemies, but can still collect coins
- Implemented Colors