aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index ae47234..f32bc79 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -1397,12 +1397,12 @@ EXIT:
heyOhLetsGo = 0;
break;
case SDLK_l:
- currentWorld->addLight({player->loc.x + SCREEN_WIDTH/2, player->loc.y},{1.0f,1.0f,1.0f});
- //currentWorld->getLastLight()->follow(player);
+ currentWorld->addLight({player->loc.x + SCREEN_WIDTH/2, player->loc.y}, 300.0f, {1.0f,1.0f,1.0f});
+ currentWorld->getLastLight()->follow(player);
currentWorld->getLastLight()->makeFlame();
break;
case SDLK_f:
- currentWorld->addLight({player->loc.x + SCREEN_WIDTH/2, player->loc.y},{1.0f,1.0f,1.0f});
+ currentWorld->addLight({player->loc.x, player->loc.y}, 300.0f, {1.0f,1.0f,1.0f});
break;
case SDLK_b:
if (debug)
@@ -1411,7 +1411,7 @@ EXIT:
auto s = new Structures();
s->spawn(FIRE_PIT, player->loc.x, player->loc.y);
currentWorld->addStructure(s);
- currentWorld->addLight({player->loc.x + SCREEN_WIDTH/2, player->loc.y},{1.0f,1.0f,1.0f});
+ currentWorld->addLight({player->loc.x + SCREEN_WIDTH/2, player->loc.y}, 400.0f, {1.0f,1.0f,1.0f});
//currentWorld->getLastLight()->follow(currentWorld->build.back());
currentWorld->getLastLight()->makeFlame();
}