344 Commits

Author SHA1 Message Date
Sasha Koshka
8f3e41b8dd Inventory slots now show the sides of blocks as opposed to the tops of blocks 2022-05-01 18:11:44 -04:00
Sasha Koshka
385b23cac0 Tall grass now appears on terrain 2022-05-01 18:07:28 -04:00
Sasha Koshka
bad3b57dfa Added tall grass 2022-05-01 17:49:12 -04:00
Sasha Koshka
aa0d9623aa De-obfuscated most of the texture generation code 2022-05-01 17:16:46 -04:00
Sasha Koshka
ddfd97f8eb Various formatting fixes 2022-05-01 16:37:03 -04:00
Sasha Koshka
256af4f7e6 Repaired dist2d and created dist3d 2022-05-01 16:34:37 -04:00
Sasha Koshka
a6ae0fa045 YOU GET A MACRO YOU GET A MACRO EVERYONE GETS A MACRO 2022-05-01 16:21:36 -04:00
Sasha Koshka
f396ddfaa7 Made more things static that should've been 2022-05-01 15:45:53 -04:00
Sasha Koshka
a64b571167 Made some functions static, moved popup drawing out of gameLoop_gameplay 2022-05-01 15:32:35 -04:00
Sasha Koshka
1b6c9f2810 Moved gameplay rendering and logic to separate function 2022-05-01 14:30:19 -04:00
Sasha Koshka
faebe8ab46 Moved game time into world struct 2022-05-01 14:22:31 -04:00
Sasha Koshka
61f33ad2a7 Split settings into pages, added fog type setting 2022-05-01 03:35:58 -04:00
Sasha Koshka
bcbbe9c02d Moved options to data module 2022-05-01 03:06:23 -04:00
Sasha Koshka
62dcadc03b Fixed day/night mode 2022-05-01 00:32:37 -04:00
Sasha Koshka
f3fa4571c4 Decrypted some variables in gameloop_processMovement 2022-05-01 00:29:33 -04:00
Sasha Koshka
216f7f0e70 Added option to change daylight cycle when creating new world 2022-05-01 00:19:15 -04:00
Sasha Koshka
536305ec83 Merge pull request #22 from sashakoshka/water
Water
2022-04-30 23:00:13 -04:00
Sasha Koshka
6a568a0857 Implemented swimming on top of water 2022-04-30 22:59:45 -04:00
Sasha Koshka
d918898889 Implemented swimming 2022-04-30 22:56:07 -04:00
Sasha Koshka
6ce3f0fe1b Run physics calculations at half speed in water instead of modifying values haphazardly 2022-04-30 22:38:18 -04:00
Sasha Koshka
6c57d37777 Player movement is slower when in water 2022-04-30 22:19:31 -04:00
Sasha Koshka
bc2fd091fb Going in water creates a blue haze effect 2022-04-30 21:56:31 -04:00
Sasha Koshka
e8aedf40e2 Water disappears when player is inside of it 2022-04-30 21:37:57 -04:00
Sasha Koshka
9fe469cc32 Water can be walked through 2022-04-30 21:29:26 -04:00
Sasha Koshka
23c3ec3920 Water now appears transparent in chunk peek 2022-04-30 21:27:01 -04:00
Sasha Koshka
364e0d0f89 Trees only generate on grass now 2022-04-30 21:11:15 -04:00
Sasha Koshka
b5d57eff00 Switched structure generation to chunk-based instead of world-based 2022-04-30 21:03:05 -04:00
Sasha Koshka
e48e7ee819 Implemented bodies of water and beaches 2022-04-30 20:48:27 -04:00
Sasha Koshka
f99a9d8b35 Updated block system to use macros instead of hardcoding the block IDs everywhere 2022-04-30 19:56:42 -04:00
Sasha Koshka
95505f73a0 Added blocks to represent another player 2022-04-30 17:45:02 -04:00
Sasha Koshka
e6d02c7180 Fixed onscreen error button 2022-04-30 17:01:00 -04:00
Sasha Koshka
875637627e Added onscreen errors 2022-04-30 16:49:54 -04:00
Sasha Koshka
87d0bab604 Cleaned up menus file, added comments 2022-04-30 16:44:09 -04:00
Sasha Koshka
d8c63dde4c Username now appears in chat 2022-04-30 11:53:29 -04:00
Sasha Koshka
10708524f1 Reworked text inputs to use text input buffer struct 2022-04-30 11:35:56 -04:00
Sasha Koshka
31e23338a1 Added editable username field 2022-04-30 11:09:23 -04:00
Sasha Koshka
bf3078e91a Debug menu now displays seed 2022-04-30 00:22:34 -04:00
Sasha Koshka
99b27c8b53 Random seed if user doesn't set it 2022-04-29 23:54:39 -04:00
Sasha Koshka
38f2a93693 Seed field actually works 2022-04-29 23:51:19 -04:00
Sasha Koshka
48e2210d77 Seed field is now typable 2022-04-29 23:41:49 -04:00
Sasha Koshka
dc4f9c1d65 Created function to manage input buffers 2022-04-29 23:29:16 -04:00
Sasha Koshka
40397c97c8 Added blinking cursor to text field 2022-04-29 23:11:38 -04:00
Sasha Koshka
e6c423f633 Added non working text input 2022-04-29 23:06:33 -04:00
Sasha Koshka
03ccb37def New terrain is default 2022-04-29 22:46:24 -04:00
Sasha Koshka
b2469bf85a Fixed both flat terrains 2022-04-29 22:27:27 -04:00
Sasha Koshka
d2dda9c93e Added world creation screen 2022-04-29 22:19:45 -04:00
Sasha Koshka
2bad750d07 Disable movement controls while game popup is active 2022-04-29 16:02:19 -04:00
Sasha Koshka
64078780e0 Merge pull request #21 from sashakoshka/limit-fps
Limit fps
2022-04-29 14:30:03 -04:00
Sasha Koshka
11240aab85 Moved limiting code to more reasonable spot 2022-04-29 14:29:00 -04:00
Sasha Koshka
f5535da7b9 CUT CPU USAGE BY HALF 2022-04-29 14:14:42 -04:00