Commit Graph
9 Commits
Author SHA1 Message Date
Fiereu 499d20fdb3 feat(game): open the mart shop and key items by the ids the client reads (#151) 2026-08-10 14:52:44 +02:00
Fiereu e8baac972c fix(game): undo an interrupted script so a character does not lose or replay progress (#143)
* fix(game): make character store writes atomic so concurrent updates are not lost

* fix(game): refuse a scripted move that would leave the map

* fix(game): remember which way a character was facing across a relogin

* fix(game): undo an interrupted script so the next login does not replay it

* docs: record the script rollback and the atomic store writes

* chore(game): cut the script recovery comments back

* fix(game): roll a disconnected script back once, after the battle flush
2026-08-09 13:39:39 +02:00
Fiereu 225371fccb feat(game): add a /story command that jumps to a Kanto story checkpoint (#138)
* feat(game): add a /story command that jumps to a kanto story checkpoint

* feat(game): add a /story reset that starts the region over

* fix(game): stop a story jump running over a battle, a dialog or the pc

* chore(game): cut the story command comments back

* test(game): drop the seed starter expectation the sql seed no longer meets
2026-08-09 11:59:37 +02:00
Fiereu 9215a0862a feat(game): implement the Kanto story from Pallet Town through the Pokedex (#127)
* feat(game): implement Kanto story through the Pokedex

* fix(game): stop the rival walking into the player in the pokedex scene

* fix(game): stop oak teleporting to his desk in the starter scene

* fix(game): make a scripted warp arrive the way a walked one does

* fix(game): finish the oaks lab rival scene whether the player wins or loses

* chore(game): tidy the kanto script and item codegen comments

* docs: point the script guides at MapEntryScripts and trainerBattle

* fix(codegen): send item ids in the region whose table matches the decomp
2026-08-09 10:45:24 +02:00
Fiereu c3fd2d3f81 docs: document the script system (#78)
* docs: document the script system

* chore: fix style
2026-08-02 15:42:30 +02:00
Fiereuandgithub-actions[bot] 300bc52531 feat(game): basic script implementations (#65)
* feat(game): open the wired dialog line when a player interacts with an npc or sign

* feat(game): run npc and sign interactions through a generated script layer

* chore(style): spotlessApply

* fix(codegen): generate dialog enums without a rom so ci can compile

* docs: add a guide for writing overworld scripts

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-07-26 00:12:30 +02:00
Fiereu daf4daf197 feat(server): persist accounts and characters in PostgreSQL (#48)
* feat(server): persist accounts and characters in PostgreSQL via jOOQ, HikariCP, and Flyway

* test: reword test names to match the writing style

* docs: explain the database setup and dev seeding
2026-07-21 11:25:21 +02:00
Fiereu 4b533bd099 feat(server.game): route events through a InterestManager (#47)
* feat(server.game): route events through a InterestManager

* docs: explain the InterestManager and when to use it

* fix(login): carry the authenticated account to the game server so players get distinct characters

* fix(protocols.game): decode entity move from capture at opcode 0xE4 with little-endian ids and 16-bit coords

* feat(game): make the server authoritative over movement and broadcast steps and turns to nearby players

* refactor(game): drop the unused broadcastExcept and isOnline methods
2026-07-20 23:42:14 +02:00
Fiereu 19eb9f371d docs: set up Astro Starlight site for Read the Docs (#46) 2026-07-20 15:30:23 +02:00