4. Game logic
• All logic
synchronous;
• All actions perform
per
one update;
• No any knowledge
about
event receivers;
5. Game visual: base components
Animation can contain any logic:
• starting game engine actions;
• starting Spine animations;
• all you want to do here;
Animation
9. We decide to add two more mechanics!
✓Plus card.
Plus card automatically adds more cards to stock when player opens plus card on
board. No need to play it.
✓Half card.
Half card contains two halves that merge automatically to normal card when both
halves opened.
Sounds good, let’s implement them!
15. Animation Queue
Two main methods:
• addAnimation to place
new
Animation in queue;
• tryExecuteAnimation to
determine can we
start next animation or
not
19. We can think of animation as an operation that requires some
objects to be free to start this. Operation also holds some objects
(the same as for start, or not) during its lifetime, such preventing
other operations from start.
Resource can be any object, for example string, int or even
another animation.