I Tried to Make Star Wars Battlefront II in JavaScript
ฝัง
- เผยแพร่เมื่อ 27 ก.ย. 2024
- Tried building a Starfighter Assault clone, all in JavaScript.
Support me on:
Patreon: / simondevyt
Follow me on:
Twitter: / iced_coffee_dev
Instagram: / beer_and_code
Github: github.com/sim...
Here I tried to build a 3D JavaScript game, mostly from scratch, using libraries like Three.js/Ammo.js. This was heavily inspired (very heavily) inspired from the Star Wars: Battlefront II: Starfighter Assault game, which looks way better, but c'mon, this is just one guy and JavaScript. The code could definitely serve as a starting point for a way cooler game.
The goal of the project was to mash together a bunch of elements we've already seen, such as particle systems, third person cameras, player input controls, and introduce a few new things too such as the gamepad API and ammo.js physics support, and a bit of WebAudio through Three.js's API. Hopefully from this, you'll be able to understand how to integrate these various components to build out your own games.
What I'll cover:
* Basic game construction
* Player input, particle systems
* UI Components
* GamePad API
* Three.js and Ammo.js
References:
Inigo Quilez's site, lots of magic on noise and shaders, really the goto reference: iquilezles.org/
Star Wars Battlefront II, very cool game, I assume from the trailers, haven't played it: / eastarwars