125 Commits

Author SHA1 Message Date
Quentin Bazin
7d1ee578d9 [Inventory] Hotbar priority fixed. 2020-07-28 22:40:49 +02:00
Quentin Bazin
90d64e263c [DebugOverlay|TitleScreenState] Small fix. [EngineConfig] 'VERSION_SUFFIX' added. [misc/deploy.sh] Now asking if version number has been updated before deploying. 2020-07-28 21:47:49 +02:00
Quentin Bazin
ef5ac1d818 [LuaGUI] Text input definition added.
[creative_inventory] Now has a search bar!
2020-07-28 19:10:02 +02:00
Pedro Gimeno
6202717443 Use gk::abs instead of defining an ABS macro 2020-07-28 11:43:47 +02:00
Quentin Bazin
82f170d654 [Minimap] Added. 2020-07-28 09:12:36 +02:00
Pedro Gimeno
7e308bc988 Improve precision in time calculations to prevent possible problems 2020-07-27 20:59:41 +02:00
Quentin Bazin
f99729d827 Block placement constraints implemented. Closed #137. 2020-07-27 18:12:30 +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
54ffc2c33d [Block] 'custom_param_bits' attribute added. Fixed #139. 2020-07-25 01:42:05 +02:00
Quentin Bazin
0564e1cb70 [Chunk] 'onBlockDestroyed' is now called after updating the block. 2020-07-24 23:27:54 +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
Quentin Bazin
c4feb73b2a Small fixes. 2020-07-21 22:36:56 +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
4c41ab080a [LuaMod|Inventory] Fixed a small bug preventing items from being gathered. 2020-07-20 09:48:26 +02:00
Quentin Bazin
a2f79aac7d [GameKey] 'BlockInfoToggle' key added. 2020-07-18 03:47:21 +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
103127ee96 [LuaMod] 'giveItemStack' now tries to use inventory before hotbar. 2020-07-17 23:45:51 +02:00
Quentin Bazin
7eaac50d48 Now saving last hotbar slot. 2020-07-17 23:32:50 +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
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
556941f553 [GameTime] Tick system added.
[ChatCommandHandler] Added '/tps' command to get ticks per second.
[ServerWorld] Fixed world generation speed.
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
1485c15808 [Lua API] Added item definition property 'effective_on'. Fixed #143. 2020-07-13 06:54:05 +02:00
Quentin Bazin
9df06a4a88 Fixed block mining speed. 2020-07-13 06:26:21 +02:00
Quentin Bazin
bf793e9bfb [tests] CxxTest-based unit tests added. 2020-07-11 17:44:20 +02:00
Quentin Bazin
6a68b1a430 [BlockState] 'drawOffset' attribute added. 2020-07-11 02:59:48 +02:00
Quentin Bazin
801c13fc4b [default] Various gameplay tweaks. [BlockState] Fixed tools. 2020-07-11 02:32:41 +02:00
Quentin Bazin
d68e17a521 Added 'Redstone Lamp' alternative using states. WIP. 2020-07-10 23:58:07 +02:00
Quentin Bazin
5b77f61298 Documentation updated for block states. 2020-07-10 22:49:59 +02:00
Quentin Bazin
f5f586980d 'use_alt_tiles' replaced by block states. 2020-07-10 22:43:50 +02:00
Quentin Bazin
fd979fdd06 [LuaBlockLoader] Now setting attributes only when necessary. [BlockStat€] 'isOpaque' fixed. 2020-07-10 22:43:50 +02:00
Quentin Bazin
a44a3b6ad2 Block states almost completely working. 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
4884b7c1d9 [ScriptEngine] 'BlockState' and 'BlockParam' added. 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
02b9f8b283 Now using LuaJIT. Closed #91. 2020-07-09 02:40:21 +02:00
Quentin Bazin
e3dc327b71 [Key] Small fix for multiplayer mode.
If the 'config/keys.lua' file didn't exist custom keys were empty.
2020-07-08 09:13:43 +02:00
Quentin Bazin
4ac67eedd4 [GameKey] 'Up' and 'Down' renamed to 'Forward' and 'Back'. 2020-07-08 04:19:36 +02:00
DeatHunter
5ba2699c4b
Add random walk as an alternative to flood fill for oregen (#148)
* Improved oregen
* [Lua API] Added biome ore definition property 'gen_type'.

Co-authored-by: Quentin Bazin <quent42340@gmail.com>
2020-07-08 02:28:11 +02:00
Quentin Bazin
c9b7990c3c First step of SDL2 migration. 2020-07-08 00:12:22 +02:00