Git Product home page Git Product logo

asteroids's Introduction

Asteroids

Description

This game is a remake of the Atari Asteroids arcade game.

demo.mov

Controls

  • Use the left and right arrow keys to rotate your ship counter-clockwise and clockwise respectively.
  • Space key is for shooting bullets.
  • Right shift is for hyperspace
  • Escape is to pause the game

asteroids's People

Contributors

danielricci avatar

Watchers

 avatar  avatar

asteroids's Issues

Player lives

  • The player lives are rendered on screen underneath the score. Originally it would display as icons of the player ship, however it would look much better if it was rendered at [ship_image][count]
  • Every time the player collides with an object besides it's own crossfire, the player loses a life

Flying saucer creation and basic movement

  • There are two types of flying saucers, big saucer and small saucer
  • The big saucer shoots randomly and poorly
  • The small saucer fires frequently at the player ship
  • Saucers cannot shoot across boundaries
  • Saucers must have line of site with the player before shooting

Player 2

  • - Player indicator
  • - Player 2 UI (Lives, Score)
  • - Player 2 controls

Player score

  • The player score shows up at the top left of the game screen
  • The highest attainable score is 99,990

Player creation and basic movement

  • Render the player in the middle of the screen
  • Pressing on the left-arrow key rotates the player counter-clockwise
  • Pressing on the right-arrow key rotates the player clockwise
  • Pressing on the up arrow key applies thrust to the player
  • Player wraps around the screen edges during movement
  • Limit player velocity

Resources:
-https://www.rocketshipgames.com/blogs/tjkopena/2015/02/asteroids-drawing-objects/
-https://www.rocketshipgames.com/blogs/tjkopena/2015/03/asteroids-moving-objects/
-http://blog.wolfire.com/2009/07/linear-algebra-for-game-developers-part-1/

Asteroids destruction

  • When asteroids collide with a player bullet, the large asteroid breaks into smaller asteroids that will travel in random directions and move faster than the larger asteroid does
  • When a smaller asteroid collides with a player bullet, the small asteroid is destroyed

Hyperspace Positioning

Pressing on the specified key causes the player to disappear and reappear in a random location on the screen.

World Position

Research how to differentiate between local space and world space.

Score

  • The max score should be no more than 99990 at which point it will wrap over back to 00000
  • If a saucer crashes into an asteroid, no points are awarding to the player
  • The UI of the score should show two digits 00

image

Menu System

Design the menu system architecture that is capable of displaying the following menu items when the game is launched

  1. Start Game
  2. Exit
  • When the user clicks on Start Game, the menu system will transition to the actual game
  • When the user clicks on Exit, the game will exit as if the user had clicked on the X or pressed on the ESC key

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.