96 Commits

Author SHA1 Message Date
Quentin Bazin
1b373d9c2a [KeyboardHandler] Replaced by gk::KeyboardHandler. 2019-04-08 20:22:35 +02:00
Quentin Bazin
fc3211b481 [ServerConnectState] 'Cancel' button added. 2019-04-08 19:44:05 +02:00
Quentin Bazin
4630a25e02 [ServerConnectState] Added. 2019-04-08 19:39:34 +02:00
Quentin Bazin
040028a614 [InterfaceState] Added. This is an helpful base class for 2D states. 2019-04-08 18:44:05 +02:00
Quentin Bazin
2a14b9ea0d [PauseMenuState] New 'Title Screen' button. 2019-04-08 18:18:50 +02:00
Quentin Bazin
36ecd91de1 [TitleScreenState] Added. Closes #19. 2019-04-08 18:13:51 +02:00
Quentin Bazin
637f1f3e14 [Skybox] Removed. 2019-04-08 15:43:42 +02:00
Quentin Bazin
cf236576ec Now syncing player position between clients. But client is authoritative. 2019-04-08 15:29:19 +02:00
Quentin Bazin
f56002f85a [ClientCommandHandler] Now used to send commands to the server. 2019-04-08 12:59:02 +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
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
11f9365675 [Network] BlockInvUpdate and BlockDataUpdate packets added. Furnace almost done. 2019-01-26 20:29:13 +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
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
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
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
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
c14e5ecd4d [Client] Preparing chunk request. 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
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
Quentin Bazin
ca90070905 [graphics|hud] Moved to client. 2019-01-20 15:07:45 +01:00
Quentin Bazin
9d8e9a297d [ClientApplication] Added back support for ScriptEngine. 2019-01-20 15:07:45 +01:00
Quentin Bazin
d75d7b7f54 [ServerChunk] Buggy worldgen, but still a worldgen. 2019-01-20 15:07:45 +01:00
Quentin Bazin
c9ba346b4c [ServerChunk] Now using TerrainGenerator instead of a random gen. 2019-01-20 15:07:45 +01:00
Quentin Bazin
fce9eba630 [ClientWorld|ServerWorld] Added. Code cleaned a bit. 2019-01-20 15:07:45 +01:00
Quentin Bazin
5070a35b62 [Server] Connection callback added. [Network] ChunkData command added. 2019-01-20 15:07:45 +01:00
Quentin Bazin
9667138c47 [Config] Fixed near plane value. [Client] Now supports custom commands. 2019-01-20 15:07:45 +01:00
Quentin Bazin
402cd5fe09 [ClientChunk] Added. Started world client/server architecture. 2019-01-20 15:07:45 +01:00
Quentin Bazin
3884be8868 Basic network classes added: Client, Server, ClientApplication, ServerApplication. 2019-01-20 15:07:45 +01:00