Added tileset loading.

This commit is contained in:
2022-12-05 13:57:18 -08:00
parent bcdb0742f3
commit 8059158bae
10 changed files with 314 additions and 4 deletions

View File

@ -23,7 +23,8 @@ add_subdirectory(visualnovel)
# Assets
tool_texture(texture_test texture_test.png)
tool_texture(texture_penny characters/penny/penny-blink.png)
# tool_texture(texture_penny characters/penny/penny-blink.png)
tool_tileset(tileset_penny texture_penny characters/penny/penny-blink.png 1 22)
tool_truetype(truetype_ark
ark-pixel.ttf
truetype_ark
@ -34,6 +35,6 @@ tool_truetype(truetype_ark
add_dependencies(${DAWN_TARGET_NAME}
texture_test
texture_penny
tileset_penny
truetype_ark
)

View File

@ -5,7 +5,6 @@
#pragma once
#include "asset/AssetManager.hpp"
#include "asset/Asset.hpp"
#include "poker/PokerPlayer.hpp"
#include "scene/components/Components.hpp"
@ -14,7 +13,8 @@ namespace Dawn {
public:
static std::vector<Asset*> getAssets(AssetManager *assMan) {
return std::vector<Asset*>{
assMan->get<TextureAsset>("texture_penny")
assMan->get<TextureAsset>("texture_penny"),
assMan->get<TilesetAsset>("tileset_penny")
};
}