Demo link: FPS Sandbox
Video:
Iβve been experimenting with WebGL and physics lately, and ended up creating a little first-person shooter sandbox, a playable experiment where you can run around, aim, and test interactions right in your browser. better with sound so make sure sound is enabled.
Try it out here: https://hiteshsahu.com/lab/shooter-game/
Itβs purely a tech playground for now, but I had a lot of fun building the mechanics and fine-tuning the feel of movement and shooting.
Would love to hear your thoughts β especially on performance or ideas for what to add next (AI enemies? multiplayer? destructible terrain?).
Press F to Enter/Exit Game Mode or use Gui Controls:
-
W/βS/βA/βD/β Walk
-
SPACE jump
-
Shift run
-
Left Click: Shoot
-
Right Click: Aim
Experiment with cahnging Gravity to 0 or a positive value.
webgl #GameDev #BabylonJS #JavaScript #IndieDev