Git Product home page Git Product logo

space-explorer's Introduction

Cloudflare Pages

Gravity simulation demo

Proof of concept newtonian gravity simulator using godot's physics engine. You can control a little ship in a 2D simulation. image image image Screenshot_20220227_033734

Live demo at: https://space-explorer.pages.dev/

The desktop version looks much prettier though due to lossy texture compression required to run this on the web.

Playing

Ship controls

  • Left/Right arrow to spin the ship
  • Up/Down to accelerate and decelerate
  • You can control the simulation speed, display vectors paths with the controls on the HUD
  • Spacebar pause
  • backspace resets the level

You can use the numbers (not numpad ones) to set the simulation speed.

Camera controls

  • Numpad arrows to detach from the ship and move the camera around: 2 6 4 8
  • '+' to zoom in
  • '-' to zoom out
  • = resets zoom
  • 0 Goes back to the tracked object
  • '/' to track back to the player

You can also control the camera with mouse dragging and scroll wheel for zooming.

By hovering on stars you can see their information and if you click you will start tracking them.

TODO

  • Find a better way to slow down the simulation
  • Fix body colisions instead of orbiting
  • Fix paralax background when zooming out
  • Add animations for flames
  • Control camera with mouse
  • Add refuel
  • Add levels!

FUTURE IDEAS

  • godot gravity sim - 10 [0/3]
    • giant stars have a life to explode or not
    • Fuel consuming ballistics (explode stars and get random fuel proportional to their mass?) ??
    • Start menu [0/3]
      • Sandbox level [0/3]
        • right click to add start
        • Little star props menu
        • Show vectors while editing
      • Random generated level [0/1]
        • ??
      • Build win and linux releases

space-explorer's People

Contributors

matheusfillipe avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

boyquotes

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.