37 Commits

Author SHA1 Message Date
Quentin Bazin
5bdacba397 [ClientPlayer] Now sending PlayerChunkPosUpdate. 2021-05-22 16:14:47 +02:00
Quentin Bazin
22ef44e12c Moved ChunkUnload sending from client to server. 2021-05-22 16:14:47 +02:00
Quentin Bazin
b4f210de3a Seems to be working, but some trees are incomplete. 2021-05-22 16:14:47 +02:00
Quentin Bazin
ecdf504bef 2nd attempt. 2021-05-22 16:14:47 +02:00
Quentin Bazin
95f9c2818f [TexturePackSelectionState] Only update TextureAtlas if a game is running. 2020-07-18 06:05:34 +02:00
Quentin Bazin
7eaac50d48 Now saving last hotbar slot. 2020-07-17 23:32:50 +02:00
Quentin Bazin
0f015ee75d [DebugInfoWidget] Added 'Ticks' and 'Game time'.
[GameTime] The day now starts at 6 AM.
2020-07-17 19:58:45 +02:00
Quentin Bazin
07f86b9e10 [GameTime] 'getCurrentTime' now uses the new tick system.
[DebugOverlay] Added client TPS info.
[Network] Packet 'ServerTick' added. Sent at the beginning of every tick.
2020-07-17 19:58:45 +02:00
Quentin Bazin
f5f586980d 'use_alt_tiles' replaced by block states. 2020-07-10 22:43:50 +02:00
Quentin Bazin
256700ecec [ClientCommandHandler|LuaGUIState] Make sure only one GUI is active at the same time. 2020-07-08 12:02:48 +02:00
Quentin Bazin
7497b6b2a8 Added 'Farmland' block, which is possible to create with any hoe. 2020-07-05 20:55:23 +02:00
Quentin Bazin
337d4b44c7 [GameConfig] Added to store values that were in Client and Config. 2020-07-01 18:22:31 +02:00
Quentin Bazin
466c0cff67 Fixed #130. 2020-06-28 21:23:12 +02:00
Quentin Bazin
057753f1d2 [WorldSaveBasicBackend] Now saving player position, rotation and inventory. 2020-06-26 06:14:46 +02:00
Quentin Bazin
93a396e926 [ServerConnectState] Text input added to select an username. 2020-06-26 06:14:46 +02:00
Quentin Bazin
30b7cb0b90 [WorldController] Entities partially saved with the world (see #126). 2020-06-24 00:22:26 +02:00
Quentin Bazin
cc85f5f050 [docs/network-protocol.md] Added. 2020-06-19 17:18:18 +02:00
Quentin Bazin
fc3fafc1a8 [Lua API] Key definition: OK. Can't be remapped yet. 2020-06-19 16:20:35 +02:00
Quentin Bazin
c1176a438d [ChatCommandHandler] '/stop' command added. 2020-06-19 02:51:33 +02:00
Quentin Bazin
589118e6e9 [PlayerBox] Now handling player rotation. 2020-06-04 19:01:04 +02:00
Quentin Bazin
9f01a538cb [Network] 'PlayerRotUpdate' packet added. Fixed #86. 2020-06-04 17:36:09 +02:00
Quentin Bazin
301d33fa5d Server is now aware of each player's held item. Closed #110. 2020-06-02 05:51:10 +02:00
Quentin Bazin
cdfecd4310 Now using entt::registry::visit to serialize entities. Closed #102. 2020-06-01 21:31:14 +02:00
Quentin Bazin
f440525ed7 [Network] 'ServerClosed' packet added. Fixed #106. 2020-05-26 17:51:04 +02:00
Quentin Bazin
4a6bbbe5ea [Dimension] 'gravity' field added to change gravity per-dimension. 2020-05-22 20:55:17 +02:00
Quentin Bazin
c277dc7d87 Packets are now compressed using zlib. Legacy and unused UDP code removed. 2020-05-10 19:36:39 +02:00
Quentin Bazin
5d4dee14f4 [CollisionController] Now checks the dimension too. 2020-04-29 21:17:28 +02:00
Quentin Bazin
bf7143efb3 [NetworkComponent] Now using server-side entity ID instead of an arbitrary one. 2020-04-29 21:17:28 +02:00
Quentin Bazin
1d7782c54a [.travis.yml] Small fix. [entt] Updated. 2020-04-29 21:17:28 +02:00
Quentin Bazin
ea88e40c54 [AnimationComponent] Now serialized. 2020-04-29 21:17:28 +02:00
Quentin Bazin
5baec80fb0 [RotationComponent] Added. 2020-04-29 21:17:28 +02:00
Quentin Bazin
597e60b716 [Network] 'EntityDespawn' packet added. 2020-04-29 21:17:28 +02:00
Quentin Bazin
580789deee [NetworkComponent|NetworkController] Added. 2020-04-29 21:17:28 +02:00
Quentin Bazin
18f080c3f6 [SceneSerializer] Removed. [CMake] Small fix for 3.17. 2020-04-29 21:17:28 +02:00
Quentin Bazin
ef3e05278a Got rendering working. 2020-04-29 21:17:28 +02:00
Quentin Bazin
2f4188bf4a Entity serialization is almost complete, only rendering data left. 2020-04-29 21:17:28 +02:00
Quentin Bazin
bc3226eedc Folders reorganized. 2020-03-17 22:22:22 +01:00