Initial RmlUI Integration

This commit is contained in:
Isuru Samarathunga
2025-09-20 20:25:26 +05:30
parent ece65b18da
commit 6a6debb0db
11 changed files with 401 additions and 35 deletions

View File

@ -6,7 +6,6 @@
#include <IACore/File.hpp>
namespace ia::iae::game
{
RefPtr<Scene> scene;
@ -26,8 +25,8 @@ namespace ia::iae::game
.ShouldLoop = true,
.Keys = {
SpriteRendererComponent::AnimationKeyFrame {
.Texture = Engine::CreateTexture(File::ReadToVector("Graphics/green.png")),
.Scale = {0.1f, 0.1f},
.Scale = {0.25f, 0.25f},
.ColorOverlay = {0.0f, 0.75f, 0.0f, 1.0f}
}
},
});
@ -42,8 +41,8 @@ namespace ia::iae::game
.ShouldLoop = true,
.Keys = {
SpriteRendererComponent::AnimationKeyFrame {
.Texture = Engine::CreateTexture(File::ReadToVector("Graphics/red.png")),
.Scale = {0.25f, 0.25f},
.Scale = {0.5f, 0.5f},
.ColorOverlay = {0.75f, 0.0f, 0.0f, 1.0f}
}
},
});
@ -52,8 +51,8 @@ namespace ia::iae::game
obstacle->SetLocalSortIndex(20);
obstacle->SetLocalPosition({150, 100});
scene->AddNode(g_player);
scene->AddNode(obstacle);
//scene->AddNode(g_player);
//scene->AddNode(obstacle);
}
VOID Game::Terminate()