399 Commits

Author SHA1 Message Date
Quentin Bazin
70d6a94332 [ServerWorld] Worldgen fixed. 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
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
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
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
Quentin Bazin
c36481f4ef [CMakeLists.txt] Improved build for client/server architecture. 2019-01-20 15:07:45 +01:00
Quentin Bazin
a17d361297 Now depends on SFML2 network lib. 2019-01-20 15:07:45 +01:00
Sylvio
2b236bc42f fix(BlockCursor) Change call to onBlockActivated in BlockCursor::onEvent + add .vscode gitignore 2019-01-09 01:36:02 +01:00
Quentin Bazin
3d179cddac [README.md] Updated. (Test for Discord webhook) 2019-01-09 01:33:00 +01:00
Quentin Bazin
f06a178d46 Minecrafter font added. 2019-01-09 00:01:31 +01:00
Quentin Bazin
ec3866aa0e [README.md] Updated. 2019-01-08 22:20:43 +01:00
Quentin Bazin
a17df4205f [furnace.lua|workbench.lua] Code splitted from blocks.lua 2019-01-08 02:43:40 +01:00
Quentin Bazin
66da21e20e [BlockFurnace] Removed. Now completely handled by Lua. 2019-01-08 02:35:49 +01:00
Quentin Bazin
50bf84acf6 [LuaCore] Added. Only two functions to get World and Player. 2019-01-07 05:03:22 +01:00
Quentin Bazin
3875b73a1d [LuaGUI] CraftingWidget support added. 2019-01-07 04:33:48 +01:00
Quentin Bazin
7c7af38097 [LuaGUI] gk::Image support added. 2019-01-07 02:39:39 +01:00
Quentin Bazin
b8eac29892 [LuaGUI] InventoryWidget support added. 2019-01-07 02:05:23 +01:00
Quentin Bazin
c993b2ea10 [LuaGUI|LuaGUIState] Lua interface for GUI: OK. (only buttons) 2019-01-07 01:26:02 +01:00
Quentin Bazin
a4a191d311 [BlockCursor] Unified cube coordinates. 2019-01-06 22:35:57 +01:00
Quentin Bazin
ac4c628009 [BlockCursor] Rendering fixed. 2019-01-06 22:31:02 +01:00
Quentin Bazin
f32f740b0d [GameState|World] Now using Camera as a View. 2019-01-05 19:42:18 +01:00
Quentin Bazin
17a0b0df88 Adapted to fit new GameKit version. 2019-01-05 18:37:59 +01:00
Quentin Bazin
8dbbdb4cfa [ChunkBuilder] Flowers no longer causes ambient occlusion. [TerrainGenerator] Now generates flowers. 2019-01-05 18:05:19 +01:00
Quentin Bazin
d5e49be7ec [ChunkBuilder] New draw type added for flowers. 2019-01-05 05:41:18 +01:00
Quentin Bazin
02aa54fa97 [ScriptEngine] Temporary fix for workbench and furnace. 2019-01-05 04:00:55 +01:00
Quentin Bazin
2c45a9daf0 [TODO] Updated. 2019-01-05 03:18:05 +01:00
Quentin Bazin
31b332d7f0 [Block] 'onBlockActivated' can be defined from Lua now. 2019-01-05 00:27:18 +01:00
Quentin Bazin
ac0d6bfa4d [ScriptEngine] Useless code removed. [TextButton] Now changes text color when hovered. 2019-01-04 22:48:30 +01:00
Quentin Bazin
115b85ded6 [doc] Added. 2019-01-04 20:26:06 +01:00
Quentin Bazin
9ff12e1315 [LuaMod] Now able to register items and recipes. 2019-01-04 18:22:27 +01:00
Quentin Bazin
8159a843c4 [LuaMod] Added. Better way to register blocks. 2019-01-04 18:05:35 +01:00
Quentin Bazin
bb6a5064fa Small fixes for new GameKit version. 2019-01-02 01:44:12 +01:00
Quentin Bazin
7def61ff15 [ChunkBuilder] Lighting code improved. 2018-12-31 10:14:48 +01:00
Quentin Bazin
30e893db69 [ChunkBuilder] Real ambient occlusion added.
Credits goes to this awesome article: https://0fps.net/2013/07/03/ambient-occlusion-for-minecraft-like-worlds/
2018-12-31 07:45:11 +01:00
Quentin Bazin
63286f4747 [TextButton] Added code to use a real font instead of Text, but disabled it for now. 2018-12-31 04:30:23 +01:00
Quentin Bazin
487093d57c Small fixes for new GameKit version. 2018-12-31 00:32:27 +01:00
Quentin Bazin
07e51465fd [GameState] Now using gk::Camera view matrix directly. 2018-12-30 04:43:57 +01:00
Quentin Bazin
3dd8f83918 [HUD] Now holds its own projection matrix. 2018-12-30 04:40:05 +01:00
Quentin Bazin
de62bcb413 [Player] No longer holds gk::Camera, ownership moved to GameState. 2018-12-30 04:32:29 +01:00
Quentin Bazin
e76051ed90 [GameKey] Added. 2018-12-29 23:53:00 +01:00
Quentin Bazin
3cd3266b3b Small fixes for new GameKit version. 2018-12-29 23:24:38 +01:00
Quentin Bazin
72e34ce9ea [Player] Eye height and jump speed tweaked. 2018-12-29 04:51:37 +01:00
Quentin Bazin
42df982956 Now using GameKit. 2018-12-29 02:23:23 +01:00
Quentin Bazin
ff694fe208 [Registry] Item drop fixed. 2018-12-28 23:47:57 +01:00