Commit graph

260 commits

Author SHA1 Message Date
crumblingstatue
30dbddeaff Update world size in design doc 2023-04-05 00:21:17 +02:00
crumblingstatue
c18fc3a265 Update design with new scaling. New goal at 35 kms deep. 2023-04-05 00:16:09 +02:00
crumblingstatue
608cd2ce23 Remove unused import 2023-04-04 23:30:06 +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
d6f3eb07f2 Lower default player hspeed to 3.0 2023-04-04 20:30:28 +02:00
crumblingstatue
05c516e210 Display player speed in km/h 2023-04-04 20:18:27 +02:00
crumblingstatue
9b4d0c8cf7 Design: Add note about multiplayer 2023-04-04 19:29:49 +02:00
crumblingstatue
7745437642 Add hspeed meter 2023-04-04 19:19:57 +02:00
crumblingstatue
0f34f18bc0 Precalculate tile collision entities for increased coll check perf 2023-04-04 19:16:12 +02:00
crumblingstatue
ffcd4e3418 Add notes about map size 2023-04-04 18:35:34 +02:00
crumblingstatue
36ea9ed75d Make camera controls WASD too 2023-04-04 17:49:32 +02:00
crumblingstatue
ff6dcca482 Fix some clippy warnings 2023-04-04 17:19:16 +02:00
crumblingstatue
c94beea85e Update cave music 2023-04-04 16:32:38 +02:00
crumblingstatue
9e9f44b5e5 Add cave music 2023-04-04 01:04:16 +02:00
crumblingstatue
0a345aae5e Make surface and cave generation make more sense 2023-04-04 00:19:10 +02:00
crumblingstatue
134e03db7e MakMake music loop and make volume adjustable 2023-04-03 23:45:37 +02:00
crumblingstatue
69b022ea02 Add music 2023-04-03 23:36:45 +02:00
crumblingstatue
20409e3ee2 Add tile placement 2023-04-03 22:21:36 +02:00
crumblingstatue
be1bc9ca9e Fix infinite jumps 2023-04-03 22:11:07 +02:00
crumblingstatue
6df84ed6e3 Make player placeable in freecam mode with P button 2023-04-03 21:58:52 +02:00
crumblingstatue
ccdacbfa45 Add background and foreground tile layers 2023-04-03 21:44:08 +02:00
crumblingstatue
1f0cd8050c Change to WASD movement 2023-04-03 18:59:55 +02:00
crumblingstatue
4c9fe26ec9 Tweak gravity 2023-04-03 18:46:40 +02:00
crumblingstatue
413875909e Make collision work horizontally 2023-04-03 18:33:11 +02:00
crumblingstatue
f07bd9c713 Add basic block selection with mouse 2023-04-03 18:12:36 +02:00
crumblingstatue
98965a8c86 Allow changing player position in debug panel, add terminal velocity limiter 2023-04-03 17:52:32 +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
6ca737f36c Add unbreakanium layer at bottom 2023-04-03 14:34:31 +02:00
crumblingstatue
312e9959ab Add ideas scratchpad 2023-04-03 14:34:18 +02:00
crumblingstatue
165577e516 Raise stone layer up a bit 2023-04-03 12:43:59 +02:00
crumblingstatue
bb25d62561 Add a surface/underground divide 2023-04-03 12:41:27 +02:00
crumblingstatue
6f1c351b5f Use saturating arithmetic for keyboard camera movement 2023-04-03 12:29:31 +02:00
crumblingstatue
91cd644b8c Add keyboard input for camera movement 2023-04-03 12:24:43 +02:00
crumblingstatue
0aa2781c25 Display horizontal offset from center 2023-04-03 12:08:57 +02:00
crumblingstatue
d41032dbcc Scale back coordinate types for new 50 km limit 2023-04-03 12:01:59 +02:00
crumblingstatue
64735c7455 Scale back depth of game.
It would be too boring to dig more than 50 kms deep.
That's way too many tiles to dig.

The focus should be on the challenge of getting 50 kms deep,
rather than getting there fast.
2023-04-03 11:53:18 +02:00
crumblingstatue
045977f800 Adjust surface to be higher up
This is a game about digging down.
This still leaves ~8000 km to build up
2023-04-03 11:21:22 +02:00
crumblingstatue
7918b54520 Display depth of camera offset 2023-04-03 11:19:29 +02:00
crumblingstatue
6e2ab5837b Make chunk coordinate type 32 bits
This ensures there isn't a problem converting between world coords
and chunk coords.

Since the world center if half of max of u32, this is a
very real problem to handle with only 16 bits.
2023-04-03 11:01:12 +02:00
crumblingstatue
becc441955 Make chunk pos scalar unsigned 2023-04-03 10:52:04 +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
67b2098ffb Remove unused commented out code 2023-04-02 17:17:31 +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