adding a fonctionnal game over screen

This commit is contained in:
Clément Le Bihan
2020-04-30 16:22:03 +02:00
parent 73630400a2
commit 5e26fda772
3 changed files with 5 additions and 4 deletions
+2
View File
@@ -140,6 +140,8 @@
<sprite name="save" src="assets/ui/save.png" />
<sprite name="rain" src="assets/ui/rain.png" />
<sprite name="loading" src="assets/ui/background_rpg.png" />
<enemies>
<enemy name="bee" src="prefabs/enemies/bee.gcprefab" />
</enemies>
+2 -3
View File
@@ -1,12 +1,11 @@
<gc_scene>
<data>
<sprite name="panel" src="assets/ui/sample_background.png" />
<font src="assets/fonts/roboto.ttf" />
</data>
<gc_entities>
<camera x="0" y="0" />
<panel src="background" x="50%" y="50%" width="100%" height="100%" tag="game_over" />
<panel src="panel" x="50%" y="60%" width="50%" height="55%" tag="game_over" />
<panel src="panel" x="50%" y="55%" width="50%" height="70%" tag="game_over" />
<text text="GAME OVER" x="50%" y="30%" resize="false" tag="game_over"/>
<button text="Continue" x="50%" y="47%" click="hide_game_over" color="black" width="30%" height="20%" resize="false" tag="game_over" />
<button text="Restart Game" x="50%" y="61%" click="start_button" color="black" width="30%" height="20%" resize="false" tag="game_over" />
<button text="Quit game" x="50%" y="75s%" click="quit" color="black" width="30%" height="20%" resize="false" tag="game_over" />