From b0c5b73d9dc5c7e2ba4133a920fe142d6a23022e Mon Sep 17 00:00:00 2001 From: citrons Date: Fri, 13 Oct 2023 22:30:45 -0500 Subject: start player with initial amount of light --- world.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'world.c') diff --git a/world.c b/world.c index c649d63..2ab924e 100644 --- a/world.c +++ b/world.c @@ -343,6 +343,9 @@ void tick_world(world *w) { } void init_world(world *w) { - load_world(w); + if (!load_world(w)) { + w->player.pos.x += rand_int() % 50 - 25; + w->player.scores[TILE_LIGHT] = 5; + } w->view_pos = w->player.pos; } -- cgit v1.2.3