Giter VIP home page Giter VIP logo

terminal-jetpack's Introduction

ASCII Jetpack Joyride

Installation and running the code:

Download the files required.

To run the game, enter the command python3 game.py

Movement:

  1. W - fly up

  2. A - move left

  3. S - move down

  4. D - move left

  5. L - shoot bullets

  6. SPACE - activate the shield

  7. K - Summon the dragon(the one on your side)

OOPs Features:

  1. Inheritance: gameObj is a parent class of almost every object in the game. The attributes and some common methods are inherited by these objects.

  2. Polymorphism: Some methods of the parent classes are overidden depending on the type of object. Also, most attributes of the parent class are overidden in the subclass.

  3. Encapsulation: Using classes and subclasses meets the requirements of Encapsulation. Every obstacle in the game is an object, including the Mandalorian himself.

  4. Abstraction: Various methods for each object are defined so that the user only interacts with the basic functionality. (Eg: changeX(), changeXVel() change the X position and X velocity of an object repsectively, user isn't concerned with how they work).

Gameplay:

  1. There is a time limit of the whole game, and if you don't collect baby yoda in that time, you lose the game.

  2. The player has 5 lives, and collision with fire beams or boss' bullets result in the loss of one life. If the player runs out of all lives, the game ends.

  3. When the shield is activated, the player is completely immune for 10 seconds, after which he needs to wait for 60 seconds for it to recharge.

  4. The player can activate the dragon only ONCE in the entire game.

  5. After the boss is defeated, the player has to move to baby yoda to complete the game.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.