Coder Social home page Coder Social logo

hackaton2019's Introduction

Hackaton2019

For this hackaton we tried simulating the universe. In about 24h, we had the following features:

  • Flyable spaceship in space
    • Although the movement is still buggy (forward is on a fixed axis and doesn't rotate with the ship)
    • Controls are:
      • WS: forward/backward
      • AD: strafe left/right
      • QE: move up/down
      • IK: rotate up/down
      • JL: rotate left/right
      • UO: roll left/right
  • Planets and suns with pretty textures
  • Density/mass
  • Kinematics
  • Gravity
  • Collision
    • The smallest planet will disappear
    • The biggest planet will absorb the smaller one
  • Time control

Running this project

I should warn you up front that this app will eat your pc. It's not really made to be performant at all.

To run this project locally, just clone it and run npm run start in its root. Make sure you have Node.js installed.

Technicals

  • It's made in the browser on a canvas
  • We used three.js for 3D rendering
  • We used Vue.js, but it didn't really do much
  • The idea was to have a modular system where every entity could do things on its own
    • This is where the modules come in which provided the interactions, e.g. a gravity module that uses the vicinity module to look at its environment and then computes its acceleration and passes it to the physics module to have it apply the accelaration

hackaton2019's People

Contributors

dastardl avatar didii avatar

Watchers

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