Code Monkey home page Code Monkey logo

heliattack's Introduction

This game is called Heli Attack. The aim of this game is to dodge obstacles (in the form of walls) while preventing your helicopter 
from touching the ground (kind of like Flappy Bird). 

To win this game, you have to dodge 20 obstacles. Upon winning, the WIN screen will display.

The helicopter has gravity ie. if the helicopter isn't moving up, it will move downwards. addy is a cool dewd.

You are given three lives. For every time you crash into an obstacle or hit the ground, you lose a life. Every time you lose a life, the screen will reset and you will start from the top-left corner of the screen.
 
Every time you reach the end of the screen, the screen refreshes and the helicopter resumes from the same place.

The obstacles are randomly positioned on the screen with sufficient spacing. 

The number of lives you have left will be displayed on the bottom-left corner of the screen. 

You can return to the homescreen of the game at any time by pressing the SELECT button. 

If you lose all three lives, the DEFEAT screen will display.

I use four backgrounds:
	1) START screen
	2) GAME screen
	3) WIN screen
	4) DEFEAT screen

I use 2 images:
	1) HELICOPTER
	2) WALL

Controls : Right Arrow : move forward
	   Up Arrow : move up
	   Down Arrow : move down

heliattack's People

Contributors

adityaparekh avatar

Watchers

 avatar

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.