2D Verlet Physics & Particle Destruction Game
A browser-based physics puzzle/action game implementing Verlet integration, constraint resolution (sticks, ropes, cloth), rigid body particle clustering, and destructible pixel terrain. Teaches pure math, vector mechanics, and deterministic game loops without relying on bulky game engines.
Most web games rely on heavy engines like Unity/Phaser, resulting in slow load times and zero low-level physics understanding. This proves mastery of low-level game mechanics.
Can be published on Steam (via Tauri/Electron) as an indie puzzle game or open-sourced as a lightweight educational physics library.
Adım Adım Geliştirme Yol Haritası
Faz Faz İlerlemePhase 1: Game Loop & Vector Math
- Setup requestAnimationFrame loop with fixed dt time-stepping (Math.min(dt, 0.05))
- Implement Point entity with pos, oldPos, accel, mass, and Verlet integration formula
- Add screen boundary bounce with restitution energy loss
Phase 2: Constraints & Rigid Body Clusters
- Build DistanceConstraint (sticks/ropes) with relaxation iterations (3-5 passes)
- Assemble compound objects (ragdolls, bouncy wheels, cloth meshes)
- Add mouse interaction (drag points, cut ropes with velocity vector)
Phase 3: Destructible Terrain & Polish
- Bitmask/canvas pixel sampling for destructible ground explosions
- Screen shake and particle debris on impacts
- Sound synthesis using Web Audio API oscillators for procedural collision sounds
İleride Eklenebilecek İleri Düzey Özellikler
Bu projeyi kendi seviyene göre uyarlamak ister misin?
Kullandığın programlama dili veya framework farklıysa, AI asistanı sana özel bir başlangıç şablonu hazırlayabilir.