67 Commits

Author SHA1 Message Date
Quentin Bazin
42df982956 Now using GameKit. 2018-12-29 02:23:23 +01:00
Quentin Bazin
5eb6e115f5 [Lua] Now using string IDs instead of integer IDs. 2018-12-28 21:23:26 +01:00
Quentin Bazin
b05ff08ce0 [Registry] Numerical ID are not longer required. [Block|Item] 'name' -> 'label'. 2018-12-28 06:57:34 +01:00
Quentin Bazin
07b150e9c8 [SettingsMenuState] Prepared to add input settings. 2018-12-28 06:45:19 +01:00
Quentin Bazin
e1331b4815 [#14] Reverted back to SDL2. Fixed #17. 2018-12-28 06:21:29 +01:00
Quentin Bazin
e3a4d97d4f [ItemWidget] Item display fixed. (#14) 2018-12-28 03:30:36 +01:00
Quentin Bazin
bd1b5b1941 [Rect|Vector2] Removed. (#14). 2018-12-26 21:02:03 +01:00
Quentin Bazin
db6cd801ea [Texture] Removed. (#14) 2018-12-26 21:02:03 +01:00
exilief
dc8d781393 Switching from SDL to SFML (#14)
* Add SFML support besides SDL. Choose with global macro USE_SDL / USE_SFML.

+ Small fixes to make it compile on MinGW (with Glad instead of GLEW -> option NO_GLEW)

* Add SFML support besides SDL (Part 3). Cleaned up some macros.

* Add SFML support besides SDL (Part 4). Small SFML fixes. Changed Spaces->Tabs

* Add SFML support besides SDL (Part 5). Cleaning up more macros + small fixes.

* Port to SFML. Removed all SDL code.

* Small changes

* Conversion functions to/from SFML types for Vector2/3 and Color.

* Removed unused SDL files

* Changes for SFML port

* Changes for SFML port

* Fixed line endings (probably?)
2018-12-26 18:36:46 +01:00
Quentin Bazin
e13d705e03 [Transform] Added. [Transformable|RenderStates] Adapted to use Transform. 2018-12-25 01:45:10 +01: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
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
96da02fa15 [Registry] Small fixes. 2018-07-02 02:58:02 +02:00
Quentin Bazin
59cf061e97 [Crosshair] Small tweaks. 2018-06-30 20:09:01 +02:00
Quentin Bazin
7713bb4693 [SettingsMenuState] Render distance button: Done. 2018-06-30 05:07:57 +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
7df693e4af [Recipe|SmeltingRecipe] Added. [BlockFurnace] Now supports SmeltingRecipe. 2018-06-30 03:48:04 +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
60d31afc64 [InventoryWidget|MouseItemWidget] Small improvements. 2018-06-28 08:50:57 +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
8843c8f346 [Hotbar] Small improvements. [ItemWidget] Cube size increased. [game.v.glsl] Small fix on leaves movement. 2018-06-27 00:20:26 +02:00
Quentin Bazin
ea9053ac8b [Text] Small refactoring. 2018-06-26 06:38:20 +02:00
Quentin Bazin
180eaaafd8 [CraftingWidget] Small blink fixed. [ItemWidget] Cube offsets fixed. 2018-06-26 06:18:50 +02:00
Quentin Bazin
994cf8433d [MouseItemWidget] Small bug fixed. 2018-06-26 06:03:30 +02:00
Quentin Bazin
4f8628c9e5 [Image] Color now supported. [Text] Now displays text shadow. 2018-06-26 05:42:06 +02:00
Quentin Bazin
457b58ab73 [Cube|ItemWidget] Cube size/rotation improved. 2018-06-26 05:08:32 +02:00
Quentin Bazin
b112cc0c02 [Cube] Small improvements. 2018-06-26 04:17:00 +02:00
Quentin Bazin
9a9a7edf28 [Transformable] Rotation added. [Cube] Added. [ItemWidget] Ugly cube display. 2018-06-26 01:35:19 +02:00
Quentin Bazin
d1e504d3de [InventoryWidget] Hovering item highlight. 2018-06-25 23:46:10 +02:00
Quentin Bazin
3809e808d2 [RectangleShape] Added. [InventoryState] Dark background added. 2018-06-25 23:29:50 +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
ddf771af6a [Item] Attributes isBlock and textureID added. 2018-06-25 16:32:32 +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
1728afa780 [MouseItemWidget] Small bug fixed. 2018-06-24 07:52:32 +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
f2dc9775ad [ItemWidget] Basic item system added. Can display sticks and a hoe now. 2018-06-24 06:35:49 +02:00