279 Commits

Author SHA1 Message Date
Quentin Bazin
fa0c3c7959 [GameState] Now only drawing other players in the same dimension. 2020-03-08 16:18:18 +01:00
Quentin Bazin
87e0a59829 [ChunkBuilder] Added a new layer for 'glass' drawtype. Fixed portal block rendering. 2020-03-08 16:16:03 +01:00
Quentin Bazin
a54ffa325c [DebugOverlay] Now displaying current dimension ID. 2020-03-08 16:07:32 +01:00
Quentin Bazin
58ef40b09f [TerrainBiomeSampler] Now aware of dimensions. 2020-03-08 16:07:32 +01:00
Quentin Bazin
be1e49cfe0 [blocks.lua] Portal block added. Send PlayerChangeDimension on right-click. 2020-03-08 16:07:32 +01:00
Quentin Bazin
8e5f78f533 [InventoryCube] Rendering fixed. 2020-03-07 17:19:19 +01:00
Pedro Gimeno
660f2a3f3e [ChunkBuilder] Fix lighting from previous commit 2020-03-07 16:07:25 +01:00
Pedro Gimeno
d0166c4a59 [ChunkBuilder] Rotate vertices instead of faces; add more orientations 2020-03-07 16:07:25 +01:00
Pedro Gimeno
a1ecfd1c36 [ChunkBuilder] Make the arrays multidimensional
Assign a meaning to each dimension through constants, for clarity, and let the compiler do the indexing math instead of doing it ourselves explicitly.
2020-03-07 16:07:25 +01:00
Quentin Bazin
5ee75e72f6 [LuaGUI] 'set_size' and 'set_centered' added. 2020-03-07 15:41:19 +01:00
Quentin Bazin
d883467239 [BlockCursor] Replaced blending by old blending. 2020-03-06 00:45:39 +01:00
Quentin Bazin
2fd6a7450c [BlockCursor] Small visual tweaks. 2020-03-05 23:55:59 +01:00
Quentin Bazin
64ee268129 [basic.f.glsl] Small tweaks on InventoryCube shading. 2020-03-05 18:59:26 +01:00
Pedro Gimeno
33760af0fb Fix InventoryCube
- South/bottom and north/west were reversed after swapping Y and Z axes.
- The order of vertices did not match the one in ChunkBuilder.cpp.
- The rotation was only good for the wrong order.
- Matrix multiplication order was reversed.
- There was no origin set, so rotation was around a vertex (worsened by the wrong matrix multiplication order). Now the cubes rotate around their centre.
2020-03-05 18:49:09 +01:00
Quentin Bazin
63c3313e32 [ClientApplication] Small fix related to -m/--multiplayer. 2020-03-05 11:43:53 +01:00
Quentin Bazin
b0ffedd44b [mods/default] Oak Wood Slab added. 2020-03-04 23:25:19 +01:00
Quentin Bazin
7422018314 [ClientApplication] Argument -m/--multiplayer to start client on multiplayer mode. 2020-03-04 20:42:58 +01:00
Quentin Bazin
06697abda4 [ServerLoadingState] Now used to load registry and texture atlas. 2020-03-04 17:17:02 +01:00
Quentin Bazin
e37fd6aee2 [TitleScreenState] Now centering background. 2020-03-04 15:28:03 +01:00
Quentin Bazin
e0bd3c1a04 [ClientApplication] Removed unnecessary font loading. 2020-03-04 15:04:30 +01:00
Quentin Bazin
72acda9d29 New parameter -s/--singleplayer added to start the client in singleplayer mode. 2020-03-04 14:58:14 +01:00
Quentin Bazin
4c26ec25c5 The client is now capable of running a server in a dedicated thread. 2020-03-04 14:38:31 +01:00
Quentin Bazin
d804aac22e [ServerConnectState] Now uses TextInput instead of gk::TextInput. 2020-03-04 13:18:22 +01:00
Quentin Bazin
10d5154e77 [Config] More options added to hide interface. [TitleScreenState] Background added. 2020-03-04 12:54:20 +01:00
Quentin Bazin
be86e66c7f [Text] Now uses a VBO to display characters. 2020-03-04 11:28:45 +01:00
Quentin Bazin
896460c785 [Font] Class added in order to remove Text::updateCharWidth. 2020-03-03 15:40:46 +01:00
Quentin Bazin
a8542b8da5 [CMakeLists.txt] -ffast-math removed. [GameState|ServerApplicaiton] Now sending updates every 100ms instead of 1000ms. 2020-03-02 21:09:16 +01:00
Pedro Gimeno
a9a3343604 Make server side position of player be doubles 2020-03-02 20:41:47 +01:00
Pedro Gimeno
d1fdb9300e Reduce precision where it's not needed
Should help a bit with network transmission.
2020-03-02 18:56:21 +01:00
Pedro Gimeno
2a071766e1 Speed up face rotation with a table 2020-03-02 16:12:32 +01:00
Quentin Bazin
e2f33fa98d [ChunkBuilder|ClientPlayer] Fixed direction. 2020-03-02 00:56:48 +01:00
Quentin Bazin
ec7ef36d45 Blocks can now be rotated depending on the player direction. 2020-03-02 00:17:28 +01:00
Quentin Bazin
c1becd9ae7 [DebugOverlay] Now displaying player direction and angle. 2020-03-01 23:15:34 +01:00
Quentin Bazin
a9da012d7d Small fix for Visual Studio about DPI awareness code. 2020-03-01 22:32:48 +01:00
Quentin Bazin
79efd51385 Fixed scaling issue on Windows. 2020-03-01 19:44:39 +01:00
Pedro Gimeno
1bd57a0db6 Rewrite collision check loops, fix negative coordinates
Made the loops more robust by looping on integers instead of floats.

