125 Commits

Author SHA1 Message Date
Quentin Bazin
14e23dc83d Added seeds and wheat. You can grow wheat but it's quite clunky atm. 2020-07-05 23:32:24 +02:00
Quentin Bazin
084a002a6d [EngineConfig] Chunks are back to their old 16x16x32 state until superchunks are implemented. 2020-07-05 22:26:41 +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
f2ab97105b [EngineConfig] Chunks are now cubic (16 blocks tall instead of 32 blocks tall). 2020-07-01 21:18:11 +02:00
Quentin Bazin
e919cbb8f7 [Lua API] Added properties 'fog_color' and 'fog_depth'. 2020-06-30 01:45:30 +02:00
Quentin Bazin
21edf6816c [TitleScreenState] Now displaying version. 2020-06-26 19:06:51 +02:00
Quentin Bazin
a434727216 [WorldSelectionState] Background and title added (see #128) 2020-06-26 07:13:48 +02:00
Quentin Bazin
00e0d76bbc [ClientApplication] Added '-u/--username' to change default username. [TitleScreenState] Now using default username with '-m/--multiplayer' and '-s/--singleplayer'. 2020-06-26 06:14:46 +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
15d9acac61 [Registry] Now storing entity callbacks here instead of using a component. 2020-06-25 00:22:03 +02:00
Quentin Bazin
f32cdf8169 [WorldSaveBasicBackend] Now saving hitbox and itemstack components. 2020-06-24 18:13:48 +02:00
Quentin Bazin
30b7cb0b90 [WorldController] Entities partially saved with the world (see #126). 2020-06-24 00:22:26 +02:00
Quentin Bazin
0cdb08060a [WorldController] Now saving block inventory and metadata. 2020-06-23 19:12:15 +02:00
Quentin Bazin
219cd5c3e6 [WorldSavingState] Added. 2020-06-23 19:12:15 +02:00
Quentin Bazin
7981c4525d Fixed #125. 2020-06-23 19:12:15 +02:00
Quentin Bazin
afc4918459 [ISerializable] Moved to GameKit. 2020-06-20 01:37:12 +02:00
Quentin Bazin
cc85f5f050 [docs/network-protocol.md] Added. 2020-06-19 17:18:18 +02:00
Quentin Bazin
7e9d26b92b [GameState|Key] Fixed registry access for singleplayer games. 2020-06-19 16:20:35 +02:00
Quentin Bazin
6f59f9200f [KeyboardHandler] Fixed key loading. 2020-06-19 16:20:35 +02:00
Quentin Bazin
59b0a04576 [KeyboardHandler] Now saving custom keys. 2020-06-19 16:20:35 +02:00
Quentin Bazin
4a17579674 [SettingsMenuState] Mod-defined keys can now be remapped. 2020-06-19 16:20:35 +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
ea38e6d397 [LuaKeyLoader] Moved callback inside key definition. 2020-06-19 16:20:35 +02:00
Quentin Bazin
b45ac1cdbd [LuaKeyLoader] Now loading key definitions from Lua (see #109). 2020-06-19 16:20:35 +02:00
Quentin Bazin
b1ed51f6c1 [WorldController] '/save' only save modified chunks now. 2020-06-19 01:43:47 +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
00b5ba8d14 Improved cross-compilation for Windows from Linux. 2020-05-26 17:14:08 +02:00
Quentin Bazin
5753fc2847 [external/lua] Changed repo for Windows compatibility. [external/entt] Now using latest stable version. 2020-05-23 03:57:30 +02:00
Quentin Bazin
e104e6fc0d [CMake] Now handling target link dependencies. 2020-05-22 20:55:17 +02:00
Quentin Bazin
3f2908a6b3 [CMakeLists.txt] Improved 'sol2' integration. 2020-05-22 20:55:17 +02:00
Quentin Bazin
4a6bbbe5ea [Dimension] 'gravity' field added to change gravity per-dimension. 2020-05-22 20:55:17 +02:00
Quentin Bazin
12aaad6c50 All dependencies are now included as submodules. Fixes #101. 2020-05-22 16:18:34 +02:00
Quentin Bazin
b789fc3d9b [ScriptEngine] Code splitted into multiple files, improving compilation speed. 2020-05-22 04:54:34 +02:00
Quentin Bazin
fe071163d4 Fixed #96. 2020-05-20 20:11:49 +02:00
Quentin Bazin
0700481ba7 Documentation added for entity API. 2020-05-20 13:39:06 +02:00
Quentin Bazin
0653b802b8 [Scene] Added 'createEntityFromModel()'. 2020-05-20 13:39:06 +02:00
Quentin Bazin
2f82101fb8 Entity definition + spawn from Lua: OK. 2020-05-20 13:39:06 +02:00
Quentin Bazin
5e6103d00d Working on entity Lua API. 2020-05-20 13:39:06 +02:00
Quentin Bazin
a2c2dba2a6 [CompressedPacket] Fixed #97. [gamekit] Updated. 2020-05-15 00:27:12 +02:00
Quentin Bazin
9ce7870a58 [external/gamekit] Updated. 2020-05-15 00:27:12 +02:00
Quentin Bazin
333222e2a7 First step of SFML migration. 2020-05-15 00:27:12 +02:00
Quentin Bazin
dc1b7147c8 Completely removed unused code about UDP sockets. 2020-05-10 22:35:05 +02:00
Quentin Bazin
2ddc43cb41 [sol] Updated to version 3.0.3. 2020-05-10 19:50:21 +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
3351fe2432 [scene] Components, controllers and factories now have their own subfolders. 2020-04-29 21:17:28 +02:00