Quentin Bazin
4337868fde
[TexturePackSelectionState] World reload request added. Prevents a bug with incomplete texture packs (see #167 ).
2020-07-28 12:26:30 +02:00
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
a1366e162e
[Minimap] Now showing player fov/render distance using a blue triangle.
2020-07-28 09:29:31 +02:00
Quentin Bazin
59b8650001
[Minimap] Now showing rendered chunks.
2020-07-28 09:12:36 +02:00
Quentin Bazin
82f170d654
[Minimap] Added.
2020-07-28 09:12:36 +02:00
Quentin Bazin
f99729d827
Block placement constraints implemented. Closed #137 .
2020-07-27 18:12:30 +02:00
Pedro Gimeno
85a1b4ee78
Fix rendering of skybox when far away from 0,0,0
2020-07-27 00:13:01 +02:00
Pedro Gimeno
d22785f593
Fix clipping of the skybox
...
The bottom of the skybox was being clipped as a result of a -50m offset that is applied to its centre. Fix that, and add a constant for said offset in EngineConfig.cpp.
2020-07-26 23:55:06 +02:00
Quentin Bazin
529c0a0427
Fixed missing include and define for MSVC.
2020-07-25 03:11:23 +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
Quentin Bazin
e85c5f3458
Small fixes.
2020-07-24 19:59:35 +02:00
Pedro Gimeno
2b34e90216
Add constants for sun, moon and stars distance based on far clip
2020-07-23 19:31:28 +02:00
Quentin Bazin
b763b1aa8f
[Sky] Added default values for celestial object definitions.
2020-07-21 22:50:19 +02:00
Pedro Gimeno
f4be71c731
Make celestial objects be referenced by centre instead of corner
2020-07-20 19:43:53 +02:00
Quentin Bazin
9c5f1b9374
[CelestialObject] Fixed rendering on Windows and Debian, maybe. (see #159 )
2020-07-20 16:43:07 +02:00
Quentin Bazin
3c3d323e6f
Small fixes.
2020-07-20 16:06:49 +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
64ddacd08f
[mods/default] 'Torch' added.
...
[BlockState] 'isCollidable' attribute added.
[TextButton] Now rounding position.
2020-07-20 15:31:43 +02:00
Quentin Bazin
5d6b9e808a
[TextButton] Now rounding to position to the nearest integer.
2020-07-20 13:49:43 +02:00
Pedro Gimeno
aa99017ad4
Fix stars uniformity and rotation
2020-07-20 12:39:03 +02:00
Quentin Bazin
71771b8f76
[TexturePackSelectionState] Removed world reload request because not needed.
2020-07-20 12:20:45 +02:00
Pedro Gimeno
b8d3a36f19
Fix the degenerate case of the camera being between blocks
...
It got broken by mistake with the addition of block states, in commit 7750154b22d8b3cfaa564174187b81c1be914b05
2020-07-18 16:19:26 +02:00
Quentin Bazin
95f9c2818f
[TexturePackSelectionState] Only update TextureAtlas if a game is running.
2020-07-18 06:05:34 +02:00
Quentin Bazin
521bf85ea2
[MouseItemWidget] Now possible to destroy items by throwing them in creative inventory.
2020-07-18 04:29:47 +02:00
Quentin Bazin
a2f79aac7d
[GameKey] 'BlockInfoToggle' key added.
2020-07-18 03:47:21 +02:00
Quentin Bazin
ea00d12152
[ClientWorld] Small chunk visibility fix. Fixed #140 .
2020-07-18 02:15:21 +02:00
Quentin Bazin
73b3fbf216
[MouseItemWidget] Fixed small issue related to item duplication. Fixes #144 .
2020-07-18 02:01:41 +02:00
Quentin Bazin
fae51bceb5
[EngineConfig] Added BLOCK_AIR for air string ID.
2020-07-18 01:53:22 +02:00
Quentin Bazin
a4dfd7a7aa
Item stack limit added (server global + per block/item definition).
2020-07-18 01:35:59 +02:00
Quentin Bazin
7eaac50d48
Now saving last hotbar slot.
2020-07-17 23:32:50 +02:00
Quentin Bazin
c7a5d61ece
[ChunkBuilder] Water is now affected by smooth lighting.
2020-07-17 22:00:33 +02:00
Quentin Bazin
a0c0491512
[KeyboardHandler] Lua-defined keys can now be remapped on first run.
2020-07-17 21:31:11 +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
f42c71ae8d
[ChunkBuilder] Don't apply AO on light sources.
2020-07-17 19:58:45 +02:00
Quentin Bazin
af9f7ef10f
[Config] Now using 'Fast' AO setting by default.
2020-07-17 19:58:45 +02:00
Quentin Bazin
1e6bd6a441
[Skybox] Stars now follow sky rotation.
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
886aba1d0f
Small fixes.
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
30e3ae2054
[ChatCommandHandler] '/time <add|set>' command added.
...
[CelestialObject|Skybox] Moon changes its phase everyday.
2020-07-17 19:58:45 +02:00
Quentin Bazin
0f015ee75d
[DebugInfoWidget] Added 'Ticks' and 'Game time'.
...
[GameTime] The day now starts at 6 AM.
2020-07-17 19:58:45 +02:00
Quentin Bazin
07f86b9e10
[GameTime] 'getCurrentTime' now uses the new tick system.
...
[DebugOverlay] Added client TPS info.
[Network] Packet 'ServerTick' added. Sent at the beginning of every tick.
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
c319f865a1
[CelestialObject] Now allows to control rotation speed.
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
f2db916357
[Skybox] Stars added.
2020-07-17 19:58:45 +02:00