DANGEROUS GAME
USER GUIDE
This guide was generated directly from the game engine source code. It documents gameplay rules, level editor mechanics, tile IDs, configuration systems, URL-based level sharing, and the complete workflow for designing custom levels and gameplay experiences.
THE BASICS
Dangerous Game is a retro side-scrolling action platformer featuring collectible objectives, enemy combat, environmental hazards, and level progression mechanics.
CORE OBJECTIVE
- Collect all trophies🏆 in the level.
- Find the required key🔑.
- Reach the exit door🚪.
- Defeat enemies👾 for score bonuses.
- Survive spikes⚠️, lava🌋, and hazards.
PLAYER SYSTEM
- Default lives: 3
- Maximum lives: 9
- Jetpack fuel system with regeneration.
- Invincibility frames after damage.
- Weapon pickups and upgrades.
SCORING
- Trophy: +500
- Key: +50
- Enemy kills: +300 to +10000
- Level completion bonus: +1000
- Grenade multi-kill bonus available.
ACHIEVEMENTS
- FIRST BLOOD
- WAR MACHINE
- TOP GUN
- BOSS SLAYER
- SPEEDRUN LEVEL
MASTERING CONTROLS
MOVEMENT
- A or ← → Move Left
- D or → → Move Right
- W or ↑ → Climb Ladder
- SPACE → Jump
- SHIFT → Run
COMBAT
- Z or CTRL → Fire Weapon 🔫
- X → Throw Grenade 💣
- Machine gun🔫🔥 reduces cooldown delay.
- Grenades💣 use fuse timing physics.
JETPACK
- C → Activate Jetpack 🚀
- Fuel regenerates automatically.
- Jetpack lift force is configurable.
- Jetpack achievement supported.
EDITOR / ADMIN
- CTRL + S → Apply Config Changes
- F11 → Fullscreen
- Mouse painting supported in level editor.
- Undo history auto-tracked.
TILE ID REFERENCE
Every level is built from numeric tile IDs. The engine reads these IDs to spawn terrain, enemies, pickups, and gameplay objects.
| ID | ICON | NAME | FUNCTION |
|---|---|---|---|
| 🏗️ TERRAIN — Draw the World | |||
| 0 | ⬛ | EMPTY | Air / Empty Space |
| 1 | 🟫 | GROUND | Solid Ground Collision |
| 2 | 🧱 | BRICK | Wall Block |
| 3 | ⚠️ | SPIKES | Damage Hazard |
| 8 | 🌋 | LAVA | Instant Death Hazard |
| 9 | 🪜 | LADDER | Climbable Tile |
| 10 | 🟦 | PLATFORM | Thin Platform |
| 24 | ⬛ | SECRET BLOCK | Breakable Secret Tile |
| 25 | 🧊 | ICE PLATFORM | Slippery Surface |
| 26 | 📦 | CRATE | Breakable Object |
| 27 | 🛢️ | BARREL | Explosive Barrel |
| 🎯 OBJECTIVES — Keys, Doors & Progression | |||
| 4 | 🏆 | TROPHY | Collectible Objective |
| 5 | 🔑 | KEY | Unlock Exit Door |
| 6 | 🚪 | DOOR | Exit / Finish Level |
| 12 | 🚩 | SPAWN | Player Spawn Position |
| 13 | 🌀 | TELEPORT | Warp / Teleport Tile |
| ⚡ POWER-UPS — Collectible Boosts | |||
| 14 | 🚀 | JETPACK | Jetpack Pickup |
| 15 | ❤️ | EXTRA LIFE | Gain Additional Life |
| 18 | 💎 | UPGRADE CHIP | Weapon Upgrade |
| 28 | 🪨 | ROCK | Decorative Obstacle |
| 29 | 🌲 | TREE | Decoration Tile |
| 🔫 WEAPONS — Guns, Grenades & Upgrades | |||
| 7 | 🔫 | PISTOL | Weapon Pickup |
| 16 | 💣 | GRENADE | Grenade Pickup |
| 17 | 🔫🔥 | MACHINE GUN | Rapid Fire Weapon |
| 👾 ENEMIES — Patrol, Fly, Jump, Snipe & Elite AI | |||
| 11 | 👾 | ENEMY | Basic Enemy Spawn |
| 20 | 🦾 | HEAVY ENEMY | Heavy Ground Enemy |
| 21 | 🛸 | FLYING ENEMY | Flying AI Enemy |
| 22 | 🐸 | JUMPER | Jumping Enemy |
| 23 | 🎯 | SNIPER | Ranged Enemy |
| 40 | 🤖 | CYBORG | Advanced Enemy Type |
| 41 | 👽 | ALIEN | Alien Enemy AI |
| 42 | ☠️ | REAPER | Ultra Dangerous Enemy |
| 💀 BOSSES — Multi-Phase Boss Enemies | |||
| 30 | 👹 | BOSS 1 | Boss Enemy Type 1 |
| 31 | 💀 | BOSS 2 | Boss Enemy Type 2 |
| 32 | 🐉 | BOSS 3 | Boss Enemy Type 3 |
| ❓ RESERVED / UNUSED | |||
| 19 | ❓ | UNUSED | Reserved / Not Used |
LEVEL ARCHITECT GUIDE
The editor uses a tile-based grid system. Standard maps are designed around a 10 rows × 50 columns structure.
MANDATORY REQUIREMENTS
- At least 1 KEY🔑 tile (5)
- At least 1 DOOR🚪 tile (6)
- SPAWN🚩 tile strongly recommended.
- Ground🟫 required on final row.
EDITOR FEATURES
- Paint tiles with mouse.
- Undo history tracking.
- Thumbnail preview generation.
- AI-generated level support.
- Live play testing.
LEVEL EXPORT / IMPORT
BUILD
Create your map using the editor tile palette.
EXPORT
Click Export to generate a JSON level file.
SHARE
Send the JSON file or Base64URL code to another player.
IMPORT
Load the file into the editor or play directly from a URL.
BASE64URL LEVEL SHARING
Dangerous Game includes a built-in URL sharing system that compresses levels into Base64URL hashes using run-length encoding.
HOW IT WORKS
- Tile arrays are flattened.
- Run-length encoding compresses repeated values.
- Binary buffer is converted to Base64URL.
- Hash loads automatically on startup.
IMPORT METHODS
- Paste full URL.
- Paste only the hash code.
- Paste raw encoded level string.
- Shared levels auto-load instantly.
GAME CONFIGURATION
The engine is fully configuration-driven through game.config.json. Nearly every gameplay system can be modified without editing source code.
PLAYER TAB 👤
- Walk Speed
- Run Speed
- Jump Force
- Gravity
- Jetpack Force🚀
- Jetpack Fuel
- Invincibility Time
- Health
- Lives❤️
WEAPONS TAB 🔫
- Pistol Damage
- Machine Gun Fire Rate🔫🔥
- Grenade Explosion Radius💣
- Bullet Speed
- Ammo Capacity
- Weapon Cooldown
- Explosion Damage
ENEMIES TAB 👾
- Enemy Speed
- Patrol Distance
- Jump Height
- Attack Cooldown
- Boss Health👹
- Sniper Accuracy🎯
- Flying Speed🛸
WORLD TAB 🌍
- Tile Size
- Map Width
- Map Height
- Background Theme
- Hazard Damage⚠️
- Lava Damage🌋
- Physics Settings
UI TAB 🖥️
- CRT Theme Colors
- Glow Intensity
- HUD Size
- Scanline Effects
- Notification Duration
- Menu Animation Speed
AUDIO TAB 🔊
- Master Volume
- Music Volume
- SFX Volume
- Jump Sound
- Explosion Sound💣
- Boss Audio👹
- Retro Synth Effects
EDITOR TAB 🧱
- Grid Visibility
- Auto Save
- Undo Stack Limit
- Tile Highlighting
- Preview Rendering
- AI Level Generation
ADVANCED TAB 🧠
- Debug Mode
- FPS Counter
- Collision Boxes
- Performance Metrics
- Save Compression
- Base64URL Encoding
- Developer Console
THEME TAB 🎨
- CRT Green Theme🟢
- CRT Amber Theme🟠
- CRT Blue Theme🔵
- Neon Purple Theme🟣
- Background Darkness Level🌑
- Glow Intensity✨
- Border Glow Effects💠
- Scanline Opacity📺
- CRT Flicker Strength⚡
- HUD Color Palette🖥️
- Text Glow Effects💡
- Retro Font Selection🔤
- UI Transparency Level🪟
- Panel Shadow Strength⬛
- Theme Import / Export💾
CONFIG ADMIN PANEL
The Admin Panel provides a visual editor for the configuration system. Changes can be previewed live and exported back to JSON.
EDIT
Modify values through fields, sliders, and color pickers.
APPLY
Save changes to localStorage session.
EXPORT
Download updated game.config.json.
RESET
Restore factory defaults instantly.