Code Monkey home page Code Monkey logo

spaceinvaders's Introduction

SpaceInvaders

This is a remake of the space invader phaser example, which you can find here: http://examples.phaser.io/

This remake is made with require.js, which breaks up the code into modules. Modules are in assets/javascript/module

Code is more organized thanks to State and Statemanager class from Phaser. You can find the states in assets/javascript/state

I used Phaser 2.0.1(no Physics) from the Dev branch. The dev branch has a lot of bug fixes so it's recommended to use it.

Thanks to require.js, i made an optimized version of my game, which can be viewed with indexOpt.html. This use the "compiled" code, which can be found in assets/javascript/built

Known issue: In every new play state(after the end state) the game makes new DOM nodes. The cause: in every cycle i make a new text to show the score. I tried to destroy the texts but i never succeed.

You can play with it here: http://strykerkkd.github.io/SpaceInvaders/

spaceinvaders's People

Contributors

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