Add one more light

This commit is contained in:
2025-07-17 22:10:01 +03:00
parent 5d0e71c629
commit 656b4d85be
3 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -1,2 +1,3 @@
Texture Texture/Main.bmp Texture Texture/Main.bmp
Frame 80 80 48 48 Frame 80 80 48 48 Main
Frame 48 96 32 32 Orange
Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

+1 -1
View File
@@ -89,7 +89,7 @@ void TLadderEntity::Draw() const {
NGame::TApp::Instance()->RenderManager().SetLayer(NGame::TRenderManager::Light); NGame::TApp::Instance()->RenderManager().SetLayer(NGame::TRenderManager::Light);
auto light = NGame::TApp::Instance()->SpriteManager().Get("Sprites/Light.txt"); auto light = NGame::TApp::Instance()->SpriteManager().Get("Sprites/Light.txt");
NGame::TApp::Instance()->SpriteManager().Draw(light, 0, Position() - (light->Frames[0].Size * 1 / 2), {1, 1}); NGame::TApp::Instance()->SpriteManager().Draw(light, 1, Position() - (light->Frames[1].Size * 2 / 2) + Size() / 2, {2, 2});
} }
TExplosionEntity::TExplosionEntity(NGame::TEntity::TId id) TExplosionEntity::TExplosionEntity(NGame::TEntity::TId id)