Quentin Bazin
a95cd77dfd
Fixed some issues with singleplayer mode. See #75 for more info.
2020-03-15 19:48:18 +01:00
Pedro Gimeno
9c954a2a01
Fix boundingbox drawtype, correctly handle all orientations
...
Affects prominently ChunkBuilder, BlockCursor, InventoryCube. It includes a fix to allow a wider Z range in 2D orthographic projections, and to make the hovering item have a Z that places it above all others.
A new file, BlockGeometry.{c,h}pp contains the cube geometry common to all item drawing modules.
2020-03-14 12:03:08 +01:00
Quentin Bazin
ceafa8cdc0
[ClientApplication|ServerApplication] New parameter '-w/--working-dir' to set the working directory of the programs.
2020-03-13 21:11:01 +01:00
Quentin Bazin
b3e0d9cd67
Small fixes for Windows compilation.
2020-03-12 14:52:33 +01:00
Quentin Bazin
2de04daa49
[ScriptEngine] Lots of functions exposed to Lua.
2020-03-11 23:50:21 +01:00
Quentin Bazin
d259cce9e9
[LuaCore] Now supports event listener registration.
2020-03-10 14:02:20 +01:00
Quentin Bazin
d73d19327f
[ServerApplication] Now loading every mod in 'mods' folder.
2020-03-09 16:47:52 +01:00
Quentin Bazin
be1e49cfe0
[blocks.lua] Portal block added. Send PlayerChangeDimension on right-click.
2020-03-08 16:07:32 +01:00
Quentin Bazin
81986cb55d
[WorldController] Added. It's basically a container for 'ServerWorld' instances.
2020-03-08 16:07:32 +01:00
Quentin Bazin
b0ffedd44b
[mods/default] Oak Wood Slab added.
2020-03-04 23:25:19 +01:00
Quentin Bazin
4c26ec25c5
The client is now capable of running a server in a dedicated thread.
2020-03-04 14:38:31 +01:00
Quentin Bazin
a8542b8da5
[CMakeLists.txt] -ffast-math removed. [GameState|ServerApplicaiton] Now sending updates every 100ms instead of 1000ms.
2020-03-02 21:09:16 +01:00
Quentin Bazin
bcc3f65147
Headers updated and CONTRIBUTORS file added.
2020-02-25 01:48:38 +09:00
Quentin Bazin
bb0c8e8d49
[ServerCommandHandler] Now supports teleportation command.
2020-02-22 01:44:00 +09:00
Quentin Bazin
41a46ba13b
[CMakeLists.txt] Small improvements.
2020-02-14 18:36:45 +09:00
Quentin Bazin
6f227b7564
[ServerCommandHandler] Now used to send server packets.
2020-02-11 15:00:03 +09:00
Quentin Bazin
b7bb8f1d52
Replaced my custom headers by LGPL license headers.
2020-02-08 18:34:26 +09:00
Quentin Bazin
81e37de144
[TerrainGenerator] No longer dependent on BlockType.
2020-02-07 23:17:21 +09:00
Quentin Bazin
86918973a7
[CraftingRecipe] Small fix.
2020-01-31 16:44:27 +09:00
Quentin Bazin
44798d6fbd
[TilesDef] Added. Now blocks and items can store multiple textures.
2020-01-31 16:44:27 +09:00
Quentin Bazin
5b2a1758ef
Now using filenames instead of IDs when loading/retrieving textures.
2020-01-31 16:44:27 +09:00
Quentin Bazin
b070e58b0e
[CraftingRecipe] Fixed shaped recipe matching.
2019-12-30 18:09:22 +09:00
Quentin Bazin
cf236576ec
Now syncing player position between clients. But client is authoritative.
2019-04-08 15:29:19 +02:00
Quentin Bazin
41155f7fd0
[ServerApplication] Now handles multiple players.
2019-04-07 18:20:15 +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
077c93d15b
[LuaGUI] Now shows Workbench and Furnace GUI. [ServerBlock] Added.
2019-01-25 13:59:57 +01:00
Quentin Bazin
b8fa100e99
[ServerApplication] Now using Lua 'init()' to give items at spawn.
2019-01-23 21:51:19 +01:00
Quentin Bazin
2035f9123f
[Block] onTick and onBlockActivated re-enabled.
2019-01-23 00:38:08 +01:00
Quentin Bazin
e2816324a8
[Player] Server now keep track of the inventory.
2019-01-23 00:04:03 +01:00
Quentin Bazin
e21160a56e
[ClientApplication|ServerApplication] Now using gk::ArgumentParser.
2019-01-21 23:59:43 +01:00
Quentin Bazin
066d1a09f5
[ServerWorld] Half tree issue and lighting bugs fixed.
2019-01-21 21:51:18 +01:00
Quentin Bazin
f9393c5316
[ScriptEngine] Moved to server.
2019-01-20 17:08:44 +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
b7735ca71a
[ChunkLightmap] Crash fixed. [ServerApplication] '--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
8c847a4eb6
[README.md] Updated.
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
fce9eba630
[ClientWorld|ServerWorld] Added. Code cleaned a bit.
2019-01-20 15:07:45 +01:00
Quentin Bazin
104c47d898
[GameState|ServerApplication] Test for block sending: OK.
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
7caeafb845
[Server] Added parameter 'port' for init().
2019-01-20 15:07:45 +01:00
Quentin Bazin
389ee41f05
Server can be closed correctly now.
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