# Polygon Protocol
[](https://youtu.be/puj--GcC26g)
Evolve. Dash. Survive.
A fast-paced geometric roguelite built in Godot where your shape is your weapon.
Start as a fragile circle, carve through corrupted swarms, evolve into deadlier polygons,
and break massive boss encounters by dashing into their exposed hearts.
## What's new
- **Four new enemy types that force different play**: the shielded **Aegis**, the **Splitter** that bursts into fast shards, the **Sniper** whose aim locks when its beam flashes white, and the **Mender** that heals nearby enemies. A short intel card introduces each one the first time you meet it.
- **Counters and synergies**: new upgrades answer the new threats, and stacking the right upgrades triggers named synergies (Storm Front, Chain Reaction, Cascade and more).
- **Protocols**: pick risk/reward modifiers before a run (Swarm, Hunters, Glass Core, Low Power, Vanguard, No Repairs, Elite Tide) for a higher score and shard multiplier.
- **Daily Protocol**: one seeded run per day, with the same enemy sequence for everyone, a streak counter and its own online leaderboard.
- **Four bosses, each with adaptive music**, a rebuilt HUD, rebuilt sound effects, a title sequence, screen transitions and a run-summary death screen with a "new best" moment.
- **Accessibility**: glow and screen-shake sliders, reduced-flash mode, colour-blind-safe palettes, a bigger HUD option and full key rebinding.
- **Controller and touch support**: gamepad with menu navigation and vibration, plus on-screen touch controls for phones and tablets in the browser build.
- **Two-minute guided first run**: new players get five short lessons (move, dash, level up, shoot, combo) against slowed, hand-placed enemies before the real run starts at 0:00. It can be skipped.
- **"How you died"**: the death screen says what hit you, how fast you went down, and one thing to try next time.
- **Shape tree**: spend shards in the Evolution Vault to unlock starting shapes (Spark, Bastion, Comet, Hive). Each starts already evolved, with a trade-off for the run.
- **Fourth boss and a new arena**: **Prism** fights inside a hexagon whose walls overload (amber flash, then deadly), with its own adaptive music. It arrives at 15:00.
- **Bosses rebuilt on one system**: all four share an arena, heart and phase framework. Chip damage can no longer finish a boss (only hearts do), duo fights keep the dash nerf until both die, and every boss announces its phases.
- **Endless mode and late waves**: declining the 6:00 boss now says what you get (no more bosses, +25% score and shards). Staying in means a boss pair every 6 minutes after 15:00, tougher each lap. Enemies get tougher over time instead of just more numerous, and the late mix leans on Tanks, Snipers, Aegis and Menders.
- **Juice pass**: hit-stop on heavy and dash kills, an escalating combo meter (Chain, Surge, Frenzy, Overload, Singularity), a directional camera punch, and shattering death effects. Hit-stop and screen shake can be turned off in Accessibility.
Polygon Protocol is a score-chasing survival game set in a hostile digital void. Every run pushes you to manage dash energy, route enemies cleanly, survive escalating waves, and build toward a form powerful enough to handle its boss fights. What starts as a minimalist arcade survival game quickly opens into build decisions, permanent upgrades, and a tighter risk/reward loop around movement and invulnerability.
Built in **Godot 4.5**, the project blends bullet hell pressure, dash-based aggression, objective-driven bosses, online leaderboard support, and a neon geometric presentation. It began as a **Mini Jam 202: Power-up** submission and has since expanded into a fuller standalone project.
## Why It Hits
- **Shape evolution changes combat**: start as a circle, then evolve into multi-sided forms that add more firing angles and turn movement into offense.
- **Dash-first survival**: your dash is both escape tool and kill tool, with invulnerability during use and an energy economy that forces commitment.
- **Build variety every run**: level-up choices can push you toward faster fire, harder hits, bounce tech, gravity pull, explosive shots, or continuous beam play.
- **Bosses with actual mechanics**: Fortress, Pulsar, Singularity and Prism are not simple health sponges. You need to hunt vulnerable boss hearts and break the pattern under pressure.
- **Meta progression that matters**: earn Quantum Shards, spend them in the Evolution Vault, and unlock permanent upgrades that change future runs.
- **Competitive layer**: local high scores and online leaderboard uploads are supported through SilentWolf integration.
## Screenshot Gallery
| Combat | Evolution Select |
| --- | --- |
|  |  |
| Boss fight | Protocols |
| --- | --- |
|  |  |
| Main menu | Evolution Vault |
| --- | --- |
|  |  |
## Core Loop
1. Enter the arena as a vulnerable base form.
2. Clear enemy waves while balancing movement, positioning, and dash energy.
3. Level up mid-run and pick upgrades that shape your build.
4. Evolve into stronger polygon forms with broader firing coverage.
5. Beat boss phases, collect shards, and invest them into permanent progression.
6. Come back stronger and push for a higher score, longer survival time, and cleaner runs.
## Controls
| | Keyboard / mouse | Gamepad | Touch |
| --- | --- | --- | --- |
| Move | `WASD` or mouse movement | Left stick or D-pad | Drag anywhere on the left side |
| Dash | `Space` or left click | `RT`, `RB` or `X` | Hold the dash button |
| Pause | `Esc` | `Start` or `B` | Pause button |
Keys can be rebound, and glow, screen shake, reduced flash, colour palette, HUD size, vibration and touch controls (Auto / On / Off) live in the accessibility menu. Tutorial toggle, audio and difficulty are in the in-game options menu. Touch controls show up on their own the first time you touch the screen.
## Play It
- **Browser / desktop builds**: [Polygon Protocol on itch.io](https://kirilp.itch.io/polygon-protocol)
- **Platforms currently exported in this repo**: `HTML5`, `Windows`, and `macOS`
## Run Locally
1. Install **Godot 4.5**.
2. Clone this repository.
3. Open `project.godot` in Godot.
4. Press `F5` to run the project.
From the project root, without opening the editor:
```text
tools/run.sh launch the game (extra arguments go to Godot)
tools/test.sh headless test suite, exit code 0 when everything passes
tools/web/build.sh export the web build and zip it for itch.io
tools/web/serve.sh serve the web build at http://localhost:8000
tools/web/deploy.sh build and publish the web build to Vercel (see the script header)
tools/telemetry/report.py summarise the anonymous run data (`--remote` for the live board)
```
Export presets are already configured for:
- `Web`
- `Windows Desktop`
- `macOS`
## Project Structure
```text
addons/ Third-party plugins, including SilentWolf leaderboard support
assets/ Art, particles, UI resources, shaders, and imported packs
build/ Exported builds for web and desktop
scenes/ Menus, gameplay scenes, enemies, UI, and progression screens
scripts/ Core gameplay logic, bosses, player systems, upgrades, HUD, and persistence
```
## Tech Notes
- **Engine**: Godot `4.5`
- **Primary loop**: top-down survival shooter with roguelite progression
- **Persistence**: local save data for settings, progression, and personal bests
- **Leaderboard service**: SilentWolf for online score submission and retrieval
- **Input support**: keyboard, mouse, gamepad and touch all drive the same input actions
## Privacy and run data
When a run ends, the game can send one small anonymous record to the SilentWolf board `telemetry_v1`: the protocols picked, the upgrades taken in order, what killed you, and headline numbers (time, level, kills, combo, starting shape, platform). It contains no player name, no player id and no install id. Turn it off with **Accessibility > Share anonymous run data**. Editor and debug runs never send anything. The same record is appended to `user://telemetry.jsonl` on your machine (last 100 runs); summarise it with `python3 tools/telemetry/report.py path/to/telemetry.jsonl`, or read the live board with `python3 tools/telemetry/report.py --remote`.
## Tests
Headless checks for the first run, shapes, telemetry, death report, juice, bosses and waves:
```text
Godot --headless --path . res://tests/run_tests.tscn
```
They never touch your save, settings or the online boards.
## Roadmap Direction
- Late-run balance passes based on player feedback
- More upgrade interactions and stronger build identities
- More bosses and arenas (a boss is one script plus one entry in `scripts/boss_table.gd`)
- Continued polish on mobile and the browser build
## Credits
All music and sound effects are original and generated from code (`tools/audio`). Third-party assets (Kenney packs under CC0, the SilentWolf plugin) are listed in [CREDITS.md](CREDITS.md).
## Repo Purpose
This repository contains the source for Polygon Protocol, including gameplay systems, progression logic, exported builds, and the current structure used to keep expanding the game. If you want to follow development, play the latest public build, or inspect how the systems are put together in Godot, this is the place.