Giter VIP home page Giter VIP logo

antigravity-pool's Introduction

AntiGravity-Pool

The first real-time pathtraced game for desktop and mobile using WebGL.
Click to Play --> https://erichlof.github.io/AntiGravity-Pool/AntiGravityPool.html

Desktop Controls

  • Click anywhere to capture mouse
  • move Mouse to aim cueball
  • Mousewheel to dolly camera in or out
  • SPACEBAR to enter shot mode. Power will oscillate up and down
  • SPACEBAR again to shoot!
  • when shot has been made and balls are moving, WASD to fly around the scene

Mobile Controls

  • Swipe to aim cueball
  • Pinch to dolly camera in or out
  • small up button above directional controls to enter shot mode. Power will oscillate
  • small up button again to shoot!
  • when shot has been made and balls are moving, directional arrows to fly around the scene

TODO

  • Squash sound fx bug due to the physics engine continually reporting collisions between balls and between balls and rails/walls. This results in sound fx playing repeatedly until the offending ball is pocketed. This bug is highly annoying so it gets the highest priority!
  • Create simple banners to display game state (for example, "Player 1 Wins!")
  • Create widgets to display current target-ball color (red, yellow, or black), as well as shot power meter

ABOUT

  • To my knowledge in 2019 this is the first real-time fully path traced game for all devices with a browser, including mobile. The technology behind this simple game is a combination of my three.js path tracing project, physics simulation through Oimo.js, and the WebAudio API for sound effects. The goal of this project is enabling path traced real-time games for all players, regardless of their system specs and GPU power.

antigravity-pool's People

Contributors

erichlof avatar

Watchers

James Cloos 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.