tilemap rendering!

This commit is contained in:
Noel Berry
2021-01-02 17:50:25 -08:00
parent c38b1e1418
commit dd1bbbc9de
13 changed files with 228 additions and 14 deletions

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

18
src/assets/tileset.h Normal file
View File

@ -0,0 +1,18 @@
#pragma once
#include <blah.h>
using namespace Blah;
namespace TL
{
struct Tileset
{
static constexpr int max_columns = 16;
static constexpr int max_rows = 16;
String name;
int columns = 0;
int rows = 0;
Subtexture tiles[max_columns * max_rows];
};
}