Commit graph

38 commits

Author SHA1 Message Date
crumblingstatue
390a4d45d2 Move the player inside World 2023-04-08 22:10:10 +02:00
crumblingstatue
4fd826c218 Put ticks into World 2023-04-08 22:04:21 +02:00
crumblingstatue
08141c0e6f Remove unused clock from game state 2023-04-08 21:59:10 +02:00
crumblingstatue
a1e9bc6754 Make gravity more forgiving (3 block jump) 2023-04-08 20:41:02 +02:00
crumblingstatue
38b6a476d9 Implement torch flickering 2023-04-08 17:43:30 +02:00
crumblingstatue
79e2ba7b83 Make light offset of tiles variable 2023-04-08 16:14:59 +02:00
crumblingstatue
77099ab8a6 Add torches 2023-04-08 01:26:44 +02:00
crumblingstatue
7c4012e139 Add light dropoff the deeper you go 2023-04-07 23:31:26 +02:00
crumblingstatue
178babdec9 Improve lighting a bit 2023-04-07 23:05:24 +02:00
crumblingstatue
f9a99fc0ae Switch to lightmap texture based lighting 2023-04-07 22:16:57 +02:00
crumblingstatue
907a5da105 Make light params configurable 2023-04-07 01:24:29 +02:00
crumblingstatue
3938654843 Inspect World as well 2023-04-07 00:50:15 +02:00
crumblingstatue
a11d69eee2 Make use of egui_inspect 2023-04-07 00:36:34 +02:00
crumblingstatue
e2a38e80d7 Make viewport the same size as the window 2023-04-06 23:02:45 +02:00
crumblingstatue
ae380bb635 Add scaling 2023-04-06 20:44:18 +02:00
crumblingstatue
45af69faa0 Shamelessly stolen light code 2023-04-06 19:21:20 +02:00
crumblingstatue
d1df7cd472 Add basic lighting 2023-04-06 18:40:34 +02:00
crumblingstatue
930f7aac47 Add very crude proof-of-concept worldgen 2023-04-05 15:09:19 +02:00
crumblingstatue
c72b16a889 Adjust surface to generate above... surface level 2023-04-05 01:00:13 +02:00
crumblingstatue
6c99beb47d Redesign the scaling of the game for depth to feel more meaningful 2023-04-04 23:29:32 +02:00
crumblingstatue
9e9f44b5e5 Add cave music 2023-04-04 01:04:16 +02:00
crumblingstatue
20409e3ee2 Add tile placement 2023-04-03 22:21:36 +02:00
crumblingstatue
ccdacbfa45 Add background and foreground tile layers 2023-04-03 21:44:08 +02:00
crumblingstatue
4c9fe26ec9 Tweak gravity 2023-04-03 18:46:40 +02:00
crumblingstatue
beabf269e5 Add basic player physics 2023-04-03 17:39:49 +02:00
crumblingstatue
5a6fe33e1e Add player entity 2023-04-03 15:37:14 +02:00
crumblingstatue
bb25d62561 Add a surface/underground divide 2023-04-03 12:41:27 +02:00
crumblingstatue
2480c48cbf Define world center 2023-04-03 10:50:07 +02:00
crumblingstatue
f69d05bed0 Rename for_each_tile to for_each_tile_on_screen
Clearer meaning
2023-04-03 10:37:36 +02:00
crumblingstatue
cc7a0d8b9b Fix screen offset calculation when drawing tiles 2023-04-03 10:37:02 +02:00
crumblingstatue
2a2c8f721c Eliminate negative coordinates
They were making coordinate calculations more difficult,
and probably slower due to having to special case negative coordinates
2023-04-03 10:32:20 +02:00
crumblingstatue
7dba1b22e3 Fix world pos to tile pos calculation for negative values 2023-04-02 12:10:11 +02:00
crumblingstatue
62bd6b2c7c Fix local tile offset calculation for large coordinates 2023-04-02 11:53:54 +02:00
crumblingstatue
38699c9d09 Take into account negative coords in chunk offset calculations 2023-04-02 10:21:57 +02:00
crumblingstatue
49c47ac718 Super basic map rendering 2023-04-02 00:30:03 +02:00
crumblingstatue
5e539d668f Render some tiles 2023-04-01 23:43:46 +02:00
crumblingstatue
fbc7e35f9e Add tile graphic 2023-04-01 21:01:14 +02:00
crumblingstatue
d78726eb5b Add some world defs 2023-04-01 20:12:09 +02:00