multiple frames now added and working
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user