GithubHelp home page GithubHelp logo

dagelf / spaceinvaders-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nicolalc/spaceinvaders-js

0.0 0.0 0.0 6.95 MB

License: Apache License 2.0

JavaScript 5.12% TypeScript 72.42% CSS 18.88% HTML 3.58%

spaceinvaders-js's Introduction

Get more details at codescene.io.

NOTES

Bullet should collide with a GameObject instance and not with an htmlElement, the problem is than the collision detection is between htmlElements, so I need to associate any htmlElement with a gameObject.

Solution

Add an id to the gameObject class and:

  1. Instantiate html with random id
  2. Each GameObject must have its own htmlElement
  • I need to convert the enemies class with and array of Enemy game object
  1. the core Game class must provide a getGameObjectById(id: string) method to get the gameObject reference

TODO

  1. Bullet as GameObject
  2. Game Object automatism
  3. htmlElement automatism
  4. Enemies as gameObject
  5. Sprite management

TODO GAME

  1. Steps - when you destroy all the enemies you can go to the next step
  2. Player UI
  3. Enemy life
  4. Game intro
  5. Scoreboard
  6. Pause play and settings
  7. Responsive

spaceinvaders-js's People

Contributors

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