Rendering player and tiles now works.
This commit is contained in:
@ -16,27 +16,39 @@ namespace resources {
|
||||
{
|
||||
DejaVuSans = 0,
|
||||
};
|
||||
enum Player
|
||||
{
|
||||
Default = 1,
|
||||
};
|
||||
enum Tilesets
|
||||
{
|
||||
Ground = 1,
|
||||
Ground = 2,
|
||||
};
|
||||
enum Ui
|
||||
{
|
||||
Cursor = 3,
|
||||
};
|
||||
enum Levels
|
||||
{
|
||||
Farm_Background = 2,
|
||||
Farm = 3,
|
||||
Farm_Background = 4,
|
||||
Farm = 5,
|
||||
};
|
||||
}
|
||||
|
||||
const int RInfo_Fonts_Begin = 0;
|
||||
const int RInfo_Tilesets_Begin = 1;
|
||||
const int RInfo_Levels_Begin = 2;
|
||||
const int RInfo_Player_Begin = 1;
|
||||
const int RInfo_Tilesets_Begin = 2;
|
||||
const int RInfo_Ui_Begin = 3;
|
||||
const int RInfo_Levels_Begin = 4;
|
||||
|
||||
/**
|
||||
* This array contains the names of all the files, and the corresponding file type.
|
||||
*/
|
||||
const ResourceInfo RInfo[] = {
|
||||
{ "fonts/DejaVuSans.ttf", ResourceType::Font },
|
||||
{ "player/default.png", ResourceType::Texture },
|
||||
{ "tilesets/Ground.png", ResourceType::Texture },
|
||||
{ "ui/cursor.png", ResourceType::Texture },
|
||||
{ "levels/Farm_Background.csv", ResourceType::LevelLayer },
|
||||
{ "levels/Farm.level", ResourceType::Level },
|
||||
};
|
||||
|
Reference in New Issue
Block a user