animation is now decoupled from sprite

This commit is contained in:
huaqo-games
2025-02-08 17:47:12 +01:00
parent 0c73d94187
commit bcb1577694
7 changed files with 121 additions and 4 deletions
+6 -4
View File
@@ -1,11 +1,13 @@
#ifndef OBJECT_H
#define OBJECT_H
#include <raylib.h> // Vector2, Rectangle, Color, GetRandomValue(), CheckCollisionRecs(), CheckCollisionPointRec()
#include <stdio.h> // printf()
#include <stdlib.h> // malloc(), realloc()
#include "sprite.h" // Sprite
#include <raylib.h>
#include <stdio.h>
#include <stdlib.h>
#include <raymath.h>
#include "sprite.h"
#include "vector.h"
typedef struct {
Sprite sprite;
Vector2 position;