91 Commits

Author SHA1 Message Date
Pedro Gimeno
4f37012931 Camera improvements
- Remove the degenerate case of vertical directions, by updating the viewup as the camera moves.
- Remove the consequent limitation to 89.9 degrees.
- Add (unused so far) camera roll angle, with setter.
- Add accessors for all angles. Lua will want to know that.
- Rename m_angleV/H to m_viewAngleV/H to distinguish them clearly from the orientation of the mesh. They will differ e.g. when the player is sitting somewhere.
- Rename vertical turn so it includes 'view' in the name, because this one does not affect the player's rotation as turnH does.
- Make player look north at start, like it originally did before the Z-up changes.
2020-02-24 17:06:27 +01:00
Quentin Bazin
4fc45e3d93 [GameState] The game will now be paused it the window lose the focus. 2020-02-24 23:23:27 +09:00
Quentin Bazin
7e38907854 [SettingsMenuState] It's now possible to disable VSync. 2020-02-24 23:16:51 +09:00
Quentin Bazin
7c9b72b137 [Config|SettingsMenuState] Added option to disable BlockInfoWidget. 2020-02-24 22:43:31 +09:00
Pedro Gimeno
4bb12c872f Precision improvements (Part 1)
Improve rendering precision by subtracting the camera position from the models' position, then temporarily setting the camera to (0, 0, 0) for rendering. This keeps GL coordinates in a low range.
2020-02-24 11:16:19 +01:00
Quentin Bazin
75f9bc6dbd [ClientWorld] Teleportation and fast movement won't stop the world from loading. Fixes #50. 2020-02-24 18:53:21 +09:00
Quentin Bazin
879dc28eb2 [FurnaceWidget] Removed. Now completely implemented in Lua. 2020-02-23 22:38:51 +09:00
Quentin Bazin
47b7e3d849 [PlayerCraftingWidget] Removed, implemented completely using Lua. 2020-02-23 18:24:19 +09:00
Quentin Bazin
3399b71de1 [LuaWidgetDef] Added 'resultX' and 'resultY' parameters to 'CraftingWidget' and 'PlayerCraftingWidget'. 2020-02-23 18:00:20 +09:00
Quentin Bazin
904152e1aa [PlayerInventoryWidget] Removed, only PlayerCraftingWidget isn't coded in Lua. 2020-02-22 22:50:27 +09:00
Quentin Bazin
3cffbc9547 [ChatState] Can now be opened with a slash by using numpad slash. 2020-02-22 03:44:12 +09:00
Quentin Bazin
884562cb36 [Client] Handles disconnection correctly now. 2020-02-22 02:56:55 +09:00
Quentin Bazin
cac41afdfa [GameState] Now uses GameKey::Chat instead of hardcoded keycode. 2020-02-22 02:16:19 +09:00
Quentin Bazin
bb0c8e8d49 [ServerCommandHandler] Now supports teleportation command. 2020-02-22 01:44:00 +09:00
Quentin Bazin
ec15fec087 [ChatMessage] Added. Messages now have timeout. 2020-02-22 00:31:11 +09:00
Quentin Bazin
e08af87563 [Chat] Added to render messages sent from server. 2020-02-21 17:50:45 +09:00
Quentin Bazin
2f827df14b [Network] 'ChatMessage' packet added. 2020-02-21 17:25:56 +09:00
Quentin Bazin
676f0937ec [ChatState] TextInput is now positionned correctly. 2020-02-21 16:33:52 +09:00
Quentin Bazin
8b906d1685 [TextInput] Fixed background. [InterfaceState] Added setting to be able to not display the background. 2020-02-21 16:33:52 +09:00
Quentin Bazin
2ecbdec6bb [ChatState|TextInput] Added. 2020-02-21 16:33:52 +09:00
Pedro Gimeno
9a1b193be9 Use Z for up (Part 3)
Fix camera, player movement, and bounding boxes.
2020-02-21 03:00:27 +01:00
Pedro Gimeno
780b39605f Adapt the code to the latest changes in GameKit 2020-02-19 20:11:30 +01:00
Pedro Gimeno
cda1948bb6 Convert Rect instances to new axis-convention-neutral form as well 2020-02-19 17:14:41 +01:00
Quentin Bazin
cb356b4a3b Shaders don't use blockID anymore. Fixes #48. 2020-02-19 19:30:07 +09:00
Quentin Bazin
0757e518fb [TitleScreenState] Now updated when window size is changed. 2020-02-18 18:54:58 +09:00
Quentin Bazin
93cd68ffe9 [Config] Moved to client. SCREEN_WIDTH, SCREEN_HEIGHT and GUI_SCALE renamed. [EngineConfig] Added for common config. 2020-02-15 22:48:56 +09:00
Quentin Bazin
e798541304 [SettingsMenuState] Added 'Resolution' setting. 2020-02-15 22:25:29 +09:00
Quentin Bazin
457140b06a Fixed Clang warnings. 2020-02-15 20:22:10 +09:00
Quentin Bazin
8e11b78e86 [TODO] Updated. 2020-02-09 23:46:00 +09:00
Quentin Bazin
b7bb8f1d52 Replaced my custom headers by LGPL license headers. 2020-02-08 18:34:26 +09:00
Quentin Bazin
5ffbfe0c13 [LuaGUIState] Small fix. [ServerWorld|ServerChunk] Fixed BlockData position sending. 2020-02-08 14:36:22 +09:00
Quentin Bazin
442bafca68 [InventoryState] Replaced by 'show_inventory' function in init.lua. 2020-02-08 02:48:39 +09:00
Quentin Bazin
a351ca862a [CraftingWidget] Small improvement. [ServerBlock] Preparing future block features. 2020-02-03 14:11:18 +09:00
Quentin Bazin
0b36dabb5e [ChunkBuilder] Fixed AO anisotropy issue. [SettingsMenuState] Ambient occlusion is now available again. 2020-02-01 16:12:49 +09:00
Quentin Bazin
5b2a1758ef Now using filenames instead of IDs when loading/retrieving textures. 2020-01-31 16:44:27 +09:00
Quentin Bazin
2d417f6eaa [GameState|HUD|InterfaceState] Fullscreen and resize handling added. 2020-01-27 15:33:06 +09:00
Quentin Bazin
8922f53e2a [Config] Tweaked mouse sensivity and added menu option for it. 2020-01-26 16:03:43 +09:00
Quentin Bazin
4c3b55de1c [TerrainGenerator] Working on new terrain generation. [SimplexNoise] Added. 2020-01-25 17:26:29 +09:00
Quentin Bazin
3eda95a0ad [PauseMenuState] Small fix. 2020-01-25 16:38:45 +09:00
Quentin Bazin
b9ec32ec71 [GameState] Now using a 70° FOV. 2020-01-25 15:29:37 +09:00
Quentin Bazin
6315216e66 Removed useless code. 2020-01-22 09:22:47 +09:00
Quentin Bazin
f45050ba59 [ServerLoadingState] Now used before login when using 'ServerWorld::sendWorldData'. 2020-01-10 16:08:57 +09:00
Quentin Bazin
3d126bd9bf [SettingsMenuState] 'Esc' key issue fixed. 2019-12-30 21:08:25 +09:00
Quentin Bazin
391faca604 [TODO|README.md] Updated. 2019-12-30 19:00:59 +09:00
Quentin Bazin
182f9d7af0 [ChunkBuilder|ChunkLightmap] Fixed torchlight issues. Related to #21. 2019-12-30 06:59:10 +09:00
Quentin Bazin
6b871ea451 [README.md] Updated. 2019-04-13 15:52:25 +02:00
Quentin Bazin
0cc6cbb873 Updated for new GameKit version. 2019-04-13 15:06:52 +02:00
Quentin Bazin
1b373d9c2a [KeyboardHandler] Replaced by gk::KeyboardHandler. 2019-04-08 20:22:35 +02:00
Quentin Bazin
fc3211b481 [ServerConnectState] 'Cancel' button added. 2019-04-08 19:44:05 +02:00
Quentin Bazin
4630a25e02 [ServerConnectState] Added. 2019-04-08 19:39:34 +02:00