issues
search
thunderrabbit
/
robdot_conswi
A swipe game for Godot
1
stars
1
forks
source link
Add ability to win levels
#22
Closed
thunderrabbit
closed
6 years ago
thunderrabbit
commented
6 years ago
Basically
Add level_requirements Dictionary to level definition e.g.
{"square":2, "ta3":1, "bo3":1}
When pieces are collected, compare to this dictionary
When a piece name matches dictionary key, decrement its required quantity
When piece required quantity reaches 0, remove that key from dictionary
Win when dictionary is empty
Basically
{"square":2, "ta3":1, "bo3":1}