306 Commits

Author SHA1 Message Date
Quentin Bazin
3dd8f83918 [HUD] Now holds its own projection matrix. 2018-12-30 04:40:05 +01:00
Quentin Bazin
de62bcb413 [Player] No longer holds gk::Camera, ownership moved to GameState. 2018-12-30 04:32:29 +01:00
Quentin Bazin
e76051ed90 [GameKey] Added. 2018-12-29 23:53:00 +01:00
Quentin Bazin
3cd3266b3b Small fixes for new GameKit version. 2018-12-29 23:24:38 +01:00
Quentin Bazin
72e34ce9ea [Player] Eye height and jump speed tweaked. 2018-12-29 04:51:37 +01:00
Quentin Bazin
42df982956 Now using GameKit. 2018-12-29 02:23:23 +01:00
Quentin Bazin
ff694fe208 [Registry] Item drop fixed. 2018-12-28 23:47:57 +01:00
Quentin Bazin
fe57499fe2 [Registry] Cleaned. [recipes.lua] Fixed stick recipe. 2018-12-28 21:30:17 +01:00
Quentin Bazin
5eb6e115f5 [Lua] Now using string IDs instead of integer IDs. 2018-12-28 21:23:26 +01:00
Quentin Bazin
789f75b46f [Block|Item] Now holds an unique name, but id is still used everywhere. 2018-12-28 08:36:56 +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
b1ba4439a8 [Keyboard] Replaced by GamePad, GameKey, InputHandler and KeyboardHandler. 2018-12-28 04:57:19 +01:00
Quentin Bazin
50f222f47a [Window] Now inherits from sf::Window. 2018-12-28 03:49:24 +01:00
Quentin Bazin
e3a4d97d4f [ItemWidget] Item display fixed. (#14) 2018-12-28 03:30:36 +01:00
Quentin Bazin
475dc67001 [CONTRIBUTING.md] Added. 2018-12-26 21:29:52 +01:00
Quentin Bazin
ca08a820f7 [Window] Fixed #16. 2018-12-26 21:19:20 +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
Quentin Bazin
4325665eef [Mouse] Movement fixed. (#14) 2018-12-26 21:02:03 +01:00
Quentin Bazin
2853fe35d0 [CMake] Build updated to use SFML. Fixes wrong newline characters added in #14. 2018-12-26 21:02:03 +01:00
Quentin Bazin
1a501cd669 [Camera] Added. Used in Player. 2018-12-26 21:02:03 +01:00
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