diff options
author | citrons <citrons@mondecitronne.com> | 2023-10-13 22:30:45 -0500 |
---|---|---|
committer | citrons <citrons@mondecitronne.com> | 2023-10-13 22:30:45 -0500 |
commit | b0c5b73d9dc5c7e2ba4133a920fe142d6a23022e (patch) | |
tree | efbb405e2298c93a74b0c7f9f8eb49001fd21460 | |
parent | 82d5849bc9c357f62b66460bc3647cc941528e75 (diff) |
start player with initial amount of light
-rw-r--r-- | world.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; } |