thunderrabbit / conswi

A swipe game for Godot 3
GNU General Public License v3.0
4 stars 4 forks source link

show unlock image after level won #64

Closed thunderrabbit closed 3 years ago

thunderrabbit commented 3 years ago

Add a popup of some type that depends on the value of show_unlock_image_after_level_won if it exists.

e.g. after winning Dog World level 3, we would show something like "Congrats! You unlocked cats!" (the rhyme is a bonus for you reading this issue, and not required to solve this for each animal, but it would be funny)

https://github.com/thunderrabbit/conswi/blob/cbd7c77c520c86e0c44ac727fa43bb9078e37f88/levels/DogWorld/normal_03.gd#L31

thunderrabbit commented 3 years ago

Still need to import correct images, but this is working for now with images only local to my machine, not yet committed.

ls images/level_over/unlocked/

-rw-r--r--@ 1 thunderrabbit  staff  56100 Dec  7 17:33 unlocked_cat.png
-rw-r--r--  1 thunderrabbit  staff    609 Dec  7 17:38 unlocked_cat.png.import
-rw-r--r--@ 1 thunderrabbit  staff  61342 Dec  7 17:25 unlocked_leopard.png
-rw-r--r--  1 thunderrabbit  staff    621 Dec  7 17:38 unlocked_leopard.png.import
-rw-r--r--@ 1 thunderrabbit  staff  55161 Dec  7 17:35 unlocked_pig.png
-rw-r--r--  1 thunderrabbit  staff    609 Dec  7 17:38 unlocked_pig.png.import
-rw-r--r--@ 1 thunderrabbit  staff  55951 Dec  7 17:35 unlocked_polar.png
-rw-r--r--  1 thunderrabbit  staff    615 Dec  7 17:38 unlocked_polar.png.import
-rw-r--r--@ 1 thunderrabbit  staff  55288 Dec  7 17:35 unlocked_sheep.png
-rw-r--r--  1 thunderrabbit  staff    615 Dec  7 17:38 unlocked_sheep.png.import
-rw-r--r--@ 1 thunderrabbit  staff  55127 Dec  7 17:35 unlocked_snake.png
-rw-r--r--  1 thunderrabbit  staff    615 Dec  7 17:38 unlocked_snake.png.import
-rw-r--r--@ 1 thunderrabbit  staff  55559 Dec  7 17:35 unlocked_zebra.png
-rw-r--r--  1 thunderrabbit  staff    615 Dec  7 17:38 unlocked_zebra.png.import