42 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
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
2003ee63dc [ChunkBuilder] Very basic smooth lighting implementation. 2018-07-06 11:58:34 +02:00
Quentin Bazin
31411a9da6 [Box] Added. [BlockCursor] Now displaying correct box size. 2018-07-02 04:30:17 +02:00
Quentin Bazin
7df693e4af [Recipe|SmeltingRecipe] Added. [BlockFurnace] Now supports SmeltingRecipe. 2018-06-30 03:48:04 +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
9c16bfd264 [BlockData] Added. [BlockWorkbench] Now keeps items stored inside. 2018-06-29 07:16:51 +02:00
Quentin Bazin
40d458067f [Config] Constant GUI_SCALE added. 2018-06-28 08:52:55 +02:00
Quentin Bazin
3a62fdc598 [shaders|textures] Moved into 'resources' folder. [Types->IntTypes] Renamed. 2018-06-25 18:42:50 +02:00
Quentin Bazin
e236622408 [ChunkLightmap] Added. Lot of code removed from Chunk. 2018-06-25 15:59:25 +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
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
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
2892475ecc [InventoryState|WorkbenchWidget] Added. Starting inventory system. 2018-06-21 00:55:38 +02:00
Quentin Bazin
d9038e6cb5 [Image] Added. [Hotbar] WIP. 2018-06-20 05:43:52 +02:00
Quentin Bazin
7191b61bdf [ApplicationState] Using new rendering system. 2018-06-14 23:36:01 +02:00
Quentin Bazin
e56a6b7d2f Headers cleaned. [CMakeLists.txt] Now using -O3 and -ffast-math. 2018-06-14 03:20:20 +02:00
Quentin Bazin
b0050a1f34 [CoreApplication] Replacing most old Application code. [ApplicationState|ApplicationStateStack] Updated. 2018-06-14 02:38:25 +02:00
Quentin Bazin
23630138d4 [TODO] Added. [Chunk|World] Mouse picking: WIP. 2018-06-13 03:47:20 +02:00
Quentin Bazin
70efbfce5b [.gitignore|CMakeLists.txt] Cleaned/improved. [sources] Cleaned some headers. 2018-06-12 09:24:43 +02:00
Quentin Bazin
96bd9c590a [Application|Camera] Better mouse handling. 2018-06-05 17:17:09 +02:00
Quentin Bazin
5a969f055a Merged with last 'dev' branch commit. 2018-06-05 16:51:58 +02:00
Quentin Bazin
4bdea4b341 Lots of small fixes. 2018-06-05 16:17:40 +02:00
Quentin Bazin
e09f177511 Small fixes. 2018-06-05 01:48:01 +02:00
Quentin Bazin
810a3b5ed3 Extra whitespaces stripped. 2018-06-05 01:24:54 +02:00
Quentin Bazin
58c23a7e66 [README] Rewrited in Markdown. [SDLManager] Rewrited into SDLLoader. [ApplicationState] Improved. 2015-07-17 17:08:53 +02:00
Quentin Bazin
482b4102df [Mouse] OK. 2014-12-20 16:22:52 +01:00
Quentin Bazin
f69b2e9580 Using SDL now. 2014-12-20 01:46:31 +01:00
Quentin Bazin
0b806a93c6 [Chunk] Working on it. 2014-12-18 07:02:48 +01:00
Quentin Bazin
fad91e840f [Shader] added. [GameState] OK. 2014-12-15 16:47:30 +01:00