Giter Site home page Giter Site logo

juleeyg / asteroids-game Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 186 KB

Small game that uses event handling to avoid multiple obstacles, requires Java`s Abstract Window Toolkit and JavaFX GUI libraries to complete.

event-handling javafx awt-graphics jar-files

asteroids-game's Introduction

Asteroids Game

Small game that uses event handling to avoid multiple obstacles, requires Java`s Abstract Window Toolkit and JavaFX GUI libraries to implement.

asteroidgame

Setup Instructions

  1. Download and store AsteroidTest folder onto your computer`s home directory. The game will not operate without all jar files.

  2. Navigate to the AndroidTest folder using the command line.

  3. Inside that folder run this command: Java -jar AsteroidGame.jar (number of desired asteroids)

    • ex: Java -jar AsteroidGame.jar 10 asteroidcmd

    • Game can also be set up in an IDE

  4. GUI will open to play the game

How to Play

• "Start New Game" button begins new game • Right, left, and up arrow keys control the rocket's rotation and forward motion. • Pressing spacebar will launch a missile and generate a sound. • 50 points are added to the score when an asteroid is hit. • Asteroids respawn along the boundary of the playing area at a random location according to the rocket's direction of motion. • Game ends when an asteroid hits the rocket (Game has no formal "Game Over" ending)

asteroids-game's People

Contributors

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