Skip to content

Eel Animation

Heather Blakeway edited this page Sep 30, 2022 · 7 revisions

Link back to main page

Eel Animation

The eel animation process consisted of creating a character atlas based on a sprite sheet and utilising the GhostAnimationController class to produce animation.

Character Atlas

Implementation

Ghost Animation Controller

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");}

Ranged Enemy Movement Task

Table of Contents

Home

How to Play

Introduction

Game Features

Main Character

Enemies
The Final Boss

Landscape Objects

Shop
Inventory
Achievements
Camera

Crystal

Infrastructure

Audio

User Interfaces Across All Pages
Juicy UI
User Interfaces Buildings
Guidebook
[Resource Management](Resource-Management)
Map
Day and Night Cycle
Unified Grid System (UGS)
Polishing

Game Engine

Getting Started

Entities and Components

Service Locator

Loading Resources

Logging

Unit Testing

Debug Terminal

Input Handling

UI

Animations

Audio

AI

Physics

Game Screens and Areas

Terrain

Concurrency & Threading

Settings

Troubleshooting

MacOS Setup Guide

Clone this wiki locally