181 Commits

Author SHA1 Message Date
Quentin Bazin
b47fbc9d18 [Skybox] Now uses its own shader. 2020-07-17 19:58:45 +02:00
Quentin Bazin
e73f436a46 Basic day/night cycle added. 2020-07-17 19:58:45 +02:00
Quentin Bazin
fe43dcdf7c Basic moon added. 2020-07-17 19:58:45 +02:00
Quentin Bazin
cdc07cd616 Basic sun added. 2020-07-17 19:58:45 +02:00
Quentin Bazin
5a32ffcae3 [ItemWidget] Now updates images when the texture pack changes. 2020-07-14 23:49:50 +02:00
Quentin Bazin
7f8f732dbe [TexturePackSelectionState] Added. 2020-07-14 23:30:40 +02:00
Quentin Bazin
468bdc0dce [ClientApplication] Small fix. 2020-07-13 23:31:18 +02:00
Quentin Bazin
69e4dbba17 Fixed Windows build. 2020-07-13 23:25:04 +02:00
Quentin Bazin
1485c15808 [Lua API] Added item definition property 'effective_on'. Fixed #143. 2020-07-13 06:54:05 +02:00
Quentin Bazin
dc0517bff9 [Config] Added option for max block reach distance. 2020-07-11 15:17:56 +02:00
Quentin Bazin
bd5174ba27 [ItemWidget] Fixed items taking green tint after switching with grass. 2020-07-11 03:12:11 +02:00
Quentin Bazin
6a68b1a430 [BlockState] 'drawOffset' attribute added. 2020-07-11 02:59:48 +02:00
Quentin Bazin
f5f586980d 'use_alt_tiles' replaced by block states. 2020-07-10 22:43:50 +02:00
Quentin Bazin
5f96d37fbd [BlockState] 'isOpaque' now has a custom getter. 2020-07-10 22:43:50 +02:00
Quentin Bazin
7750154b22 [BlockState] Added. First stop of block states. 2020-07-10 22:43:50 +02:00
Quentin Bazin
2b210d697a [BlockParam] Added (see #139). 2020-07-09 22:24:19 +02:00
Quentin Bazin
70f58e7b5b [LuaGUI] Now allows defining a closing key. 2020-07-09 00:11:54 +02:00
Quentin Bazin
0d7b1fa160 [MenuWidget] Fixed a small issue by processing slider events first. 2020-07-08 19:17:15 +02:00
Quentin Bazin
256700ecec [ClientCommandHandler|LuaGUIState] Make sure only one GUI is active at the same time. 2020-07-08 12:02:48 +02:00
Quentin Bazin
18d0fa8cb1 [SettingsMenuState] Now using sliders for some settings. 2020-07-08 11:59:25 +02:00
Quentin Bazin
4ac67eedd4 [GameKey] 'Up' and 'Down' renamed to 'Forward' and 'Back'. 2020-07-08 04:19:36 +02:00
Quentin Bazin
4421f8258d [GameState] Now possible to take a screenshot by pressing F2 in-game. 2020-07-08 04:04:29 +02:00
Quentin Bazin
95233b78ad [SettingsMenuState] Increased max mouse sensitivity. 2020-07-08 00:45:28 +02:00
Quentin Bazin
283eff0f64 [Config] Now displaying an error when 'config' folder can't be created. 2020-07-08 00:20:12 +02:00
Quentin Bazin
0e10bd0c4e [Config] Changed default mipmap level. 2020-07-08 00:12:22 +02:00
Quentin Bazin
bb234ac4d8 [ClientWorld] Removed SFML-specific fix. 2020-07-08 00:12:22 +02:00
Quentin Bazin
5bb5b44ff4 [main] DPI awareness code added back to the project. 2020-07-08 00:12:22 +02:00
Quentin Bazin
1a4227a580 [gamekit] Updated. Menu background fixed. [Config] Now creating 'config' folder if it doesn't exist yet. 2020-07-08 00:12:22 +02:00
Quentin Bazin
b6f531af12 [TextureAtlas] Updated for SDL. 2020-07-08 00:12:22 +02:00
Quentin Bazin
c9b7990c3c First step of SDL2 migration. 2020-07-08 00:12:22 +02:00
Quentin Bazin
5a98a1d387 [DebugOverlay] Added chunk updates per sec. 2020-07-06 02:56:03 +02:00
Quentin Bazin
14e23dc83d Added seeds and wheat. You can grow wheat but it's quite clunky atm. 2020-07-05 23:32:24 +02:00
Quentin Bazin
084a002a6d [EngineConfig] Chunks are back to their old 16x16x32 state until superchunks are implemented. 2020-07-05 22:26:41 +02:00
Quentin Bazin
7497b6b2a8 Added 'Farmland' block, which is possible to create with any hoe. 2020-07-05 20:55:23 +02:00
Quentin Bazin
3a325c74ff Added '-l/--log-level' to set log level. 2020-07-05 18:03:13 +02:00
Quentin Bazin
e0d842359e [ServerModLoader] Now checking cyclic dependencies. 2020-07-04 23:03:49 +02:00
Quentin Bazin
957ef307c3 [DebugOverlay] Now using positive modulo from GameKit. 2020-07-02 20:37:20 +02:00
Quentin Bazin
fdeb6a1085 [GameState] Increased mouse sensitivity for macOS. 2020-07-02 19:59:49 +02:00
Quentin Bazin
92fa009e9d [DebugOverlay] Fixed relative position. 2020-07-02 16:40:20 +02:00
Quentin Bazin
ff1d34cd8d [GameState] Now using render distance as projection far plane. 2020-07-02 02:33:11 +02:00
Quentin Bazin
f2ab97105b [EngineConfig] Chunks are now cubic (16 blocks tall instead of 32 blocks tall). 2020-07-01 21:18:11 +02:00
Quentin Bazin
337d4b44c7 [GameConfig] Added to store values that were in Client and Config. 2020-07-01 18:22:31 +02:00
Quentin Bazin
db6f775ae7 [ChunkBuilder] Now disabling fallback AO when smooth lighting is enabled. 2020-06-30 19:15:42 +02:00
Quentin Bazin
b0aa1ad7a8 Fixed BlockCursor display. 2020-06-30 01:51:01 +02:00
Quentin Bazin
e919cbb8f7 [Lua API] Added properties 'fog_color' and 'fog_depth'. 2020-06-30 01:45:30 +02:00
Quentin Bazin
bd7fa53f3f [GameState] Framebuffer-related code has been moved. [Framebuffer] Now able to store depth data into a texture. [screen.f.glsl] Added a pseudo-underwater event. 2020-06-30 00:29:23 +02:00
Quentin Bazin
f0df5815c0 [GameState] Framebuffer is now resized when window size changes. [Framebuffer] Small fixes. 2020-06-29 23:39:02 +02:00
Quentin Bazin
608b53730e [Framebuffer] Added. [GameState] Now using a framebuffer to render the scene and apply effects. 2020-06-29 23:18:24 +02:00
Quentin Bazin
abbf55fd21 Merged smooth lighting config options. 2020-06-29 14:46:40 +02:00
Quentin Bazin
466c0cff67 Fixed #130. 2020-06-28 21:23:12 +02:00