Kiva-Entertainment / yohk

SRPG game made with Blender, with scripts in Python
Other
9 stars 0 forks source link

Undo log exists to take back movement #12

Closed KaiGeffen closed 10 years ago

KaiGeffen commented 10 years ago

Any instances of unit movement up to the last turn switch/command performed can be taken back.

This makes it easier for user to see eventual position for their units, and makes game feel more forgiving.

Solution draft: Before each unit moves, append their number and current position to list Clear that list when command happens/turns switch When undo key is pressed, pop entry off list, move unit with # given to position given