You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A cross-platform turn-based strategy (TBS) game built in Unity and C#, focusing on territorial conquest, state economy management, technology progression, and multi-tier diplomacy.
Developed as an engineering diploma thesis (Projekt i implementacja wieloplatformowej strategicznej gry turowej) at the Lublin University of Technology (Politechnika Lubelska), the project bridges the gap between casual strategy games (such as Risk) and complex grand strategy titles (such as Europa Universalis IV or Civilization VI). It introduces players to deep strategic mechanics through an intuitive, accessible, and minimalist interface.
Screenshots
Core Gameplay: Hex World Map, Province Inspection & Economy Bar
Main Menu
New Game Scenario Setup
Terrain Biomes Map Mode
Population Density Map Mode
Technology Research Tree
Diplomatic Actions & Treaties
International Relations & Opinions
Controlled Provinces Overview
Fog of War & Territorial Occupation
Army Movement & Unit Split Dialog
Features
Hexagonal Grid World & Multi-Layer Tilemaps: Modular hexagonal world map where each province stores individual properties (population, happiness, resources, terrain type, structures) rendered using layered tilemaps (base terrain, political borders, occupation stripes, natural features, capitals, and dynamic fog of war).
6 Interactive Map Filters: Seamlessly toggle between multiple data visualizations: Political (national borders and occupation stripes), Terrain (tundra, lowlands, forest, desert, water), Resources (Gold, Wood, Iron, Action Points), Happiness (gradient heat-map from red to green), Population (dynamic relative color scaling), and Diplomatic Relations.
Economy & Dynamic Taxation: Province-level resource generation (Gold, Wood, Iron, Action Points, Science Points) balanced against national tax policies (Low, Medium, High, Wartime, Investment) affecting treasury growth and public unrest.
Multi-Branch Technology Tree: 3 distinct scientific trees (Economic, Military, Administrative) across 10 progressive tiers, unlocking advanced buildings (Mines, Forts, Schools), naval transport, festival hosting, tax breaks, and combat bonuses.
Bilateral Diplomacy & Reputation: Asymmetric bilateral relations and dynamic opinion scoring (-200 to +200) governing alliances, formal war declarations, truces, vassalization, tribute subsidies, military access agreements, insults, and praising missions.
Turn-Based Actions with Preview & Undo: Interactive command queue (recruiting armies, moving regiments, constructing or downgrading buildings, organizing festivals, suppressing revolts) featuring live resource deduction previews and full undo capability prior to turn confirmation.
Strategic Artificial Intelligence (AI): Fully autonomous computer opponents operating on a strategic personality system (Humor: Leading, Offensive, Defensive, Rebellious, Subservient, Normal) governing economy, military conquest, hexagonal pathfinding, and diplomatic treaties.
Fog of War & Reconnaissance: Two-tier fog of war system differentiating between explored historical memory (SeenTiles) and active line-of-sight vision (RevealedTiles) tied to army positions and controlled territory.
Custom Scenarios & Fast Binary Saves: Map scenarios defined in structured, easily modifiable JSON files, accompanied by compact binary game persistence (.save) with automated multi-turn autosaving.
Unity Editor 2022.3.37f1 (LTS) with Linux / Windows Build Support (Mono)
1. Clone the repository
git clone https://github.com/Abacysta/UnityInzynierka.git
cd UnityInzynierka
2. Open project in Unity Hub
Launch Unity Hub.
Click Add -> Add project from disk.
Select the repository root folder (UnityInzynierka).
Select Unity Editor version 2022.3.37f1.
3. Play in Unity Editor
In the Project tab, open Assets/scenes/.
Double-click main_menu.unity.
Press the Play (▶) button in the top toolbar to start the game.
4. Build Standalone Game (Windows / Linux)
In the top menu, go to File -> Build Settings....
Confirm the scenes included in the build:
0: Assets/scenes/main_menu.unity
1: Assets/scenes/local_play.unity
2: Assets/scenes/game_map.unity
Set platform to PC, Mac & Linux Standalone (Target OS: Linux or Windows, Architecture: x86_64).
Click Build and choose an output folder (e.g. Builds/). (Note: PostBuildCopy.cs automatically copies scenario maps from Assets/Resources/Maps to the build directory).
Running Tests
Unit & Integration Tests (Unity Test Framework)
The project includes automated Unit Tests and Integration Tests located in Assets/tests/edit_mode_tests/.
Integration test ensuring UI tax toggles correctly update country treasury and happiness
Architecture & Core Classes
The game logic follows an object-oriented and data-driven architecture separating data models (ScriptableObject), managers, and command pattern actions:
Class / Script
Responsibility
Key Mechanics & Patterns
Map
Central game state container (ScriptableObject)
Stores all provinces, countries, armies, active relations, and turn counters
game_manager
Main simulation loop & turn calculation
Orchestrates pre-turn resets, round-robin action execution, AI turns, and win conditions
TurnAction
Command pattern base for player actions
Supports Preview, Execute, and Revert operations with resource refunding
Country
Sovereign state model
Manages treasury, tech tree progression, modifiers, vassal relations, and fog of war
Province
Hex cell data representation
Manages population growth, happiness, buildings, resource extraction, and occupation
AI_manager
Autonomous opponent logic
Behavioral state machine evaluated via strategic Humor profiles and goal weights
diplomatic_relations_manager
Foreign relations controller
Manages alliances, wars, truces, military access, subsidies, and vassalage
dialog_box_manager
Dynamic popup dialog system
Implements the Builder Pattern (DialogBoxBuilder) for customizable prompts
camera_controller
Viewport & navigation controller
Smooth panning, clamping, orthographic zoom scaling, and province focus
HexUtils
Hexagonal geometry math
3D cube coordinates (q + r + s = 0) for neighbor lookups, distance, and A* pathfinding
Academic Thesis Project (Praca dyplomowa inżynierska) Supervisor:dr inż. Jakub Smołka Department: Faculty of Electrical Engineering and Computer Science, Lublin University of Technology (Politechnika Lubelska), 2025.