another movement done

This commit is contained in:
Priec
2025-11-14 20:39:58 +01:00
parent a59192cf05
commit 528e38b428
5 changed files with 132 additions and 71 deletions

View File

@@ -0,0 +1,20 @@
// src/game/animation.h
#pragma once
#include "mbed.h"
constexpr auto ANIMATION_TICK = 170ms;
class AnimationController {
private:
Timer anim_timer;
int shift = 0;
public:
AnimationController();
// Update animation, returns true if redraw needed
bool tick(int speed);
// Getters
int get_shift() const { return shift; }
};