How veikkaheiskanen/lentopeliweb works
Flight Incremental is a browser-based flight-management incremental game. The player views airports and flight routes on a map, requests flight details, starts flights, and buys upgrades or rebirth upgrades; the Flask API advances the simulation and returns refreshed state. The Python game separates world/airport rules, flight simulation, economy, and rebirth progression, while persistence stores saves in MariaDB. The README documents the browser/API and database roles; frontend interaction details are supported by sampled map and client code, but the HTML wiring was not sampled.
Main entry points: game.py Game coordinator · map.js Map and flights · app.py Flask API · game.js API client
Components 14
Browser game
- Map and flights
web/map.js - Upgrade panels
web/panel.js - Plane animation
web/src/plane.js - API client
web/src/game.js
Game server
- Flask API
app.py
Game simulation
- Game coordinator
flightgame/game.py - Airports and unlocks
flightgame/world_map.py - Flight simulation
flightgame/plane.py - Economy and upgrades
flightgame/economy.py - Rebirth and bots
flightgame/rebirth.py
Persistence
- Save conversion
flightgame/save.py - Database access
flightgame/database.py
Other components
- Player
- MariaDB
Connections 17
- Player → Map and flights: uses
README.md - Map and flights → API client: creates game
web/map.js - Map and flights → Plane animation: animates
web/map.js - Map and flights → Upgrade panels: initializes
web/map.js - Upgrade panels → API client: calls actions
web/panel.js - Plane animation → API client: reads state
web/src/plane.js - API client → Flask API: sends API requests
README.md - Flask API → Game coordinator: dispatches actions
app.py - Flask API → Database access: loads airports
app.py - Flask API → Save conversion: applies and serializes
app.py - Game coordinator → Airports and unlocks: uses airport rules
flightgame/game.py - Game coordinator → Economy and upgrades: updates and delegates
flightgame/game.py - Game coordinator → Flight simulation: updates and starts flights
flightgame/game.py - Game coordinator → Rebirth and bots: delegates progression
flightgame/game.py - Rebirth and bots → Flight simulation: spawns bot planes
flightgame/rebirth.py - Database access → Airports and unlocks: builds airport records
flightgame/database.py - Database access → MariaDB: queries and saves
README.md