Commit Graph

269 Commits (master)

Author SHA1 Message Date
Elias Fleckenstein 2c44055037 Add snow 2021-07-12 19:52:30 +02:00
Elias Fleckenstein c9f6bc1940 Cleanup GLFW callbacks and add fullscreen key 2021-07-12 19:43:11 +02:00
Elias Fleckenstein b406ca7432 KeyListener abstraction 2021-07-12 18:57:10 +02:00
Elias Fleckenstein 4acaa98a89 Fix rescaling of HUD; Add Z-Index to HUD Elements; Add pause layer 2021-07-12 18:32:00 +02:00
Elias Fleckenstein f42aac91dc Enable blending and fix HUD screen scaling 2021-07-12 18:04:05 +02:00
Elias Fleckenstein 4eba951a2c Add HUD scale type 2021-07-12 17:54:50 +02:00
Elias Fleckenstein ec72a6f322 Add HUD and crosshair 2021-07-12 17:43:08 +02:00
Elias Fleckenstein 81990c3635 Minor code style fixes and allow MeshObject creation without adding to a scene 2021-07-12 17:41:07 +02:00
Elias Fleckenstein e991ab5c6d Support transparent textures 2021-07-12 17:39:21 +02:00
Elias Fleckenstein 77bd45b977 Remove old block mesh after new one is fully added 2021-07-12 11:38:11 +02:00
Elias Fleckenstein 9515f20233 Add texture type that includes id, width and height instead of just ID 2021-07-12 11:33:51 +02:00
Elias Fleckenstein 1b1a95acd8 Use minecraft constants for physics 2021-07-12 11:18:59 +02:00
Elias Fleckenstein f5b86f313b Don't pass callback argument to map_delete function in client destructor 2021-07-12 10:56:16 +02:00
Elias Fleckenstein e5e092d888 Use Binary trees for MapSector and MapBlock sorting
This fixes various issues with the map (since the binsearch algorithm was broken), like flickering of blocks and the issue with colliding inside loaded blocks because the binsearch function didn't return the block properly.
It also speeds up the insertion of new blocks and sectors by a lot.
2021-07-12 10:43:58 +02:00
Elias Fleckenstein 053d68dbcd Add per object wireframe mode 2021-07-11 21:03:21 +02:00
Elias Fleckenstein a20004ec01 Disable wireframe 2021-07-10 23:24:47 +02:00
Elias Fleckenstein 04c2b6ff92 Update controls documentation 2021-07-10 23:17:18 +02:00
Elias Fleckenstein a64b8c580d Proper collision; add jumping 2021-07-10 23:16:12 +02:00
Elias Fleckenstein 8a39835062 Correct acceleration calculation 2021-07-10 15:11:14 +02:00
Elias Fleckenstein c6673be36d Physics and collision 2021-07-10 15:05:52 +02:00
Elias Fleckenstein cd03e481c3 Fix pitch limitation 2021-07-10 15:05:26 +02:00
Elias Fleckenstein 48cd63a2f2 Add aabboxes 2021-07-10 15:04:30 +02:00
Elias Fleckenstein 647a2d129a Protect map cache by rwlock 2021-07-10 15:04:13 +02:00
Elias Fleckenstein ce15dd551a Cache last accessed MapBlock 2021-07-10 14:21:43 +02:00
Elias Fleckenstein ec9da5b16e Add falling 2021-07-10 13:43:52 +02:00
Elias Fleckenstein 1359f251fd dtime independent movement 2021-07-10 13:40:43 +02:00
Elias Fleckenstein 31d66382ee Move player code to its own file 2021-07-10 13:40:35 +02:00
Elias Fleckenstein e45da39021
Add GPLv3 License 2021-07-09 19:45:20 +02:00
Elias Fleckenstein ce6f67962d Optimize MapBlock meshes 2021-07-09 20:43:35 +02:00
Elias Fleckenstein dde557e2d5 Move input handling code to separate file and implement FPS camera 2021-07-09 19:49:31 +02:00
Elias Fleckenstein d059503b32 Move camera code to own file, allow changing the window size 2021-07-09 17:49:03 +02:00
Elias Fleckenstein 95bb0b4f1a Add info about space and shift keys 2021-06-23 17:06:59 +02:00
Elias Fleckenstein 96e43df82e Fix some mistakes in BUILDING.md
Why tf did I write that g++ is required? The project has always been and will always be pure C, and there are no C++ dependencies. xD why am I stupid
2021-06-22 18:52:43 +02:00
Elias Fleckenstein f2c74747c2 Update README.md notice about the map file 2021-06-22 18:50:26 +02:00
Elias Fleckenstein eea6a34554 Add textures 2021-06-22 18:36:59 +02:00
Elias Fleckenstein 90063397fa Fix typo 2021-04-01 19:40:22 +02:00
Elias Fleckenstein 9ebde0793e Add missing header file 2021-04-01 19:26:00 +02:00
Elias Fleckenstein e51c788487 Fix #14 2021-04-01 19:22:27 +02:00
Elias Fleckenstein 743d4a4c79 Make the snapshot script fail when building fails (to avoid broken snapshots) 2021-04-01 17:37:35 +02:00
Elias Fleckenstein 1f0ae251c4 Make MapBlockHeader u16 2021-04-01 17:29:49 +02:00
Elias Fleckenstein ca86df1104 ZLib compression 2021-04-01 17:22:53 +02:00
Elias Fleckenstein 3b1c407e59 Save MapBlocks in SQLite3 database; Redesign MapBlock loading & sending code 2021-04-01 16:07:41 +02:00
Elias Fleckenstein 85e1cc5205 Update building instructions to new script name 2021-03-31 18:03:37 +02:00
Elias Fleckenstein 07315af928 Rename job in CD file to snapshot 2021-03-31 18:02:07 +02:00
Elias Fleckenstein 6daf9252e0 Add CD script 2021-03-31 18:00:09 +02:00
Elias Fleckenstein c19003f1ba Make server thread-safe 2021-03-31 15:59:21 +02:00
Elias Fleckenstein b5dbe6538c Protect map by rwlocks 2021-03-31 12:42:57 +02:00
Elias Fleckenstein adfaea32fb map.h has to include stdio for FILE type 2021-03-31 11:39:18 +02:00
Elias Fleckenstein 5d9df63093 CI: pull submodules 2021-03-31 11:37:28 +02:00
Elias Fleckenstein e495cbe928 Fix dependencies installation in CI file 2021-03-31 11:34:41 +02:00