Train Terminal Game

In-progress station game with a unique terminal interface, API calls, and dynamic content

Role

Developer & Designer

Year

2026

Category

game-devui

About This Project

Terminal is an in-progress game that combines a unique terminal interface with story base decisions to allow customers to complete a trip based on their plea. In the future more pictures, programming features, and gameplay will be added here.

Technologies Used

SvelteTypeScriptElectronCSSGithub

Engineering Challenges

Designing a budget-constrained route puzzle that stays fair and solvable as graph layouts and fares evolve to ensure difficulty remains balanced.

Simulating seat availability and background bookings per session so routes can become unavailable, harder for the player to complete a route.

Maintaining a strict renderer ⇄ main boundary: optimistic validation in the UI and authoritative re-check in the main process without leaking Node APIs.

Technical Highlights

Offline-first stack: Electron + Svelte UI with Phaser for the route puzzle and SQLite (better-sqlite3) for deterministic local saves and data organization.

Session-aware seat booking system that validates and books seats edge-by-edge and simulates background bookings to create emergent scarcity.

Double-validation flow: renderer uses fast heuristics for UX helping the player, main process re-validates and persists transactions to ensure integrity over a long session.

Business Logic

Per-session quotas and stats (approved/denied) so players engage with the game and do not just brute-force cancellations encouraging them to solve the route puzzles as well.

Post-confirmation rating system that scores routes on requested-stop compliance, budget efficiency, and path efficiency (used for end-of-session reporting).

Denial evaluation pipeline that scores denial decisions (appeals opened, questions asked, true seat shortages) and generates customer comments for flavor.