212 Commits

Author SHA1 Message Date
Quentin Bazin
f56002f85a [ClientCommandHandler] Now used to send commands to the server. 2019-04-08 12:59:02 +02:00
Quentin Bazin
41155f7fd0 [ServerApplication] Now handles multiple players. 2019-04-07 18:20:15 +02:00
Quentin Bazin
19ea5c152f [ServerCommandHandler] 'PlayerPosUpdate' callback added. 2019-04-07 17:20:35 +02:00
Quentin Bazin
cbde5e0659 [InventoryWidget] Small improvement. 2019-04-07 16:23:48 +02:00
Quentin Bazin
633233e57e [BlockCursor] Fixed inventory update packet. [Client] Small optimization. 2019-04-07 16:09:14 +02:00
Quentin Bazin
58043344f1 [ClientCommandHandler|ServerCommandHandler] Added. 2019-03-17 17:22:53 +01:00
Quentin Bazin
197ec07d12 [PlayerBox] Added to display players. [Network] New server-emitted 'PlayerSpawn' command. 2019-03-17 16:56:26 +01:00
Quentin Bazin
2c8878bf49 [GameState|ServerApplication] Moved callbacks setup into its own function. 2019-03-17 15:04:00 +01:00
Quentin Bazin
da5f042354 [OpenGL] Now using glCheck() from GameKit. 2019-02-27 02:18:14 +01:00
Quentin Bazin
0c8ef8ba47 Migrated to C++14. 2019-02-26 15:52:18 +01:00
Quentin Bazin
f07ce03668 [README.md] Updated. 2019-02-02 12:53:19 +01:00
Quentin Bazin
b286178d86 Light experiments reverted, I'll only keep this one. 2019-01-27 21:37:53 +01:00
Quentin Bazin
9226ce4f42 [ServerBlock] Now sending 'data' attribute. 2019-01-26 20:55:22 +01:00
Quentin Bazin
11f9365675 [Network] BlockInvUpdate and BlockDataUpdate packets added. Furnace almost done. 2019-01-26 20:29:13 +01:00
Quentin Bazin
5e62cf07a1 [TerrainGenerator] New world gen. 2019-01-26 16:57:25 +01:00
Quentin Bazin
6b986b7de5 [Registry] Small fix. 2019-01-26 12:37:34 +01:00
Quentin Bazin
6e4e8c0547 [ServerChunk] Ticking blocks re-enabled. WIP. 2019-01-26 10:05:37 +01:00
Quentin Bazin
dee8dc7d97 [Chunk|World] Block inventory enabled. WIP. 2019-01-25 23:47:45 +01:00
Quentin Bazin
077c93d15b [LuaGUI] Now shows Workbench and Furnace GUI. [ServerBlock] Added. 2019-01-25 13:59:57 +01:00
Quentin Bazin
44c1f6251d [BlockCursor] Now sending updated inventory to server after placing a block. 2019-01-23 21:45:19 +01:00
Quentin Bazin
2035f9123f [Block] onTick and onBlockActivated re-enabled. 2019-01-23 00:38:08 +01:00
Quentin Bazin
156915cfa8 [World] Now used as main class for ClientWorld and ServerWorld. 2019-01-23 00:15:47 +01:00
Quentin Bazin
e2816324a8 [Player] Server now keep track of the inventory. 2019-01-23 00:04:03 +01:00
Quentin Bazin
eb67edc556 [ClientApplication] '--host' argument added. 2019-01-22 00:08:09 +01:00
Quentin Bazin
e21160a56e [ClientApplication|ServerApplication] Now using gk::ArgumentParser. 2019-01-21 23:59:43 +01:00
Quentin Bazin
3a44632704 [SettingsMenuState] 'Input' menu is now displayed on two columns. 2019-01-21 23:11:09 +01:00
Quentin Bazin
c9e35a9ac3 [SettingsMenuState] 'Done' button is now standalone. 2019-01-21 22:16:52 +01:00
Quentin Bazin
6982875301 [SettingsMenuState] Keybindings are now editable in-game. 2019-01-20 21:39:07 +01:00
Quentin Bazin
f9393c5316 [ScriptEngine] Moved to server. 2019-01-20 17:08:44 +01:00
Quentin Bazin
3105fe9339 [ClientWorld|ServerWorld] Increased world size. [Player] Sprint added. 2019-01-20 15:07:45 +01:00
Quentin Bazin
29c518631b [.travis.yml] Added. 2019-01-20 15:07:45 +01:00
Quentin Bazin
8124cab3b6 Chunk loading optimized. 2019-01-20 15:07:45 +01:00
Quentin Bazin
f146e2d5da [Config] No clip mode added. [SettingsMenuState] Small refactoring. 2019-01-20 15:07:45 +01:00
Quentin Bazin
104597a39d [Network] 'ChunkRequest' command added. 2019-01-20 15:07:45 +01:00
Quentin Bazin
9da2ad5f86 [Client|Server] Removed old command flow. [Network] Useless commands removed. 2019-01-20 15:07:45 +01:00
Quentin Bazin
ec2a27b587 [BlockCursor] Now implements PlayerDigBlock network event. 2019-01-20 15:07:45 +01:00
Quentin Bazin
4b85e3928e [ChunkLightmap] Crash fixed (again). [GameState] Fixed SDL window event handling. 2019-01-20 15:07:45 +01:00
Quentin Bazin
38731bd155 [ClientApplication] '--port' argument added. 2019-01-20 15:07:45 +01:00
Quentin Bazin
03bffbb666 [Network] Server is now aware of placed blocks and can forward the info to other clients. 2019-01-20 15:07:45 +01:00
Quentin Bazin
2d569fd978 [ClientWorld|ServerWorld] Reduced world size to make testing easier. 2019-01-20 15:07:45 +01:00
Quentin Bazin
a972b67cdc [World] 'renderDistance' variable moved to Config. 2019-01-20 15:07:45 +01:00
Quentin Bazin
c14e5ecd4d [Client] Preparing chunk request. 2019-01-20 15:07:45 +01:00
Quentin Bazin
6c9b4bf644 [ChunkBuilder] Flowers are now sensible to light. 2019-01-20 15:07:45 +01:00
Quentin Bazin
f5c9054e81 [ChunkLightmap|TerrainGenerator] Optimized chunk sending. 2019-01-20 15:07:45 +01:00
Quentin Bazin
e721b7b4ba [ClientWorld] Reload chunks when settings have changed. 2019-01-20 15:07:45 +01:00
Quentin Bazin
824c6d30c0 [ChunkLightmap] Now handled by both client and server. 2019-01-20 15:07:45 +01:00
Quentin Bazin
8c847a4eb6 [README.md] Updated. 2019-01-20 15:07:45 +01:00
Quentin Bazin
d89283ddab [ServerLoadingState] Added. 2019-01-20 15:07:45 +01:00
Quentin Bazin
f374c7ba80 [HUD] All the widgets works now. 2019-01-20 15:07:45 +01:00
Quentin Bazin
1f277f38a1 [Player] Collisions: OK. [SettingsMenuState] Fly mode option added. 2019-01-20 15:07:45 +01:00