Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/mojzis/bounceflow. A simple physics game with a bouncing ball mojzis.github.io/bounceflow
Something went wrong. Try again.
Files
- JavaScript 91%
- CSS 5%
- HTML 4%
README.md
BounceFlow - Prototype #
A physics-based puzzle game where kids learn through play. Guide a bouncing ball with dynamically changing properties by manipulating the environment.
About #
BounceFlow is a project designed to teach kids physics principles through playful experimentation. Eventually, the ball's properties (elasticity, weight, friction) might change dynamically over time, creating evolving puzzles that adapt as you solve them. This repository is a prototype to see how / whether kids enjoy it.
Getting Started #
Prerequisites #
- Bun (1.0 or higher)
Installation #
# Install dependencies
bun install
# Start development server
bun run dev
# Build for production
bun run build
# Preview production build
bun run preview
Controls #
Desktop:
- Left-click + drag - Move surfaces
- Right-click + drag - Rotate surfaces
- Spacebar - Release the ball
- R key - Restart level
Mobile:
- Tap + drag - Move surfaces
- Two-finger rotate - Rotate surfaces (coming soon)
- Play button - Release the ball
Current Prototype Features #
- ✅ Interactive surfaces (drag and rotate)
- ✅ 28 levels across 3 worlds
- ✅ Toys from World 1 on: trampolines, glass, fans and power stars; World 3 adds sponges and color gates and mixes them all
- ✅ Visual feedback for property changes (color, trails)
- ✅ Target collection system
- ✅ Touch controls for mobile
Tech Stack #
- Vite - Modern build tool and dev server
- Matter.js - 2D physics engine
- Canvas API - Rendering
- Vanilla JavaScript - No framework overhead
Next Steps #
Credits #
Created with ❤️ for kids who love to experiment and learn.