basic components

This commit is contained in:
Noel Berry
2021-01-02 16:20:01 -08:00
parent 8db43ce18e
commit 4e05170023
20 changed files with 636 additions and 9 deletions

0
src/assets/sprite.cpp Normal file
View File

26
src/assets/sprite.h Normal file
View File

@ -0,0 +1,26 @@
#pragma once
#include <blah.h>
using namespace Blah;
namespace TL
{
struct Sprite
{
struct Frame
{
Subtexture image;
float duration;
};
struct Animation
{
String name;
Vector<Frame> frames;
};
String name;
Vec2 origin;
Vector<Animation> animations;
};
}