about to add SDL and probably break everything
This commit is contained in:
@ -14,6 +14,8 @@
|
||||
namespace Dawn {
|
||||
class PennyPrefab : public SceneItemPrefab<PennyPrefab> {
|
||||
public:
|
||||
VisualNovelCharacter *vnCharacter;
|
||||
|
||||
static std::vector<Asset*> prefabAssets(AssetManager *assMan) {
|
||||
return std::vector<Asset*>{
|
||||
assMan->get<TextureAsset>("texture_penny"),
|
||||
@ -33,7 +35,7 @@ namespace Dawn {
|
||||
auto tiledSprite = this->addComponent<TiledSprite>();
|
||||
auto animation = this->addComponent<AnimationController>();
|
||||
auto pokerPlayer = this->addComponent<PokerPlayer>();
|
||||
auto vnCharacter = this->addComponent<VisualNovelCharacter>();
|
||||
vnCharacter = this->addComponent<VisualNovelCharacter>();
|
||||
|
||||
vnCharacter->nameKey = "character.penny.name";
|
||||
|
||||
@ -44,10 +46,10 @@ namespace Dawn {
|
||||
tiledSprite->setTile(0);
|
||||
this->transform.setLocalPosition(glm::vec3(0, 0, 0));
|
||||
|
||||
// auto anim = new TiledSpriteAnimation(tiledSprite);
|
||||
// anim->addSequentialKeyframes(0.1f, 0, 22);
|
||||
// anim->loop = true;
|
||||
// animation->animation = anim;
|
||||
auto anim = new TiledSpriteAnimation(tiledSprite);
|
||||
anim->addSequentialKeyframes(0.1f, 0, 22);
|
||||
anim->loop = true;
|
||||
animation->animation = anim;
|
||||
}
|
||||
};
|
||||
}
|
@ -15,6 +15,7 @@ namespace Dawn {
|
||||
static std::vector<Asset*> prefabAssets(AssetManager *man) {
|
||||
std::vector<Asset*> assets;
|
||||
assets.push_back(man->get<TrueTypeAsset>("truetype_ark"));
|
||||
vectorAppend(&assets, UIBorderPrefab::getRequiredAssets(man));
|
||||
return assets;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user