Skip to content

"Marble Race" is a simple 3D browser game built with three.js and React. In this game, the player observes a marble navigating a track filled with obstacles and challenges, relying on physics for its movement.

Notifications You must be signed in to change notification settings

liubomyr123/marble-race

Repository files navigation

Marble Race: 3D Browser Game with Three.js and React

Marble Race is an interactive 3D browser game built with Three.js and React. In this game, the player observes a marble navigating a track filled with exciting obstacles, relying on physics for its movement. The game provides a smooth user experience with realistic physics-based mechanics.

Features

  • 3D Environment: Powered by Three.js for immersive and realistic graphics.
  • Physics-based Movement: Marble movement based on React-Three/Fiber and Rapier physics engine.
  • Interactive Gameplay: Navigate the marble through a series of obstacles on the track.
  • Smooth Animations: Built with Framer Motion for smooth transitions and animations.

How to Play

  1. Open the game in your browser.
  2. Watch the marble as it rolls and interacts with the track.
  3. The objective is to overcome the obstacles and complete the track.

Live Demo

You can try the game live:
Marble Race Live Demo

Technologies Used

  • React: To handle game logic and UI components.
  • Three.js: For rendering the 3D track and marble.
  • React-Three/Fiber: A React renderer for Three.js to simplify 3D graphics management in React.
  • Rapier: For physics-based movement and collision detection in the game.
  • Framer Motion: For animations and smooth transitions.
  • Zustand: For state management in React.

About

"Marble Race" is a simple 3D browser game built with three.js and React. In this game, the player observes a marble navigating a track filled with obstacles and challenges, relying on physics for its movement.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published