81 Commits

Author SHA1 Message Date
a65dd2614b Merge pull request 'fix: non-uniform scaling' (#1) from flxw/quality-godot-first-person:fix/non-uniform-scaling into main
Looks fine, will merge.
Reviewed-on: #1
v2.6.1
2025-02-17 18:11:46 -08:00
6b9bc218f0 fix: non-uniform scaling 2025-02-15 14:18:06 +01:00
2885aadf4e Various enhancements, fixes, and tweaks focused on improving the inspector (#34)
* Added Dynamic Gravity Toggle

Added an editor toggle for dynamic gravity so users don't need to uncomment code in character.gd.

* Refactor controls export variables

Changed controls export variables to be a single dictionary so they can be edited completely in the editor without having to open the script. I also refactored the controller support section to allow similar functionality for controller specific controls and removed the need to uncomment/comment out lines of code to turn on/off controller support.

* Add more editor descriptions and implement camera axis inversion options

Added/tweaked export variable descriptions so everything has one. Also slightly refactored the camera input inversion code and added the ability to invert the camera x axis.

* Added direction based landing animations

Added some logic to determine which landing animation to play so it's not random anymore. Also added a land_center animation for the case of neutral landings. This can be expanded if desired, but it's pretty convincing as is and is ulitmately a small detail.

* Correct various grammar and spelling errors

A final pass to clean up any grammatical or spelling errors in the comments

* Re-organized Character.gd

Hope I'm not overstepping here, but I re-organized Character.gd to make it a bit easier to read and work with. Added editor bookmarks and collapsible code regions. It's hard to parse in the diff so I recommend you look at it in Godot proper.

* Commented out debug print statement

I assume this was left uncommented by mistake. I was wondering what was printing that to my console.

* Fixed Landing Animation Logic

I guess I was up too late on my first attempt because it straight up didn't work. This new version works as far as my testing can tell.

* Removed some unused variables
2024-10-25 13:30:03 -07:00
288618e6a3 Update to Godot 4.3 2024-09-27 19:47:50 -07:00
5d45e48931 Merge pull request #29 from austinrdennis/main
Update character.gd for base_speed fix
2024-09-26 12:06:04 -07:00
b59bbb3673 Update character.gd for base_speed fix
base_speed is assigned to speed before the default is updated to what is set in the export variable causing it to be the incorrect value. Calling enter_normal_state() on ready sets speed to the correct value before the player gains control. From my testing, this has no side effects.
2024-09-21 17:31:43 -04:00
b57da3669c fix README 3 2.6 2024-08-20 18:27:22 -07:00
e45406d35c fix README 2 2024-08-20 18:26:05 -07:00
7ace3c48b8 fix README 2024-08-20 18:24:39 -07:00
54a07cc6cf Slope/staircase guide 2024-08-20 18:23:22 -07:00
0e2a12ce5c Fix head rotation 2024-07-24 11:35:05 -07:00
aef3c9c0f9 Fixup #25
Make the PR code more readable and match the style of the codebase
2024-07-24 11:29:38 -07:00
3567b157c0 Improve editor module 2024-07-23 20:18:20 -07:00
6c719b52cc Add a toggle button for the debug panel and clean up some comments 2024-07-23 20:18:20 -07:00
7009032757 Merge pull request #25 from DanielKinsman/invert_pitch
Option to invert mouse/joystick y axis (pitch)
2024-07-23 19:03:48 -07:00
40f5d21452 Option to invert mouse/joystick y axis (pitch) 2024-07-24 11:31:18 +10:00
14a3fb15f0 Remove hardcoded controller sensitivity 2024-07-17 17:25:17 -07:00
bd603973d0 Add descriptions for exported values 2024-07-17 17:21:27 -07:00
a8d151d568 Add controller support to PR #22 2.5.2 2024-07-15 15:10:44 -07:00
b458cba1a1 Rename handle_rotation to handle_head_rotation 2024-07-15 15:10:20 -07:00
4782f80ec2 Merge pull request #22 from Knockturnal/main
Fixed camera jitter
2024-07-15 14:52:49 -07:00
8a398bade0 Fixed camera jitter 2024-07-15 17:24:58 +02:00
28becd88c2 Set default values for crouch and sprint in the script 2.5.1 2024-07-02 08:56:27 -07:00
1f9bbd73b3 Merge pull request #20 from Phlegmlee/main
Removed hardcoded lines (causing the sprint and crouch bug) from Character.tscn
2024-07-02 08:55:18 -07:00
4c0152e688 Merge branch 'ColormaticStudios:main' into main 2024-07-01 22:04:16 -06:00
2d654f7600 Remove hard coded lines
Removed the hard coded lines that were causing the sprint and crouch variables to initialize to lowercase "crouch" and "sprint" instead of user specified values in the script.
2024-07-01 22:03:30 -06:00
6257f07766 Add a comment for check_controls 2024-07-01 19:52:49 -07:00
6a6de243dd Merge pull request #19 from Phlegmlee/main
Removed a stray word in the pause error message.
2024-07-01 19:47:09 -07:00
669c951a81 Remove stray word in error message
Removed the word "move" from the error statement referring to the action PAUSE.
2024-07-01 19:55:15 -06:00
c64deaa27a Remove an accidental printf debug
I had added this here to find out why the  headbob animation reset
without any smoothing, but didn't realize it was there in the latest
commit.
2024-07-01 17:15:56 -07:00
be0001e554 Reset a RESET value, attempt to fix a camera bug 2024-06-21 00:11:36 -07:00
2879337ad2 In-editor tools module 2.5 2024-05-28 20:28:37 -07:00
80476b2757 An empty line 2024-05-28 20:27:52 -07:00
53935057cd Change if to match in mouse capture code 2024-05-28 20:27:12 -07:00
02018a0105 Only reset headbob animation if it is playing when it is not supposed to 2024-05-28 20:26:27 -07:00
c44be3fbfb Only reset vertical head rotation 2024-05-28 20:24:53 -07:00
b928d6c76b Add a lot of comments 2024-05-28 20:23:39 -07:00
468ff36f4d Gravity is now toggleable 2024-05-28 20:21:53 -07:00
12cf4d63ab Add copyright 2024-05-28 20:20:10 -07:00
11958e5020 Add smoothing for jump and land animations if they are interrupted 2.4.1 2024-05-07 15:48:37 -07:00
11b41ea13d Replace initial_facing_direction with a smarter approach (why didn't I think of this the first time) 2024-03-25 20:41:57 -07:00
bb36e697e4 Fix for #8 2024-03-21 16:02:14 -07:00
3349efe6bb Fix README 2.4 2024-03-01 16:18:36 -08:00
0d476da456 Update README for the new reticle system 2024-03-01 16:15:58 -08:00
7de0801802 New reticle system 2024-03-01 16:02:23 -08:00
712836f13c Proper RESET animations 2024-02-29 19:53:23 -08:00
eee84d84cc Immobility isn't a feature 2024-02-29 19:45:26 -08:00
3b78a2fcf8 Animation refresh 2024-02-29 19:36:50 -08:00
f1c9788298 Add a comment explaining a piece of code and tweak the headbob animation 2.3 2024-01-24 16:43:18 -08:00
051b6e837e Now the player cannot jump when there is something in the way 2024-01-20 19:43:41 -08:00