When designing the Void Miner game for this portfolio Arcade zone, the goal was not just another shoot-em-up, but a spacecraft control experience with inertia physics (momentum, thrust, and vacuum drag).
The starfighter is designed with an aerodynamic needle nose, striped delta wings, and twin wingtip laser cannons firing accurate twin plasma beams.
For audio, instead of weighing down the web bundle with large MP3 files, all sounds are synthesized in real time with the Web Audio API โ delivering instant 0ms-latency response and an authentic 8-bit retro arcade feel.
// Procedural Web Audio API Laser Synthesizer
playLaser() {
const ctx = this.getAudioContext()
const osc = ctx.createOscillator()
const gain = ctx.createGain()
osc.type = 'sawtooth'
osc.frequency.setValueAtTime(880, ctx.currentTime)
osc.frequency.exponentialRampToValueAtTime(110, ctx.currentTime + 0.12)
gain.gain.setValueAtTime(0.2, ctx.currentTime)
gain.gain.exponentialRampToValueAtTime(0.01, ctx.currentTime + 0.12)
osc.connect(gain).connect(ctx.destination)
osc.start()
osc.stop(ctx.currentTime + 0.12)
}Computer Engineering ยท FILKOM Universitas Brawijaya