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
ddcdac14b5
[MouseItemWidget] Now handles taking items from read-only inventory if it holds the same item.
2018-06-25 03:39:02 +02:00
Quentin Bazin
3e187fe263
[CraftingWidget] Crafting result now read-only. Only consumes recipe items when result is taken.
2018-06-25 03:31:10 +02:00
Quentin Bazin
68e3d1493d
[CraftingWidget] Added for more control on craft result inventory.
2018-06-25 02:39:23 +02:00
Quentin Bazin
80af5423f7
[Chunk] Sunlight added.
2018-06-25 00:51:51 +02:00
Quentin Bazin
09ba9c84d3
[Chunk] First attempt to lighting.
2018-06-25 00:05:21 +02:00
Quentin Bazin
d8475505c6
[BlockCursor|Hotbar] Block usage/gather.
2018-06-24 21:02:39 +02:00
Quentin Bazin
6806fcd8fe
[Block|ChunkBuilder] Transparent leaves. [game.v.glsl] Waving leaves.
2018-06-24 09:42:11 +02:00
Quentin Bazin
c08879387a
[BlockCursor] Preparation for block destroy animation.
2018-06-24 09:02:40 +02:00
Quentin Bazin
626285c38d
[CraftingRecipe] Support for shapeless recipes added.
2018-06-24 07:46:34 +02:00
Quentin Bazin
1de5c04b14
[CraftingRecipe] Added. [Registry] Basic axe recipe added. [WorkbenchWidget] Recipe support added.
2018-06-24 07:11:50 +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
75c8352501
[BlockWater] Added. Failed to add a good block updating system.
2018-06-24 01:09:32 +02:00
Quentin Bazin
be69cfbc5b
[Chunk] Now stores u32 instead of Block. [Registry] Added.
2018-06-23 23:05:36 +02:00
Quentin Bazin
a03b621a76
[Camera] Temporary collision fixes.
2018-06-23 07:48:54 +02:00
Quentin Bazin
60c6eaed3b
[Color|Sprite|SpriteAnimation|Timer|Vector2] Added. [TerrainGenerator|MouseItemWidget] Small improvements.
2018-06-23 07:00:47 +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
a9f182ec61
[MouseItemWidget] Added. [WorkbenchWidget] Now using MouseItemWidget to move items across inventories.
2018-06-23 01:32:23 +02:00
Quentin Bazin
28071a6b89
[InventoryWidget] Small bugs fixed.
2018-06-23 00:34:02 +02:00
Quentin Bazin
1a302dfb1c
[InventoryWidget] Now moving items correctly.
2018-06-21 13:05:05 +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
4fe6868bcb
[Texture|VertexBuffer] Now inherit from NonCopyable. [Transformable] Small fix.
2018-06-21 07:03:02 +02:00
Quentin Bazin
89c11ba73c
[Hotbar] Now using ItemWidget instead of Image.
2018-06-21 06:08:31 +02:00
Quentin Bazin
fb3f7f0501
Lot of changes. [...]
...
[Renderer] Deleted, code moved to Application.
[Transformable] Transformations are now applied to model matrix in applyTransform.
[ResourceHandler|TextureLoader|XMLFile] Added.
[Debug|Exception] Updated.
2018-06-21 05:45:17 +02:00
Quentin Bazin
9af917357a
[Transformable] Added. Works like the sf::Transformable class of SFML, but uses applyTransform(states) instead of states.transform *= getTransform().
2018-06-21 02:55:33 +02:00
Quentin Bazin
05957d4552
[Inventory|InventoryWidget|ItemWidget] Added. Need to add ITransform to go further.
2018-06-21 01:32:55 +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
46fb26ab76
[Block] Now possible to change grass into dirt.
2018-06-20 04:22:42 +02:00
Quentin Bazin
5f38eaaeb0
[Chunk|ChunkBuilder] Small improvements.
2018-06-20 03:45:30 +02:00
Quentin Bazin
81209dbe64
[ChunkBuilder] Now handling block opacity correctly.
2018-06-20 02:23:39 +02:00
Quentin Bazin
4acc070077
[VertexBuffer] No longer store draw mode and data offsets.
2018-06-20 01:07:18 +02:00
Quentin Bazin
ff059f2b04
[Vertex] Structure added. [RenderTarget] Now supports all vertex attributes.
2018-06-20 00:57:27 +02:00
Quentin Bazin
b1d1e88593
[ChunkBuilder] Added.
2018-06-19 23:26:51 +02:00
Quentin Bazin
ab760e47de
[World] Can hold more than one chunk in height now.
2018-06-19 05:38:14 +02:00
Quentin Bazin
ac88ba4b97
[Block] Useless code removed.
2018-06-18 21:45:22 +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
bcfc83f3f2
[BlockCursor] Tried to add another type of cursor.
2018-06-18 17:42:06 +02:00
Quentin Bazin
ef0160d19b
[Camera] Basic jump.
2018-06-18 12:24:46 +02:00
Quentin Bazin
d9e11d82d2
[Block] Now supports wood rings and grass sides. [Chunk] Small changes to cubeCoords to display textures correctly. Though drawOutlines may not work anymore.
2018-06-16 17:21:03 +02:00
Quentin Bazin
e4db36e0e4
[TerrainGenerator] Now using another generation. [Chunk] Block storage heavily reworked. Now using a compile-time array instead of a vector.
2018-06-16 16:45:48 +02:00
Quentin Bazin
905a23c792
[BlockCursor] Now using face == -1 when no block is selected instead of a fixed far position.
2018-06-15 01:13:59 +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