DANGEROUS DAVE IN SPACE ▀ JAVASCRIPT TRAINING
Page content
UPDATED ON: 2025-11-28
Dangerous Dave is a small demonstration of JavaScript capabilities.
Control Dangerous Dave in wacky space riding green glowing blob by means of:
- [▲] [▼] [◄] [►] arrow keys for movement
- [Spacebar] for laser shot
- [F8] to turn on/off orbiting planets
- [Enter] to become as cool as Duke Nukem
▀ FEATURES
- no heavy frameworks and dependencies, just pure JavaScript
- compact size, less than 500Kb including graphics and audio
- tiny core only 35Kb!
- completely free, no license, do with it whatever you what
More stuff to come (why we have only 24h per day?).
▀ GFX NICETIES
- multitude of space backdrops
- static stars [layer1], moving and rotating with transparency [layer2]
- random blinking [layer3] and moving stars [layer4]
- “raining” moving stars from top to bottom [layer5]
▀ TODO PLANS
- improve performance if it is possible
- finish mobile version
- ….TBD….
- ….
▀ DONE STUFF
- beta mobile [touch] support
- add sounds to startup, actions and backdrop ambience
- make Dave leave trace while moving
- implement space bar fire
- make Dave to turn arround to the direction he is heading to
- random starting location of blinking stars, they also should change their formation upon blinking
▀ TECHNICAL DETAILS
Ultra low-budget i3-3220 from 2013 runs it quite decently.
Turn off some planet orbits [or turn them off completely] in markup to improve performance by a big margin.
- Written in plain HTML / CSS / JavaScript
- OS: Windows 7 x64 ESU
- Editor: VsCodium 1.97
- Browser: RedFox 144
▀ IN MEMORY OF MY MOM
† Rest in peace, maybe it is even better place than ours.