273 Commits

Author SHA1 Message Date
Quentin Bazin
3e6751e6e6 [Application] Template code added to start Lua API later. 2018-12-19 22:36:20 +01:00
Quentin Bazin
4ad7257c44 Small fixes. 2018-12-15 04:57:26 +01:00
exilief
3984492e0b Updates to compile with MinGW 7.2 + small fixes (#13)
* Added missing headers to compile with MinGW 7.2. Added support for Glad instead of GLEW with USE_GLAD.

* [BlockFurnace] Fixed smelting timer. Bit shifting u16(32) by <<16(32) is undefined behaviour.

* #undef M_PI and redefine to ensure portability
2018-11-20 02:49:59 +01:00
Quentin Bazin
3b8124b795 [ChunkLightmap] Small tweaks. 2018-07-09 13:52:31 +02:00
Quentin Bazin
3104cf9cfb [ChunkBuilder] Smooth lighting fixed on back faces. Code refactored a bit. [recipes.xml] Slab recipe added. 2018-07-07 16:24:35 +02:00
Quentin Bazin
f4f313acea [Camera|GameState] Player is now affected by gravity in child states. 2018-07-07 15:54:31 +02:00
Quentin Bazin
7e9ab36aa6 [Player] Hotbar inventory merged into PlayerInventory since InventoryWidget now supports an offset. 2018-07-07 15:46:02 +02:00
Quentin Bazin
23cc904cf3 [fog.f.glsl] Small fix. Now using sky color instead of a transparent color. 2018-07-06 17:47:31 +02:00
Quentin Bazin
41ec518721 [Chunk] Small fix. 2018-07-06 17:38:44 +02:00
Chris Cripple
186aec8661 Update README.md (#11) 2018-07-06 16:27:14 +02:00
Quentin Bazin
35ea412434 [Chunk|ChunkBuilder] Third layer added for leaves. 2018-07-06 16:25:09 +02:00
Quentin Bazin
4ca4109a81 [Chunk|ChunkBuilder] Solid and liquid layers now separated. Fixed #4. 2018-07-06 15:51:29 +02:00
Quentin Bazin
fd4c357403 [BlockInfoWidget] Waila-like widget added. 2018-07-06 15:11:09 +02:00
Quentin Bazin
4f02b3623c [DebugOverlay|HUD] Added. 2018-07-06 14:24:49 +02:00
Quentin Bazin
790d03ac71 [ChunkLightmap] Small tweaks. 2018-07-06 13:53:01 +02:00
Quentin Bazin
2003ee63dc [ChunkBuilder] Very basic smooth lighting implementation. 2018-07-06 11:58:34 +02:00
Quentin Bazin
0c2436cee9 [Cube] Small tweak. 2018-07-03 16:13:05 +02:00
Quentin Bazin
16463b99ca [RenderStates] Bitfield for vertex attributes added. 2018-07-02 12:54:12 +02:00
Quentin Bazin
31411a9da6 [Box] Added. [BlockCursor] Now displaying correct box size. 2018-07-02 04:30:17 +02:00
Quentin Bazin
96da02fa15 [Registry] Small fixes. 2018-07-02 02:58:02 +02:00
Quentin Bazin
4f64ede62a [ChunkBuilder] First slab test. 2018-06-30 22:27:46 +02:00
Quentin Bazin
59cf061e97 [Crosshair] Small tweaks. 2018-06-30 20:09:01 +02:00
Quentin Bazin
aecadf3976 [Crosshair] Now using rectangles. Added proper blending. 2018-06-30 18:39:08 +02:00
Quentin Bazin
b01d2e8d33 [items.xml] Wooden tools and charcoal added. 2018-06-30 07:06:09 +02:00
Quentin Bazin
7713bb4693 [SettingsMenuState] Render distance button: Done. 2018-06-30 05:07:57 +02:00
Quentin Bazin
cae6fee434 [GameState] Now release the mouse when the window loses focus. 2018-06-30 04:45:49 +02:00
Quentin Bazin
6b0fc907ee [CraftingWidget] Small fix. 2018-06-30 04:32:24 +02:00
Quentin Bazin
9378dbd6e3 [MouseItemWidget] Burn time info added on tooltip. 2018-06-30 04:17:08 +02:00
Quentin Bazin
04d3aeaaa0 [blocks.xml] Reserved block space. 2018-06-30 03:56:09 +02:00
Quentin Bazin
7df693e4af [Recipe|SmeltingRecipe] Added. [BlockFurnace] Now supports SmeltingRecipe. 2018-06-30 03:48:04 +02:00
Quentin Bazin
dbb6fb5736 [Registry] Blocks, item and recipe data loaded from XML files. 2018-06-30 02:55:34 +02:00
Quentin Bazin
31ea124dce [screenshot.png] Updated. 2018-06-30 00:56:39 +02:00
Quentin Bazin
d1f24d9461 [BlockCursor] Block destruction animation is finally transparent. 2018-06-29 23:38:41 +02:00
Quentin Bazin
618ff96277 [Block|Item] Block hardness and item mining level/speed handled. 2018-06-29 21:55:47 +02:00
Quentin Bazin
95842ddc07 [Block] Item drop added. Now CoalOre drops Coal and Stone drops Cobblestone. 2018-06-29 21:18:48 +02:00
Quentin Bazin
fb46ab479c [PauseMenuState|SettingsMenuState] Small name tweaks. 2018-06-29 20:57:32 +02:00
Quentin Bazin
5435ad309a [basic.f.glsl] Small cube preview lighting fix. 2018-06-29 19:33:59 +02:00
Quentin Bazin
54ae2e2a68 [BlockFurnace] Now displaying the corresponding texture when the furnace is active. 2018-06-29 09:48:37 +02:00
Quentin Bazin
dd49aff276 [FurnaceWidget] Visual indicator added. 2018-06-29 09:19:36 +02:00
Quentin Bazin
a258fde36a [BlockFurnace] Now able to smelt iron ore into ingots, using coal as fuel. 2018-06-29 08:56:59 +02:00
Quentin Bazin
da0877f515 [SmallCraftingWidget] Removed. Caused segfault due to Inventory initialized after CraftingWidget base. 2018-06-29 07:38:57 +02:00
Quentin Bazin
9c16bfd264 [BlockData] Added. [BlockWorkbench] Now keeps items stored inside. 2018-06-29 07:16:51 +02:00
Quentin Bazin
b7d8c47e52 [SettingsMenuState] Added. 2018-06-29 06:26:57 +02:00
Quentin Bazin
9f8768886c [MenuWidget] Now supports multiple buttons. [PauseMenuState] 'Resume' button added. 2018-06-28 11:31:51 +02:00
Quentin Bazin
a3f598c11e [PauseMenuState] Added. Will be replaced by a generic MenuState later. [MenuWidget|TextButton] Added. 2018-06-28 11:15:17 +02:00
Quentin Bazin
e5dbcb565a [BlockFurnace|FurnaceWidget] Added. 2018-06-28 10:13:29 +02:00
Quentin Bazin
f451b9754b [BlockWater] Now spread around. 2018-06-28 09:58:37 +02:00
Quentin Bazin
a2eeb41e48 [Chunk] Small improvement. 2018-06-28 09:22:57 +02:00
Quentin Bazin
40d458067f [Config] Constant GUI_SCALE added. 2018-06-28 08:52:55 +02:00
Quentin Bazin
60d31afc64 [InventoryWidget|MouseItemWidget] Small improvements. 2018-06-28 08:50:57 +02:00