109 Commits

Author SHA1 Message Date
Quentin Bazin
0a88bec7fb [SettingsMenuState] Added menu option to change camera FOV. [Minimap] Now updating blue triangle when FOV or render distance changes. 2020-07-28 09:48:50 +02:00
Quentin Bazin
ee1efccca5 [Config] 'isChunkMinimapEnabled' added, along with its menu option in SettingsMenuState. 2020-07-28 09:35:27 +02:00
Quentin Bazin
82f170d654 [Minimap] Added. 2020-07-28 09:12:36 +02:00
Quentin Bazin
c518334e5b [GameState] Fixed #163. 2020-07-25 00:25:50 +02:00
Quentin Bazin
c52b831552 [BlockCursor] Fixed a bug allowing to mine without pressing left-click. See #163. 2020-07-24 23:36:48 +02:00
Pedro Gimeno
e428509e0a Make some constants float to prevent extra casting work 2020-07-20 16:04:19 +02:00
Pedro Gimeno
7c1bf48ab0 Round coordinates that are used to display text buttons
Fixes a minor graphical glitch in the menus.
2020-07-20 16:04:19 +02:00
Quentin Bazin
71771b8f76 [TexturePackSelectionState] Removed world reload request because not needed. 2020-07-20 12:20:45 +02:00
Quentin Bazin
95f9c2818f [TexturePackSelectionState] Only update TextureAtlas if a game is running. 2020-07-18 06:05:34 +02:00
Quentin Bazin
a2f79aac7d [GameKey] 'BlockInfoToggle' key added. 2020-07-18 03:47:21 +02:00
Quentin Bazin
072c3b2942 [ItemWidget] Fixed item rendering after a texture pack switch. [GameConfig] 'texturePack' moved to 'Config' ans is now saved on client close. 2020-07-17 20:41:43 +02:00
Quentin Bazin
af9f7ef10f [Config] Now using 'Fast' AO setting by default. 2020-07-17 19:58:45 +02:00
Quentin Bazin
1ded0d929e [Lua API] Added 'daylight_cycle' in sky definition to control its presence and speed. 2020-07-17 19:58:45 +02:00
Quentin Bazin
5119ab9985 [Lua API] Added moon, sun and stars attributes in sky definition. 2020-07-17 19:58:45 +02:00
Quentin Bazin
22552dab86 [Config] Added option to disable star rendering. 2020-07-17 19:58:45 +02:00
Quentin Bazin
74bc521d11 [Config] It's now possible to use fallback AO only while using smooth lighting. 2020-07-17 19:58:45 +02:00
Quentin Bazin
4e45f1583b [GameTime] Added to centralize time, sunlight intensity and sky color. 2020-07-17 19:58:45 +02:00
Quentin Bazin
5acb1bf437 [Skybox] Sun texture added. 2020-07-17 19:58:45 +02:00
Quentin Bazin
a1ababe8a6 [Skybox] Small tweaks. 2020-07-17 19:58:45 +02:00
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
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
69e4dbba17 Fixed Windows build. 2020-07-13 23:25:04 +02:00
Quentin Bazin
dc0517bff9 [Config] Added option for max block reach distance. 2020-07-11 15:17:56 +02:00
Quentin Bazin
70f58e7b5b [LuaGUI] Now allows defining a closing key. 2020-07-09 00:11:54 +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
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
c9b7990c3c First step of SDL2 migration. 2020-07-08 00:12:22 +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
3a325c74ff Added '-l/--log-level' to set log level. 2020-07-05 18:03:13 +02:00
Quentin Bazin
fdeb6a1085 [GameState] Increased mouse sensitivity for macOS. 2020-07-02 19:59:49 +02:00
Quentin Bazin
ff1d34cd8d [GameState] Now using render distance as projection far plane. 2020-07-02 02:33: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
b0aa1ad7a8 Fixed BlockCursor display. 2020-06-30 01:51:01 +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
Quentin Bazin
cc2e0fb4f0 [ServerConnectState|TitleScreenState] Small fixes for low resolution. 2020-06-26 19:24:41 +02:00
Quentin Bazin
1f905927cc [TitleScreenState] Now displaying title. 2020-06-26 19:17:21 +02:00
Quentin Bazin
21edf6816c [TitleScreenState] Now displaying version. 2020-06-26 19:06:51 +02:00
Quentin Bazin
a494ce5d03 [ServerLoadingState|WorldSavingState] Now using 'texture-menu_background'. 2020-06-26 18:02:03 +02:00
Quentin Bazin
8f73a77bc9 [SettingsMenuState] Improved widget layout. 2020-06-26 17:51:36 +02:00
Quentin Bazin
76a7e60ad6 [ConnectionErrorState|ServerConnectState] Improved. 2020-06-26 17:37:25 +02:00
Quentin Bazin
10bcbabdee [WorldCreationState|WorldDeletionState] Improved. Fixed #128. 2020-06-26 17:07:32 +02:00