Coder Social home page Coder Social logo

asteroids-game's People

Contributors

indexhever avatar

Watchers

 avatar  avatar

asteroids-game's Issues

Hit enemy with bullets

  • When an asteroid is hit, it will return to its pool. If it is the bigger asteroid it will also spawn small ones in different directions.
  • If an asteroid hits the player, it will die.
  • If an enemy is a spaceship, it will just return to its pool
  • Every enemy gives a specific amount of point to the player when dying

Game over and game start

  • On game start, all game actors are spawned
  • On game over, the scene is loaded again
  • There will be a UI for game start and over.

Teleport to other side of the screen

  • When a game actor crosses a side of the screen, it will appear on the opposite side.
  • A game actor can be:
    - Player spaceship
    - Asteroid
    - Bullets
    - Enemy spaceship

Player death

  • The player dies when it is hit by an enemy or bullets
  • When it dies it will disappear from the screen for a while and reappear (possibly blinking while returning to the game) at the center.
  • It will always receive points
  • It will decrease one life from its current life amount
  • When the life amount achieves zero, it is game over

Spaceship movement

  • The ship moves always towards the direction it is pointing.
  • When pressing the Up key the ship will receive a force towards its direction
  • If It does not receive movement it will gradually lose speed until it stops.
  • When holding the Up key it will increase its speed until a maximum speed when it stays at this maximum speed until the player releases the button.

Score system

  • Implement UI
  • Increase player score every time it hits an enemy, including when it hits with its spaceship

Destroy effects

Implement visual effects of objects destroying when they die.

Fire bullets when Ctrl key pressing

  • The bullets should be pooled.
  • They return to their pool when hit target or after some seconds without hitting anything.
  • They aways are spawned in front of the ship

Asteroids behavior

  • Spawn initial asteroids at different places on the screen
  • They will move in a constant direction (change this behavior later, if there is time)

Enemy spaceship behavior

  • There is at least one type of enemy spaceship
  • It will shoot bullets in different directions at the same time while moving on the screen
  • There may also have an enemy who shoots towards the player's position

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.