mirror of
https://github.com/NoelFB/tiny_link.git
synced 2025-07-04 20:25:28 +08:00
tilemap rendering!
This commit is contained in:
0
src/assets/tileset.cpp
Normal file
0
src/assets/tileset.cpp
Normal file
18
src/assets/tileset.h
Normal file
18
src/assets/tileset.h
Normal 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];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user