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,7 +1,7 @@
// src/render/player_positioning.h
#pragma once
#include "../assets/background_frame.h"
#include "../assets/character_frames.h"
#include "player.h"
struct CharacterPosition {
int x;
@@ -9,4 +9,4 @@ struct CharacterPosition {
};
// Calculates drawing position relative to bottom-left pivot
CharacterPosition get_aligned_frame_position(CharacterPosition base, CharacterFrame frame);
CharacterPosition get_aligned_frame_position(CharacterPosition base, MovementType movement,int frame_index);