Commit Graph

  • 8f3e41b8dd Inventory slots now show the sides of blocks as opposed to the tops of blocks Sasha Koshka 2022-05-01 18:11:44 -04:00
  • 385b23cac0 Tall grass now appears on terrain Sasha Koshka 2022-05-01 18:07:28 -04:00
  • bad3b57dfa Added tall grass Sasha Koshka 2022-05-01 17:46:16 -04:00
  • aa0d9623aa De-obfuscated most of the texture generation code Sasha Koshka 2022-05-01 17:16:46 -04:00
  • ddfd97f8eb Various formatting fixes Sasha Koshka 2022-05-01 16:37:03 -04:00
  • 256af4f7e6 Repaired dist2d and created dist3d Sasha Koshka 2022-05-01 16:34:37 -04:00
  • a6ae0fa045 YOU GET A MACRO YOU GET A MACRO EVERYONE GETS A MACRO Sasha Koshka 2022-05-01 16:21:36 -04:00
  • f396ddfaa7 Made more things static that should've been Sasha Koshka 2022-05-01 15:45:53 -04:00
  • a64b571167 Made some functions static, moved popup drawing out of gameLoop_gameplay Sasha Koshka 2022-05-01 15:32:35 -04:00
  • 1b6c9f2810 Moved gameplay rendering and logic to separate function Sasha Koshka 2022-05-01 14:30:19 -04:00
  • faebe8ab46 Moved game time into world struct Sasha Koshka 2022-05-01 14:22:31 -04:00
  • 61f33ad2a7 Split settings into pages, added fog type setting Sasha Koshka 2022-05-01 03:35:58 -04:00
  • bcbbe9c02d Moved options to data module Sasha Koshka 2022-05-01 03:06:23 -04:00
  • 62dcadc03b Fixed day/night mode Sasha Koshka 2022-05-01 00:32:37 -04:00
  • f3fa4571c4 Decrypted some variables in gameloop_processMovement Sasha Koshka 2022-05-01 00:29:33 -04:00
  • 216f7f0e70 Added option to change daylight cycle when creating new world Sasha Koshka 2022-05-01 00:19:15 -04:00
  • 536305ec83 Merge pull request #22 from sashakoshka/water Sasha Koshka 2022-04-30 23:00:13 -04:00
  • 6a568a0857 Implemented swimming on top of water Sasha Koshka 2022-04-30 22:59:45 -04:00
  • d918898889 Implemented swimming Sasha Koshka 2022-04-30 22:56:07 -04:00
  • 6ce3f0fe1b Run physics calculations at half speed in water instead of modifying values haphazardly Sasha Koshka 2022-04-30 22:38:18 -04:00
  • 6c57d37777 Player movement is slower when in water Sasha Koshka 2022-04-30 22:19:31 -04:00
  • bc2fd091fb Going in water creates a blue haze effect Sasha Koshka 2022-04-30 21:56:31 -04:00
  • e8aedf40e2 Water disappears when player is inside of it Sasha Koshka 2022-04-30 21:37:57 -04:00
  • 9fe469cc32 Water can be walked through Sasha Koshka 2022-04-30 21:29:26 -04:00
  • 23c3ec3920 Water now appears transparent in chunk peek Sasha Koshka 2022-04-30 21:27:01 -04:00
  • 364e0d0f89 Trees only generate on grass now Sasha Koshka 2022-04-30 21:11:15 -04:00
  • b5d57eff00 Switched structure generation to chunk-based instead of world-based Sasha Koshka 2022-04-30 21:03:05 -04:00
  • e48e7ee819 Implemented bodies of water and beaches Sasha Koshka 2022-04-30 20:48:27 -04:00
  • f99a9d8b35 Updated block system to use macros instead of hardcoding the block IDs everywhere Sasha Koshka 2022-04-30 19:56:42 -04:00
  • 95505f73a0 Added blocks to represent another player Sasha Koshka 2022-04-30 17:45:02 -04:00
  • e6d02c7180 Fixed onscreen error button Sasha Koshka 2022-04-30 17:01:00 -04:00
  • 875637627e Added onscreen errors Sasha Koshka 2022-04-30 16:49:54 -04:00
  • 87d0bab604 Cleaned up menus file, added comments Sasha Koshka 2022-04-30 16:44:09 -04:00
  • d8c63dde4c Username now appears in chat Sasha Koshka 2022-04-30 11:53:29 -04:00
  • 10708524f1 Reworked text inputs to use text input buffer struct Sasha Koshka 2022-04-30 11:35:56 -04:00
  • 31e23338a1 Added editable username field Sasha Koshka 2022-04-30 11:09:23 -04:00
  • bf3078e91a Debug menu now displays seed Sasha Koshka 2022-04-30 00:22:34 -04:00
  • 99b27c8b53 Random seed if user doesn't set it Sasha Koshka 2022-04-29 23:54:39 -04:00
  • 38f2a93693 Seed field actually works Sasha Koshka 2022-04-29 23:51:19 -04:00
  • 48e2210d77 Seed field is now typable Sasha Koshka 2022-04-29 23:41:49 -04:00
  • dc4f9c1d65 Created function to manage input buffers Sasha Koshka 2022-04-29 23:29:16 -04:00
  • 40397c97c8 Added blinking cursor to text field Sasha Koshka 2022-04-29 23:11:38 -04:00
  • e6c423f633 Added non working text input Sasha Koshka 2022-04-29 23:06:33 -04:00
  • 03ccb37def New terrain is default Sasha Koshka 2022-04-29 22:46:24 -04:00
  • b2469bf85a Fixed both flat terrains Sasha Koshka 2022-04-29 22:27:27 -04:00
  • d2dda9c93e Added world creation screen Sasha Koshka 2022-04-29 22:19:45 -04:00
  • 2bad750d07 Disable movement controls while game popup is active Sasha Koshka 2022-04-29 16:01:16 -04:00
  • 64078780e0 Merge pull request #21 from sashakoshka/limit-fps Sasha Koshka 2022-04-29 14:30:03 -04:00
  • 11240aab85 Moved limiting code to more reasonable spot Sasha Koshka 2022-04-29 14:29:00 -04:00
  • f5535da7b9 CUT CPU USAGE BY HALF Sasha Koshka 2022-04-29 14:14:42 -04:00
  • 8a9f6220ef Decrypted i25 Sasha Koshka 2022-04-29 13:20:17 -04:00
  • c51c8dcfad Moved some cryptic variables into direction vectors inside of the player struct Sasha Koshka 2022-04-29 13:13:47 -04:00
  • 477deda5ac Gave control of world to gameLoop Sasha Koshka 2022-04-29 13:07:11 -04:00
  • c8f7268355 Moved movement controls into a separate function Sasha Koshka 2022-04-29 12:54:49 -04:00
  • f93ae00409 Merge pull request #20 from sashakoshka/polish-terrain Sasha Koshka 2022-04-29 12:15:08 -04:00
  • a92d1aae06 Cleaned up some structure generation code Sasha Koshka 2022-04-27 11:47:43 -04:00
  • 3adb3f8d07 Made old terrain generation more accurate Sasha Koshka 2022-04-27 11:32:38 -04:00
  • fdfd82e573 Old terrain no longer repeats Sasha Koshka 2022-04-27 11:17:46 -04:00
  • a0d0209e94 Merge pull request #19 from sashakoshka/improve-gameloop Sasha Koshka 2022-04-27 01:46:55 -04:00
  • b2a1688a5c Miscellaneous formatting tweaks Sasha Koshka 2022-04-27 01:46:32 -04:00
  • 42cc50232a Transferred most most known variables from static list at top to more reasonable places in code Sasha Koshka 2022-04-27 00:59:18 -04:00
  • d8ec629600 Moved more mystery variables back into gameLoop Sasha Koshka 2022-04-27 00:44:43 -04:00
  • ff3a575e5e Moved velocity into player struct Sasha Koshka 2022-04-27 00:43:36 -04:00
  • 7e69529aa6 Transferred camera rotation over to player struct Sasha Koshka 2022-04-27 00:38:56 -04:00
  • eae01459ec Moved some mystery variables back into gameLoop Sasha Koshka 2022-04-27 00:35:46 -04:00
  • bb8f7ba966 Further decoupled reset functions Sasha Koshka 2022-04-27 00:33:50 -04:00
  • 89f13fc108 Moved a bunch of things outside of gameLoop() Sasha Koshka 2022-04-27 00:30:09 -04:00
  • 0ab67de19f Merge pull request #17 from sashakoshka/data-directory Sasha Koshka 2022-04-27 00:17:06 -04:00
  • 2a33d06906 Created error ui state for future use Sasha Koshka 2022-04-27 00:14:40 -04:00
  • 21e7750cc7 Reworked everything to use data on stack instead of heap, less work to be done and less chance of memory leaks Sasha Koshka 2022-04-27 00:08:40 -04:00
  • 168843c8ab Fixed small memory leak in screenshot function (path was not being freed) Sasha Koshka 2022-04-26 23:47:28 -04:00
  • 883e94b96a Added world path function Sasha Koshka 2022-04-26 23:46:34 -04:00
  • 087e846b18 Merge pull request #16 from sashakoshka/data-directory Sasha Koshka 2022-04-25 23:30:15 -04:00
  • 437679019a Game now saves screenshots in ~/.m4kc/screenshots/ Sasha Koshka 2022-04-25 22:29:22 -04:00
  • f6e638c120 Added function to get path for new screenshot Sasha Koshka 2022-04-25 22:23:42 -04:00
  • 2ff38dc1d4 Added mkdir -p functionality Sasha Koshka 2022-04-25 22:20:27 -04:00
  • 94faedb28f Created base code for data module Sasha Koshka 2022-04-25 11:51:57 -04:00
  • c7b8237a5b Merge pull request #15 from sashakoshka/reorganize-input Sasha Koshka 2022-04-23 15:47:26 -04:00
  • d68efe2a43 Some code cleanup Sasha Koshka 2022-04-23 15:47:06 -04:00
  • 64c622679e Removed unnesccesary capitalization in keyboard inputs Sasha Koshka 2022-04-23 15:41:53 -04:00
  • 1027bf2dc3 Mouse input has a struct of its own now too Sasha Koshka 2022-04-23 15:37:42 -04:00
  • 29f28ecc99 Backspace key now repeats when typing in chat Sasha Koshka 2022-04-23 15:31:38 -04:00
  • c3f5116cb6 Nest keyboard struct inside of input struct, clarified input code with comments Sasha Koshka 2022-04-23 15:26:53 -04:00
  • 90e0c2c69b Hotbar selection with number keys is now done with explicit checks Sasha Koshka 2022-04-23 15:07:56 -04:00
  • b4735d92f9 Merge pull request #14 from Tempetas/minor-changes Sasha Koshka 2022-04-23 14:59:25 -04:00
  • 98e509cdb3 Replace some numbers with their hex counterparts to make the code a bit easier to read, replace some numbers with the according consts Tempetas 2022-04-23 20:20:46 +02:00
  • 0177e2b215 Allow numbers on the keyboard to change what hotbar slot is selected Tempetas 2022-04-23 20:19:22 +02:00
  • 1fd9c6b9ac Deobfuscate the 'm' variable Tempetas 2022-04-23 20:14:34 +02:00
  • 8f01a2c61c Make the build script executable by default Tempetas 2022-04-23 20:14:01 +02:00
  • ff89b76593 Offhand now appears in HUD and inventory Sasha Koshka 2022-04-21 21:37:25 -04:00
  • 1c8c507576 Press F to swap hotbar slot with offhand Sasha Koshka 2022-04-21 21:08:01 -04:00
  • d45d7f39b9 Merge pull request #13 from sashakoshka/inventory Sasha Koshka 2022-04-21 20:27:25 -04:00
  • 12b9aeea7c Merge inventory into main Sasha Koshka 2022-04-21 20:26:57 -04:00
  • 922c3f0235 Slots will now swap with or fill the slots they are dropped into like in Minecraft Sasha Koshka 2022-04-21 20:24:05 -04:00
  • fc2403a260 Picking up items Sasha Koshka 2022-04-21 20:04:11 -04:00
  • e883b0a655 Basic inventory management Sasha Koshka 2022-04-21 18:11:24 -04:00
  • 7be34d80ca Inventory now resets when game is initialized Sasha Koshka 2022-04-21 17:49:33 -04:00
  • a4de5ff479 Inventory displays items inside of it Sasha Koshka 2022-04-21 17:46:29 -04:00
  • d96e9877d4 Basic inventory background Sasha Koshka 2022-04-21 17:16:38 -04:00
  • 52a6c6bcb2 Merge pull request #12 from Tempetas/treegen-patch Sasha Koshka 2022-04-21 16:36:01 -04:00