The cause for the need to fix negative coordinates was that world.getBlock() was being called with implied truncation towards zero, not with floor. Fixed.
2020-03-01 19:23:40 +01:00
Quentin Bazin
86125bf13e [furnace.lua] Won't use non-fuel items as fuel anymore. 2020-03-01 18:04:50 +01:00
Quentin Bazin
1c21f89caa [MouseItemWidget] Refactored a little bit. 2020-03-01 17:52:35 +01:00
Quentin Bazin
578b5271ac Lots of fixes related to drag-click. 2020-03-01 17:44:53 +01:00
Quentin Bazin
0c71255938 [MouseItemWidget] Now supports drag-click. 2020-03-01 15:45:09 +01:00
Quentin Bazin
908bb10b9b [AbstractInventoryWidget] Now supports multiple destinations. 2020-03-01 12:55:20 +01:00
Quentin Bazin
c092e53116 [Inventory] Now supports using 'addStack' on a subset. 2020-03-01 12:28:26 +01:00
Quentin Bazin
4d9a2fbe7e [LuaGUIState] Now handles Shift+Left click to move items quickly. 2020-03-01 00:15:49 +01:00
Quentin Bazin
7ce30d3e5b [SettingsMenuState] Added menu option to change creative window key. 2020-02-29 18:11:09 +01:00
Quentin Bazin
45c797cd5f Creative window added on key 'H'. 2020-02-29 18:07:01 +01:00
Quentin Bazin
502a4b542d include and source folders merged. 2020-02-29 03:31:14 +01:00
Pedro Gimeno
3ad0b19de4 Add UVs and a texture for Boxy
Thanks to LyoliGamer for providing this texture (CC0)
http://minetest.fensta.bplaced.net/#name=Lyoligamer
2020-02-29 03:04:35 +01:00
Pedro Gimeno
03732e7566 Add joke player "model"
Turns on backface culling too.
2020-02-28 16:54:58 +01:00
Pedro Gimeno
f39229fc30 Lock player when in an unloaded chunk 2020-02-28 16:34:31 +01:00
Pedro Gimeno
1af45d68c4 Use a local position variable for the camera
This makes it easier to change the camera position if necessary.
2020-02-28 16:34:31 +01:00