A game inspired by Rocket League and built for the web.
W - Accelerate, flip forward, air pitch down
S - Reverse, flip backwards, air pitch up
A - Steer left, flip left, air yaw left
D - Steer right, flip right, air yaw right
Spacebar - Jump
Spacebar - Double-jump (when pressed shortly after initial jump)
Spacebar - Flip (when pressed shortly after initial jump and combined with WASD)
Shift - Brake
Left arrow key - Air roll left
Right arrow key - Air roll right
Up arrow key - Boost
Ctrl - Switch camera target (forward or ball)
Backspace - Reset car and ball position
Not currently available.
Prerequisites:
- Node (https://nodejs.org/en)
- Git (https://git-scm.com/)
Steps:
- Open a terminal.
- Clone the repository using
git clone git@github.com:TeenageMutantCoder/car-ball.git
orgit clone https://github.com/TeenageMutantCoder/car-ball.git
- Make the repository your current working directory using
cd car-ball
- Install dependencies using
npm install
- Run the web app using
npm run dev
- Visit the web app at http://localhost:5173/
End goal: An online, 3D multiplayer game with gameplay similar to Rocket League.
- A single-player version of the game with no menu or customization
- Adding local multiplayer
- Adding a menu and online multiplayer
- Adding more customization options
- ??? (if I get this far, think of something else to do)
- Put a car on the ground.
- Make that car drivable (with realistic physics) using the keyboard and/or game controller.
- Allow the car to jump and boost.
- Allow the car to flip (and flip-cancel).
- Add a ball that can be moved when hit by the car.
- Add a goal where the ball can be scored.
- Allow the car to air roll.
- Turn the ground into a field with walls and a ceiling.
- https://www.rocketleague.com/en
- https://github.com/BabylonJS/Website/tree/master/build/Scenes/minority-race
- https://doc.babylonjs.com/guidedLearning/workshop/Car_Driven
- https://youtu.be/ueEmiDM94IE
- https://ubm-twvideo01.s3.amazonaws.com/o1/vault/gdc2018/presentations/Cone_Jared_It_Is_Rocket.pdf
- https://github.com/roboserg/RoboLeague
- https://forum.babylonjs.com/t/real-physics-enabled-racing-game/4034/2
- https://blog.raananweber.com/2016/09/06/webgl-car-physics-using-babylon-js-and-oimo-js/
- https://forum.babylonjs.com/t/ammojs-vehicle-demo/453
- https://playground.babylonjs.com/#609QKP#6
- https://github.com/pmndrs/cannon-es/blob/master/examples/raycast_vehicle.html