aboutsummaryrefslogtreecommitdiff
path: root/src/client/game.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Show status message when changing block bounds (#11556)Wuzzy2021-08-211-1/+18
|
* Add fwgettext util functionrubenwardy2021-08-191-31/+12
|
* Add bold, italic and monospace font styling for HUD text elements (#11478)sfan52021-07-271-0/+3
| | | Co-authored-by: Elias Fleckenstein <eliasfleckenstein@web.de>
* Distribute shadow map update over multiple frames to reduce stutter (#11422)x20482021-07-251-14/+3
| | | | | | | | | | Reduces stutter and freezes when playing. * Maintains double SM and SM Color textures * Light frustum update triggers incremental generation of shadow map into secondary 'future' textures. * Every incremental update renders a portion of the shadow draw list (split equally). * After defined number of frames (currently, 4), 'future' and 'current' textures are swapped, and DirectionalLight 'commits' the new frustum to use when rendering shadows on screen. Co-authored-by: sfan5 <sfan5@live.de>
* Fix revoke debug privs not reliably turn off stuff (#11409)Wuzzy2021-07-121-6/+12
|
* Avoid draw list and shadow map update in the same frame to reduce dtime ↵x20482021-07-111-3/+14
| | | | | | | | | | jitter (#11393) * Separate draw list and shadows update to reduce jitter * Avoid draw list update and shadow update in the same frame * Force-update shadows when camera offset changes
* Require 'basic_debug' priv to view gameplay-relevant debug info, require ↵Wuzzy2021-06-241-8/+51
| | | | | 'debug' priv to view wireframe (#9315) Fixes #7245.
* Shadow mapping render pass (#11244)Liso2021-06-061-1/+36
| | | Co-authored-by: x2048 <codeforsmile@gmail.com>
* fix: some code tidy about includes & irr namespacesLoic Blot2021-05-031-39/+39
|
* refacto: remove get_gui_env & draw_load_screen from RenderingEngine singletonLoic Blot2021-05-031-12/+12
|
* refacto: Hud: make driver, client, player, inventory, tsrc private & drop ↵Loic Blot2021-05-031-1/+1
| | | | | | unused guienv also fix c_content.h, on client it includes the src/client/hud.h instead of src/hud.h, which leads to wrong file dependency on the lua stack
* refacto: protect some RenderingEngine::get_scene_managerLoic Blot2021-05-031-41/+42
| | | | | * protect it from Camera, Sky, ClientMap object calls * rename Game::sky to Game::m_sky
* refacto: RenderingEngine is now better hiddenLoic Blot2021-05-031-25/+29
| | | | | | | | | | * No more access to the singleton instance from everywhere (RenderingEngine::get_instance dropped) * RenderingEngine::get_timer_time is now non static * RenderingEngine::draw_menu_scene is now non static * RenderingEngine::draw_scene is now non static * RenderingEngine::{initialize,finalize} are now non static * RenderingEngine::run is now non static * RenderingEngine::getWindowSize now have a static helper. It was mandatory to hide the global get_instance access
* refacto: hide mesh_cache inside the rendering engineLoic Blot2021-05-031-24/+1
| | | | This permit cleaner access to meshCache and ensure we don't access to it from all the code
* refacto: rendering engine singleton removal step 1 (filesystem)Loic Blot2021-05-031-1/+1
| | | | | | | | Make the RenderingEngine filesystem member non accessible from everywhere This permits also to determine that some lua code has directly a logic to extract zip file. Move this logic inside client, it's not the lua stack role to perform a such complex operation Found also another irrlicht <1.8 compat code to remove
* Add a key to toggle map block bounds (#11172)Seth Traverse2021-04-201-0/+2
| | | | It's often useful to know where the map block boundaries are for doing server admin work and the like. Adds three modes: single mapblock, range of 5, and disabled.
* Don't apply connection timeout limit to locally hosted serverssfan52021-04-051-1/+1
| | | | fixes #11085
* Game: Scale damage flash to max HPSmallJoker2021-04-051-4/+8
| | | | The flash intensity is calculated proportionally to the maximal HP.
* Irrlicht support code maintenancesfan52021-03-311-23/+0
|
* Consistent title bar + render information in mainmenu (#10764)SmallJoker2021-03-301-0/+12
|
* Restore minimal normal texture support (for minimap shading)Vitaliy2021-03-211-1/+4
|
* Scale mouse/joystick sensitivity depending on FOV (#11007)Elias Åström2021-03-191-4/+19
|
* Use place_param2 client-side for item appearance & prediction (#11024)sfan52021-03-091-18/+18
|
* Clean up ClientEvent hudadd/hudchange internalssfan52021-03-061-82/+41
|
* Pause animations while game is paused (#10658)Vitaliy2021-03-051-0/+40
| | | Pauses all mesh animations while game is paused.
* Fix hud_change and hud_remove after hud_add (#10997)savilli2021-02-261-9/+21
|
* Use "Aux1" key name consistently everywhereWuzzy2021-02-241-2/+2
|
* Pause menu: Fix segfault on u/down key inputJean-Patrick Guerrero2021-02-081-7/+1
|
* Fix some minor code issues all over the placesfan52020-12-241-31/+5
|
* Fix some more joystick issues (#10624)Markus2020-12-191-2/+2
|
* Cleanup shader generation code (#10663)Vitaliy2020-12-191-5/+1
| | | Shader generation is a mess. This commit cleans some parts up, including dropping remains of HLSL support which was never actually implemented.
* Input: Fix on_rightclick called when placing into airSmallJoker2020-11-291-0/+3
|
* Sky: support GLES2numzero2020-11-261-1/+7
| | | | IrrLicht built-in shader is broken, have to write my own
* Add sound to press event of some formspecs elements (#10402)Pierre-Yves Rollo2020-11-231-6/+6
|
* Joystick: Remap joystick-specific KeyTypes to generic onesMarkus Koch2020-11-091-10/+6
| | | | | | | | | | | | | | According to the following table: * MOUSE_L -> DIG * MOUSE_R -> PLACE * SCROLL_UP -> HOTBAR_NEXT * SCROLL_DOWN -> HOTBAR_PREV This commit entirely removes the special KeyTypes used for joysticks. Support for the MOUSE KeyTypes had already been removed in the main game code without adapting the joystick code, breaking joystick input. This commit restores joystick functionality.
* Fix Media... 0% on loading screen (#9478)Maksim2020-10-211-1/+4
|
* Periodically release all mesh HW buffers to avoid an Irrlicht bottleneck.Lars2020-10-171-1/+22
|
* Remove all bump mapping and parallax occlusion related code.Lars2020-10-171-9/+1
|
* Minimap as HUD element with API controlPierre-Yves Rollo2020-10-041-46/+29
| | | | | | | Features: * Define Minimap available modes (surface/radar, scale) from Lua, using player:set_minimap_modes() * New HUD elements for displaying minimap with custom size and placing * New minimap mode for displaying a texture instead of the map
* Add First Person Attachments (#10360)Jordan Snelling2020-10-041-1/+2
| | | | | | Fixes some other third person camera specific attachments. Implements a single new flag for entities to be forced visible in first person mode. Old mods do not need to be updated to use the new flag and are fully backwards compatible.
* Reduce the FPS when the window is unfocused (#8837)HybridDog2020-10-031-3/+4
|
* Properly handle mod-errors in on_shutdownDesour2020-08-241-1/+2
|
* Allow binding dig, place actions to keys; remove LMB/RMB hardcodingANAND2020-08-151-78/+86
| | | | Co-authored-by: Sam Caulfield <sam@samcaulfield.com>
* Play place_failed sound if occupied or cannot attach (#9486)Wuzzy2020-07-271-0/+2
|
* Add object crosshair, disable entity selectionboxes by default (#9523)LoneWolfHT2020-07-141-0/+3
| | | | Adds new object crosshair base pack texture
* Cleanup ClientLauncher structure (#10160)SmallJoker2020-07-141-65/+37
| | | Remove duplicated variables and unify the startup data into a new (inherited) struct.
* Exposing the zoom key to Lua API (#9903)Lars Müller2020-06-131-2/+3
| | | Co-authored-by: Raul Ferriz <raul.ferriz@gmail.com>
* TouchScreenGUI: fix some bugs, cleanupMoNTE482020-06-091-0/+4
|
* Value copy / allocation optimizations mostly in server, SAO and serialize codesfan52020-05-271-1/+1
|
* Add chat_log_level setting (#9223)SmallJoker2020-05-141-11/+5
| | | | | Log all higher levels in LogOutputBuffer Move StreamLogOutput::logRaw to source file like LogOutputBuffer::logRaw for compiling speed