283 Commits

Author SHA1 Message Date
Quentin Bazin
07b534b15b [Camera] Merged into Player. 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
5d1b024d64 [Registry] Now able to register items from a Lua table. 2018-12-20 17:51:19 +01:00
Quentin Bazin
ca953b6661 [Registry] Now able to register elements from a Lua table. 2018-12-20 13:31:32 +01:00
Quentin Bazin
2f4a9eac44 [ScriptEngine] Now using snake_case for Lua. 2018-12-20 12:58:23 +01:00
Quentin Bazin
ff69ddb160 [ScriptEngine] Now able to register crafts. 2018-12-20 05:19:56 +01:00
Quentin Bazin
2dadf9dc0a [ScriptEngine] Now able to register block/item properties. 2018-12-20 03:30:11 +01:00
Quentin Bazin
a26a567e95 [ScriptEngine] Added. Items and Blocks are partially loaded from Lua now. 2018-12-20 02:51:30 +01:00
Quentin Bazin
a1e6ef40e1 Project renamed to OpenMiner. 2018-12-20 00:00:01 +01:00
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