Giter Site home page Giter Site logo

hhy5277 / 2.worlds.1.asteroid.field Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fmilitao/2.worlds.1.asteroid.field

0.0 1.0 0.0 87 KB

Experiment with matter.js to build 2D space game with two opposing worlds and an asteroid field in the middle.

JavaScript 95.00% TypeScript 4.79% HTML 0.20%

2.worlds.1.asteroid.field's Introduction

2 Worlds 1 Asteroid Field

Uses matter.js for physics and rendering.

Two grounds and an asteroid field in the middle. Minimum resolution is 800*600, give it more space and it will expand the game world to fill the available window.

Controls:

  • w, up arrow for engines on.
  • a, left arrow to turn left; d, right arrow for right.
  • q and e for rotating left or right, respectively.
  • s, down arrow for "brakes".
  • left click to move (teleport) the ship to the clicked position. Useful if, for any reason, the ship becomes stuck in another object.

Online demo.

No real objective, just experimenting the physics engine...

Building

This is a typescript project, so you need to tsc to produce the final javascript files. Use tsc --watch if you want to experiment and not have to manually type tsc on each iteration. All libraries were copied into the project, so no need to fetch dependencies.

2.worlds.1.asteroid.field's People

Contributors

fmilitao avatar

Watchers

 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.