Begin VN scene parser

This commit is contained in:
2023-02-04 23:44:55 -08:00
parent 223f8566b9
commit 6fb9fbbd2f
7 changed files with 219 additions and 8 deletions

View File

@ -39,6 +39,8 @@ tool_truetype(truetype_alice ${DIR_GAME_ASSETS}/font/Alice-Regular.ttf truetype_
tool_audio(audio_test borrowed/sample_short.wav)
tool_vnscene(vnscene_1 ${DIR_GAME_ASSETS}/vn/Scene_1.xml)
add_dependencies(${DAWN_TARGET_NAME}
locale_poker
@ -50,4 +52,6 @@ add_dependencies(${DAWN_TARGET_NAME}
texture_test
audio_test
vnscene_1
)

View File

@ -11,8 +11,6 @@
#include "visualnovel/events/characters/VisualNovelTransformItemEvent.hpp"
#include "visualnovel/events/timing/VisualNovelBatchEvent.hpp"
#include "ui_test.hpp"
namespace Dawn {
class Scene_1 : public SimpleVNScene {
protected:
@ -22,10 +20,6 @@ namespace Dawn {
this->death = DeathPrefab::create(this);
this->death->material->color.a = 0;
// this->death->transform.setLocalPosition(glm::vec3(-100, 0, 0));
auto item = this->canvas->addElement<UITest>();
item->setTransform(UI_COMPONENT_ALIGN_STRETCH, UI_COMPONENT_ALIGN_STRETCH, glm::vec4(0, 0, 0, 0), 0.0f);
}
void onSceneEnded() {