Added first UI elements

Rules can be created from the UI
Game can be stopped/started from the UI
Current level can be reset (Load from file again)
Added "Game" target and main file

TODO (A lot):
 - Unit tests
 - Fully functionnal UI
 - Win conditions
 - Level background
 - Level switching/progression
 - Interesting and varied rules
 - Multi-scale pathfinding
 - etc
This commit is contained in:
trotFunky 2019-06-11 00:33:44 +02:00
parent 8199b7d036
commit 60770b5395
16 changed files with 260 additions and 29 deletions

5
resources/level1.xml Normal file
View file

@ -0,0 +1,5 @@
<?xml version = "1.0"?>
<Level w="20" h="20" textureId="0">
<Entity x="5" y="5" type="Citizen"/>
<Entity x="10" y="5" type="Noble" textureId="1"/>
</Level>

33
resources/level2.xml Normal file
View file

@ -0,0 +1,33 @@
<?xml version = "1.0"?>
<Level w="20" h="20" textureId="0">
<Entity x="2" y="2" type="Citizen"/>
<Entity x="2" y="3" type="Citizen"/>
<Entity x="2" y="4" type="Citizen"/>
<Entity x="2" y="5" type="Citizen"/>
<Entity x="2" y="6" type="Citizen"/>
<Entity x="2" y="7" type="Citizen"/>
<Entity x="7" y="2" type="Citizen"/>
<Entity x="7" y="3" type="Citizen"/>
<Entity x="7" y="4" type="Citizen"/>
<Entity x="7" y="5" type="Citizen"/>
<Entity x="7" y="6" type="Citizen"/>
<Entity x="7" y="7" type="Citizen"/>
<Entity y="2" x="2" type="Citizen"/>
<Entity y="2" x="3" type="Citizen"/>
<Entity y="2" x="4" type="Citizen"/>
<Entity y="2" x="5" type="Citizen"/>
<Entity y="2" x="6" type="Citizen"/>
<Entity y="2" x="7" type="Citizen"/>
<Entity y="7" x="2" type="Citizen"/>
<Entity y="7" x="3" type="Citizen"/>
<Entity y="7" x="4" type="Citizen"/>
<Entity y="7" x="5" type="Citizen"/>
<Entity y="7" x="6" type="Citizen"/>
<Entity y="7" x="7" type="Citizen"/>
<Entity x="10" y="10" type="Noble" textureId="1"/>
<Entity x="3" y="3" w="4" h="4" type="House" textureId="2"/>
</Level>

View file

@ -1,7 +1,7 @@
<?xml version = "1.0"?>
<Level w="20" h="20" textureId="0">
<Entity x="0" y="0" type="Citizen"/>
<Entity x="0" y="1" type="Citizen"/>
<Entity x="10" y="10" type="Significant" textureId="1"/>
<Entity x="1" y="1" w="4" h="4" type="House" textureId="2"/>
<Entity x="0" y="10" type="Citizen"/>
<Entity x="10" y="10" type="Noble" textureId="1"/>
<Entity x="2" y="2" w="4" h="4" type="House" textureId="2"/>
</Level>