Code Monkey home page Code Monkey logo

javafx-public's Introduction

Gameplay Instructions

You spawn in with 3 lives.

Left Arrow key to move left Right Arrow key to move right Spacebar to shoot

Each invader is worth 10 pts with the occassional invader giving 300 pts. Each bunker has 10 hits before breaking. To end the game prematurely press Escape. This will take you to a screen that will reset the game.

Space Invaders

Space Invaders is a two-dimensional fixed shooter game in which the player controls a laser cannon by moving it horizontally across the bottom of the screen and firing at descending aliens (space invaders). The aim is to defeat the rows of aliens. The player defeats an alien, and earns points, by shooting it with the laser cannon.

The aliens attempt to destroy the cannon by firing at it while they approach the bottom of the screen. If they reach the bottom, the alien invasion is successful and the game ends. Also, if the cannon is destroyed, the player loses a life. If the player is out of lives, the game ends.

Occasionally, a mystery ship will appear and move across the top of the screen (usually right-to-left). Once it makes it to the other side, it usually dissapears.

The laser cannon is partially protected by several stationary defense bunkers that are gradually destroyed by a numerous amount of blasts from the aliens or player.

Space Invaders

Scoring

Destroying a regular space invader should award 10 points. Destroying a mystery ship should award 100 points.

Build System

For this project, we will be using the Simple Build System (sbt). If you clone the project from the GitHub repository then everything will be setup for you. In order to compile your project, you can use the following command:

$ ./sbt compile

To run your project, use the following command:

$ ./sbt run

In order to clean your project (remove compiled code), use the following command:

$ ./sbt clean

javafx-public's People

Contributors

exaltedmt 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.