65 Commits

Author SHA1 Message Date
Quentin Bazin
4f64ede62a [ChunkBuilder] First slab test. 2018-06-30 22:27:46 +02:00
Quentin Bazin
aecadf3976 [Crosshair] Now using rectangles. Added proper blending. 2018-06-30 18:39:08 +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
618ff96277 [Block|Item] Block hardness and item mining level/speed handled. 2018-06-29 21:55:47 +02:00
Quentin Bazin
fb46ab479c [PauseMenuState|SettingsMenuState] Small name tweaks. 2018-06-29 20:57:32 +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
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
f451b9754b [BlockWater] Now spread around. 2018-06-28 09:58:37 +02:00
Quentin Bazin
d53f080fb7 [CraftingRecipe] Improved shaped recipe matching. [SmallCraftingWidget] Added. Now items are craftable from inventory. 2018-06-27 10:42:34 +02:00
Quentin Bazin
24c857b57c [PlayerInventoryWidget] Added. Now the crafting table is only accessible through the Workbench block. 2018-06-27 05:39:56 +02:00
Quentin Bazin
e8173578b1 [Player] Added, it's only a container for player's inventory. [BlockWorkbench] Added. Can display WorkbenchWidget on right click. 2018-06-27 05:09:30 +02:00
Quentin Bazin
ea6e83cfeb [BlockCursor] Block destruction animation added. 2018-06-26 04:52:31 +02:00
Quentin Bazin
b112cc0c02 [Cube] Small improvements. 2018-06-26 04:17:00 +02:00
Quentin Bazin
3809e808d2 [RectangleShape] Added. [InventoryState] Dark background added. 2018-06-25 23:29:50 +02:00
Quentin Bazin
8fe7a68666 [Registry] Glowstone added. [Chunk] Cobblestone no longer emits light. 2018-06-25 22:50:30 +02:00
Quentin Bazin
6422524da9 [Text] Fixed glyph spacing. [MouseItemWidget] Tooltip added when hovering items. 2018-06-25 22:34:29 +02:00
Quentin Bazin
3a62fdc598 [shaders|textures] Moved into 'resources' folder. [Types->IntTypes] Renamed. 2018-06-25 18:42:50 +02:00
Quentin Bazin
b18333d43c [BlockType|ItemType|ItemBlock] Added. Better block/item id handling! 2018-06-25 18:12:27 +02:00
Quentin Bazin
22a09ed831 [GameState] Useless code removed. 2018-06-25 14:04:25 +02:00
Quentin Bazin
293737f157 [CraftingWidget] Small fix. 2018-06-25 03:52:16 +02:00
Quentin Bazin
d8475505c6 [BlockCursor|Hotbar] Block usage/gather. 2018-06-24 21:02:39 +02:00
Quentin Bazin
f2dc9775ad [ItemWidget] Basic item system added. Can display sticks and a hoe now. 2018-06-24 06:35:49 +02:00
Quentin Bazin
e01c6da109 [Text] Added. [ItemWidget] Now displays item amount. 2018-06-24 03:17:35 +02:00
Quentin Bazin
5c0735da26 [ItemStack] Added. 2018-06-24 01:42:06 +02:00
Quentin Bazin
b8b36117a0 New block types added. 2018-06-23 03:50:02 +02:00
Quentin Bazin
2eecb88ced [Hotbar|WorkbenchWidget] Inventories linked. 2018-06-23 03:26:34 +02:00
Quentin Bazin
be7b857b84 [Widget] Base class was needed to get widget real positions. [InventoryWidget] Drag n'drop is working. 2018-06-21 09:00:53 +02:00
Quentin Bazin
2892475ecc [InventoryState|WorkbenchWidget] Added. Starting inventory system. 2018-06-21 00:55:38 +02:00
Quentin Bazin
01dcb04feb [BlockCursor] Linked to Hotbar. [Hotbar] Player can select a block with mouse wheel. 2018-06-20 07:47:40 +02:00
Quentin Bazin
d9038e6cb5 [Image] Added. [Hotbar] WIP. 2018-06-20 05:43:52 +02:00
Quentin Bazin
91c2e33ae3 [game.v.glsl] Waving water is now seamless between chunks. 2018-06-20 03:07:51 +02:00
Quentin Bazin
9fd25da16a [RenderTarget] Now enables vertex attributes. Chunk now only defines vertex attribute pointer offsets. 2018-06-18 20:44:17 +02:00
Quentin Bazin
272145e15a [game.v.glsl] Waving water, but not seamless between chunks. 2018-06-18 18:56:30 +02:00
Quentin Bazin
ef0160d19b [Camera] Basic jump. 2018-06-18 12:24:46 +02:00
Quentin Bazin
613aca0890 [BlockCursor] Added. All block selection code moved from GameState. 2018-06-15 00:05:17 +02:00
Quentin Bazin
7191b61bdf [ApplicationState] Using new rendering system. 2018-06-14 23:36:01 +02:00
Quentin Bazin
65df0259da [Chunk] Now using new renderer, but vertex attributes offset handling needs to be implemented in RenderTarget or VertexBuffer somehow. 2018-06-14 23:07:20 +02:00
Quentin Bazin
6d965a4312 [GameState] Cursor box and World updated to new render system. Working on Chunk. 2018-06-14 22:11:25 +02:00
Quentin Bazin
7201b31b55 [IDrawable|RenderStates|RenderTarget] Added. Trying a new rendering system based on the SFML one. 2018-06-14 21:16:56 +02:00
Quentin Bazin
b9087294c2 [Crosshair] Added. Code moved from GameState. 2018-06-14 18:24:07 +02:00
Quentin Bazin
8b0d83b661 [GameState] Now able to add a block in the world. 2018-06-14 04:35:11 +02:00
Quentin Bazin
8e6a0df267 [Camera] Small optimization. 2018-06-14 04:19:16 +02:00
Quentin Bazin
4c3fe96ca4 [GameState] Now using left mouse click to delete block. 2018-06-14 03:02:47 +02:00
Quentin Bazin
b0050a1f34 [CoreApplication] Replacing most old Application code. [ApplicationState|ApplicationStateStack] Updated. 2018-06-14 02:38:25 +02:00
Quentin Bazin
b2950e4afe [GameState|World|Chunk] Mouse picking: OK. 2018-06-14 01:55:10 +02:00
Quentin Bazin
3cd2335d40 [GameState] Can now display a cross and the selected block. 2018-06-13 21:48:35 +02:00
Quentin Bazin
23630138d4 [TODO] Added. [Chunk|World] Mouse picking: WIP. 2018-06-13 03:47:20 +02:00