multiple frames now added and working

This commit is contained in:
Priec
2025-11-14 23:53:45 +01:00
parent 285840b521
commit 11f5eb7fd1
12 changed files with 108 additions and 128 deletions

View File

@@ -1,6 +1,11 @@
// src/render/player.h
#pragma once
#include "../assets/character_frames.h"
enum class MovementType {
Walk,
Run,
Crawl
};
// Draw the player object starting at given (x, y)
void draw_character(int x, int y, CharacterFrame frame);
void draw_character(int x, int y, MovementType movement, int frame_index);