button press and blinking led on a button press

This commit is contained in:
Priec
2025-12-11 11:30:56 +01:00
parent 165540588f
commit 8382d1caec
3 changed files with 19 additions and 4 deletions

View File

@@ -5,6 +5,7 @@
#include "background.h"
#include "mbed.h"
#include "player.h"
#include "background.h"
#include "../game/state.h"
#include "../game/animation.h"
#include "../game/collision.h"
@@ -22,8 +23,6 @@ extern DigitalOut led;
constexpr int PLAYER_X = 29;
constexpr int PLAYER_Y = 6;
void draw_mask(const char *unused_filename, int shift);
void render_loop(int speed) {
MovementState player_state;
AnimationController animation;