Git Product home page Git Product logo

asteroids's Introduction

Note: This project has been suspended indefinitely.

I think this project is in a complete enough state to stop it where it is. I'd like to move onto other projects instead of giving this one the polish it needs.

Play the live version here

https://zacharylott94.github.io/AstroMine/

To Build

  1. Download packages with npm install
  2. run npm run build
  3. Serve the project folder with your favorite http server

To Test

  1. Download packages with npm install
  2. run npm run test

asteroids's People

Contributors

zacharylott94 avatar

asteroids's Issues

Read player input

Need an interface to the player. Current expected controls are turn left, turn right, thrust, and fire

Wrapper clones cannot detect collisions

The visual clones of objects that are used to give a seamless screen wrap are not checked to determine if a collision occurs with another object, causing objects to overlap near the edges of the playing field.

I would first attempt to fix this by perhaps taking the modulus of the screen width vs object position. The idea is that since screen width is constant, any multiple of it will give the same position on screen. Kinda like parallel universes in Mario 64. Even if mario is out of bounds, if he aligns on some multiple of the coordinate system, he is detected by collision in the intended game play area.

Comment function definitions

Describe what they are for, what parameter types are expect, what is returned, what is mutated, and any assumptions or quirks

Object rotation

Need to be able to visually rotate an object. This will be used for the player ship

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.