-
Notifications
You must be signed in to change notification settings - Fork 0
Eel Animation
Heather Blakeway edited this page Sep 30, 2022
·
7 revisions
The eel animation process consisted of creating a character atlas based on a sprite sheet and utilising the GhostAnimationController class to produce animation.
In this class the animations are initialised is responsible for playing animation when an event is triggered.
@Override
public void create() {
super.create();
animator = this.entity.getComponent(AnimationRenderComponent.class);
entity.getEvents().addListener("wanderStart", this::animateWander);
entity.getEvents().addListener("chaseStart", this::animateChase);
//Eel animations for each direction
entity.getEvents().addListener("fr", this::animateFrontRight);
entity.getEvents().addListener("fl", this::animateFrontLeft);
entity.getEvents().addListener("br", this::animateBackRight);
entity.getEvents().addListener("bl", this::animateBackLeft);
}
void animateFrontLeft(){animator.startAnimation("fl");}
void animateFrontRight(){animator.startAnimation("fr");}
void animateBackRight(){animator.startAnimation("br");}
void animateBackLeft(){animator.startAnimation("bl");}
The Final Boss
Shop
Inventory
Achievements
Infrastructure
User Interfaces Across All Pages
User Interfaces Buildings
Guidebook
[Resource Management](Resource-Management)