aboutsummaryrefslogtreecommitdiff
path: root/src/client/game.cpp
AgeCommit message (Collapse)Author
2023-03-07Add keybind to swap items between handsHEADdual_wieldingElias Fleckenstein
2023-03-07Dual wieldingLizzy Fleckenstein
2023-03-01Drop dependency on IrrCompileConfignumzero
The only remaining thing is IRRLICHT_SDK_VERSION via irrlicht.h
2023-02-27Add minetest.get_player_window_information() (#12367)rubenwardy
2023-02-26Sky: transmit body_orbit_tilt to client. (#13193)sofar
This obsoletes the current client-side setting entirely. The server can transmit the tilt to the client directly and will send 0.0f as default value. Co-authored-by: x2048 <codeforsmile@gmail.com> Co-authored-by: sfan5 <sfan5@live.de>
2023-02-20Add chat HUD flag (#13189)Alex
2023-02-18Remove dead code behind Irrlicht version checkssfan5
2023-01-23Decrease minimum for repeat_place_time (#13165)DS
2023-01-08Fix crash on Android with IrrlichtMt9 (#13123)ROllerozxa
Caused by mouse control
2023-01-08Clamp player wieldindex when processing hotbar item selection (#13098)iliekprogrammar
2023-01-06Add dynamic exposure correction (#12959)x2048
* Add uniform for frame delta time * Adjust exposure in logarithmic (EV) space * Add network support and LUA API * Add testing mod
2023-01-06Occlusion culling algorithm based on recursive descend (#13104)x2048
Co-authored-by: DS <vorunbekannt75@web.de>
2022-12-25Allow saturation to be controlled by the server. (#13075)lhofhansl
2022-12-25Fully remove pageflip 3D mode (#13074)ROllerozxa
2022-12-24Set and unset relative mouse mode where necessary (#12636)ndren
* Set and unset relative mouse mode where necessary Co-authored-by: sfan5 <sfan5@live.de>
2022-12-10Avoid out-of-bounds memory access in attached node placement prediction (#13038)Jude Melton-Houghton
2022-11-30Android: Segmentation fault fix, PendingIntent flag, and other fixes (#12960)Muhammad Rifqi Priyo Susanto
* Android: Segmentation fault fix, PendingIntent flag, and other fixes - Information about the crosshair is sent after camera initialization. - Since API 31, PendingIntent requires mutability flag. - super (class) is called in onRequestPermissionsResult(). - GameActivity suppresses "unused" warning since most of its methods are called from native code. - Non-null safety is added for nullable function calls. - Warning/error logging is added for various function calls' return value. * Move utility functions into Utils.java - Some nullable functions are changed to be non-null functions. - Some null checking outside it is removed. - More annotations are added to functions and parameters.
2022-11-24Add support for attached facedir/4dir nodes (#11432)Wuzzy
2022-11-18Add configurable saturation (#12865)lhofhansl
* Add configurable saturation Co-authored-by: Pevernow <3450354617@qq.com> Co-authored-by: x2048 <codeforsmile@gmail.com> Author: Lars <larsh@apache.org>
2022-11-09Resize hotbar immediately before drawing (#12930)x2048
2022-11-09Fix typos and en_US/en_GB inconsistency in various files (#12902)Abdou-31
2022-11-02Improve bloom effect (#12916)x2048
* Remove the built-in exposure factor of 2.5 * Add physics-based bloom (https://learnopengl.com/Guest-Articles/2022/Phys.-Based-Bloom) * Add luminance scaling for bloom layer to simulate HDR * Add setting to control bloom strength
2022-10-31Send crosshair setting after the touch screen GUI has been initialized (#12910)Muhammad Rifqi Priyo Susanto
2022-10-30Allow rotating entity selectionboxes (#12379)Lars Müller
2022-09-30Implement tool use soundssfan5
2022-09-30Clean up Game::handleDigging() and some related partssfan5
2022-09-30Improve double tap for jump detection (#12793)Muhammad Rifqi Priyo Susanto
2022-09-29Bloom (#12791)x2048
Adds configurable light exposure control and bloom effect (light bleeding) with client-side settings.
2022-09-29Add crosshair support for Android (#7865)Muhammad Rifqi Priyo Susanto
If enabled, a crosshair will be shown to select object. This will give Android players a way to play like they play on desktop. On third-person back camera mode, player is forced to use crosshair. On third-person front camera mode, player is unable to select anything. Co-authored-by: ROllerozxa <temporaryemail4meh+github@gmail.com> Co-authored-by: rubenwardy <rw@rubenwardy.com>
2022-09-27Pause shader animation timer in singleplayer pause menu (#12766)DS
Co-authored-by: sfan5 <sfan5@live.de>
2022-09-16Add paramtype2s for 4 horizontal rotations and 64 colors (#11431)Wuzzy
4dir is like facedir, but only for 4 horizontal directions: NESW. It is identical in behavior to facedir otherwise. The reason why game makers would want to use this over facedir is 1) simplicity and 2) you get 6 free bits. It can be used for things like chests and furnaces and you don't need or want them to "flip them on the side" (like you could with facedir). color4dir is like colorfacedir, but you get 64 colors instead of only 8.
2022-09-06Code optimizations / refactor (#12704)Herman Semenov
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com> Co-authored-by: sfan5 <sfan5@live.de>
2022-08-17Use Sky class to obtain directional light source position for shadows (#12662)x2048
* Also remove unused Sky::getSkyBodyOrbitTilt method Fixes misalignment of sun position and shadow direction at high tilt values.
2022-08-13Reduce the use of porting::getTimeMs() when rendering frames (#12679)x2048
* Avoid calling TimeTaker too frequently in renderMapXXX * Calculate animation timer once per frame * Remove code that breaks rendering frame at 2000ms Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: sfan5 <sfan5@live.de>
2022-07-30Fix some warnings (#12615)rubenwardy
2022-07-29Allow direction keys with autoforward againsfan5
This was unintentionally removed in commit 1d69a23. fixes #12048
2022-07-19Restore flags texture to fix interlaced stereo mode (#12560)x2048
2022-07-09Enforce limits of settings that could cause buggy behaviour (#12450)SmallJoker
Enforces the setting value bounds that are currently only limited by the GUI (settingtypes.txt).
2022-07-02Allow to set maximum star opacity at daytime (#11663)Wuzzy
2022-06-26Fix two memleak reports from Coverity (#12466)JosiahWI
2022-06-20Re-order sound-related code (#12382)SmallJoker
Dropped ServerSoundParams -> moved to ServerPlayingSound. This gets rid of the duplicated 'fade' and 'pitch' values on server-side where only one was used anyway. SimpleSoundSpec is the basic sound without positional information, hence 'loop' is included. Recursively added PROTOCOL_VERSION to most functions to reduce the versioning mess in the future. Per-type version numbers are kept for now as a safety rope in a special case.
2022-06-11No damage effects on hp_max change (#11846)Lars Müller
2022-06-05Add register dialog to separate login/register (#12185)rubenwardy
New users find Minetest's account system confusing. This change moves username/password to a new dialog, with login and register buttons added to the Join Game tab. The old registration confirmation dialog is removed in favour of the new dialog. Fixes #8138
2022-06-03Properly keep noclip state in Game and ClientMapsfan5
2022-05-09HUD: Update selection mesh every frame (#12270)Lars Müller
Fixes outdated selection boxes after entity property changes.
2022-05-04Make logging cost free when there is no output target (#12247)paradust7
The logging streams now do almost no work when there is no output target for them. For example, if LL_VERBOSE has no output targets, then `verbosestream << x` will return a StreamProxy with a null target. Any further `<<` operations applied to it will do nothing.
2022-05-03Fix broken FPS/dtime counters in debug infosfan5
was broken by a89afe1229e327da3c397a3912b2d43d2196ea2b
2022-04-30Deal with compiler warningssfan5
2022-04-28Remove HW_buffer_counter after IrrlichtMt fix to remove HWBufferMap (#12232)paradust7
Keep code and use version check instead, for backwards compatibility
2022-04-21Fix some debug info showing despite being disabled in the UI (#12205)Lars Müller