Giter Site home page Giter Site logo

blakematis / asteroids-version-1 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 2.0 12.79 MB

Text based Asteroids game demonstrating OOP design patterns and methodologies.

Home Page: https://github.com/blakematis/Asteroids-Version-1

License: GNU General Public License v3.0

Java 100.00%
asteroids-mobile asteroids java codenameone mobile-app mobile-game mobile-development california-state-university computer-science

asteroids-version-1's People

Watchers

 avatar

asteroids-version-1's Issues

New Asteroid to world

User Input should be able to add a new Asteroid to the GameWorld via the Game class.
The character 'a' - add a new asteroid to the world.

newFlyingSaucer()

Adds a new FlyingSaucer GameObject to the GameWorld GameObjectsVector

Ship movable objects.

Ships implement ISteerable interface.
-the ships speed and direction can be controlled by the player.

-There is only one ship in the game at any one time (Singleton pattern).

-Initial location should be in the center of the world (512, 384).

-Initial speed of zero and a heading of north 90 degrees.

-Ships have an attribute called missile count an integer representing the number of missiles the ship has available to be fired. Max number of starting missiles is 12.

-Each time a ship fires a missile its missile count is decremented by one; When missile count reaches zero it can no longer fire any missiles.

-ship that fly to a space station automatically have their missile count reloaded to the original maximum number.

Movable object abstract class

Movable objects have attributes speed and direction(heading)

-Speed is an integer in the range 0-10 initialized to a random value in that range unless otherwise stated.

-Direction is and integer in the range 0-359, initialized to a random value in that range unless specified otherwise, indicating a compass heading.

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.