Code Monkey home page Code Monkey logo

asteroids's Introduction

ASTEROIDS

(by Josie Bealle and Chet Aldrich)

A basic asteroids scroller-ish type game.

Currently the game has a start menu, and then goes into a game where the player attempts to destroy the asteroids coming from the right side of the screen. We currently have functionality to play the game, associated sounds and music and explosions, a scoring mechanism , and also the ability to toggle the music if you so choose.

There were some odd issues we had with timers that made it easier to add another timer inside our animation timer. For the most part though, the code seems to be behaving.

Code Structure

Currently, the program is structured with view fxml files + core classes (listed below). The initial menu view is launched via the Main class, and each of the controllers can initialize each other to instantiate a different view.

Additionally, each of the core classes other than Scoreboard inherits from Sprite.

Core classes: Spaceship Asteroid Bullet Scoreboard

TODO:

  1. Make asteroids more sensitive to bullets, less sensitive to spaceship.
  2. Add feature where there are simple math problems on the bottom, and user must shoot asteroid with correct answer. -Minus points for hitting asteroid with wrong answer.
  3. Add a basic physics engine so that the spaceship could move more quickly and slow down when movement key is not depressed.
  4. Add visual and sound effects for when the asteroid blows up.
  5. Add high score feature.
  6. Add Game Over animations
  7. Add level system that increases difficulty as score goes up
  8. Potentially try 3D rendering at some point?
  9. FINAL ALIEN BOSS

Links We Found Helpful

https://carlfx.wordpress.com/tag/collision-detection/ http://stackoverflow.com/questions/17226948/switching-scene-in-javafx https://www.youtube.com/watch?v=djZFHTa6TfA

spaceship: http://scratch.mit.edu/projects/2229196/

Space Alien: https://twitter.com/8bitAlien

Asteroid: http://astroempires.wikia.com/wiki/Asteroid

SpaceBackground: by Chet Aldrich

Explosion: http://download.amplific.org/download/fnf001/

asteroids's People

Contributors

chetaldrich avatar

Stargazers

 avatar

Watchers

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