Dyno Dash is a pixel-art 2D platformer built with Phaser 3 and TypeScript. Platforms are generated from Dynamo .dyn graphs β each Dynamo node becomes a platform slab, and wires between nodes become rideable bezier connectors. The game includes Dynamo-themed trivia, character customization, and a rocket boost mechanic.
npm install
npm run devThen open http://localhost:8080.
- Move: Arrow keys / WASD
- Jump: Up / W / Space (with coyote time and jump buffering)
- Rocket boost: Hold Shift to ascend β burns fuel, recharges on ground
- Ride wires: Walk off the edge of a node slab onto the bezier wire connecting to the next β slope affects your speed
- Trivia: Every 5 collectibles collected triggers a Dynamo trivia question from Jacob Small; correct answers grant a life, wrong answers deal knockback
- Goal: Reach the flag at the rightmost node
Every third platform becomes a moving red node that oscillates horizontally. Wires connected to moving platforms track their movement in real time.
Jacobot β a robot boss stands on the rightmost platform. He hurls random software bugs (beetle, spider, fly) toward the player on a randomised timer. Each hit costs 25 HP. Bugs arc ballistically toward the player's position with a small spread, so standing still is dangerous.
Choose from 5 archetypes at the character select screen, each with a fully customisable colour palette (body, skin, legs):
| Archetype | Description |
|---|---|
| Achintya | Default hero |
| Trygve | Nordic warrior |
| Aaron | Speedrunner |
| Ashish | Tech wizard |
| Misha | Stealth runner |
From the main menu, upload a .dyn file to generate a level from your own Dynamo graph. Each node becomes a platform slab; Connectors in the graph become wires. Without an upload, a built-in default graph is used.
βββ src/
β βββ main.ts # Entry point, Phaser game config
β βββ config/
β β βββ GameConfig.ts # Shared constants (tile size 32px, gravity 1200, etc.)
β βββ scenes/
β β βββ BootScene.ts # Pixel-art rendering setup
β β βββ PreloadScene.ts # Asset loading
β β βββ MenuScene.ts # Main menu + .dyn file upload
β β βββ GameScene.ts # Core gameplay loop
β β βββ UIScene.ts # HUD (hearts, rocket fuel bar)
β β βββ CharacterSelectScene.ts
β β βββ CharacterBuilderScene.ts # Colour palette customisation
β β βββ RosterScene.ts
β β βββ GameOverScene.ts
β β βββ WinScene.ts
β βββ entities/
β β βββ Player.ts # Movement, jump, rocket boost, damage
β β βββ Jacobot.ts # Boss enemy: throws bugs ballistically at the player
β β βββ NodeConnector.ts # Bezier wire (rideable; breaks after 2 s)
β βββ character/
β β βββ PlayerArchetype.ts # Archetype IDs and labels
β β βββ CharacterAppearance.ts # Colour palettes
β β βββ renderPlayerTexture.ts # Per-archetype pixel-art draw functions
β βββ levels/
β β βββ buildLevelFromGraph.ts # Spawns all world content from a LevelGraph
β βββ level-graph/
β β βββ types.ts # LevelGraph / GraphNode types
β β βββ graph.ts # Validation helpers
β βββ dyn/
β β βββ types.ts # DynNode / DynWireEdge parsers
β β βββ defaultDynRaw.ts # Built-in fallback .dyn graph
β βββ trivia/
β β βββ TriviaSystem.ts # DOM overlay quiz UI + lives logic
β β βββ questions.ts # Dynamo trivia question bank
β βββ audio/
β β βββ SoundEngine.ts # SFX and music helpers
β βββ easterEgg/
β β βββ konami.ts # Konami code handler
β βββ utils/
β βββ PlaceholderTextures.ts # Procedural textures (no external assets needed)
βββ public/
β βββ assets/ # Static assets (logo, audio, fonts)
β βββ levels/
β βββ example-level.json # JSON level graph (used when no .dyn is uploaded)
βββ dist/ # Production build output (git-ignored)
| Command | Description |
|---|---|
npm run dev |
Start dev server with hot reload at http://localhost:8080 |
npm run build |
Type-check and build to dist/ |
npm run preview |
Preview production build at http://localhost:8080 |
| Area | Detail |
|---|---|
| Levels | Two designed levels exist. From level 3 onward the game enters Endless Mode β same level 2 layout with scaling difficulty (faster Jacobot throws, higher bug damage, more moving platforms, shorter wire break time). No final level or end screen yet. |
| Input | Keyboard only. No gamepad or touch/mobile support. |
| Level graph | All levels share a single example-level.json. The uploaded .dyn file is the only per-run variable; there is no multi-level .dyn sequencing. |
| File upload | .dyn files are capped at 5 MB. Very large or deeply nested graphs may produce crowded platform layouts. |
| Score | Accumulates across levels within a run. Resets to 0 on each life lost and on game-over restart. |
| Browser | Tested on Chromium-based browsers and Firefox. Safari Web Audio autoplay policy may delay music until the first user interaction. |
- Phaser 3 β game framework with arcade physics
- TypeScript β type safety
- Vite β dev server and bundler
- Internal resolution 640Γ360 upscaled with
pixelArt: true(nearest-neighbour) for crisp pixel art