47 Commits

Author SHA1 Message Date
Austin Dennis
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
Austin Dennis
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
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
6c719b52cc Add a toggle button for the debug panel and clean up some comments 2024-07-23 20:18:20 -07:00
Daniel Kinsman
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 2024-07-15 15:10:44 -07:00
b458cba1a1 Rename handle_rotation to handle_head_rotation 2024-07-15 15:10:20 -07:00
Knockturnal
8a398bade0 Fixed camera jitter 2024-07-15 17:24:58 +02:00
28becd88c2 Set default values for crouch and sprint in the script 2024-07-02 08:56:27 -07:00
6257f07766 Add a comment for check_controls 2024-07-01 19:52:49 -07:00
Tanner
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
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 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
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 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
24b306145f Fix sprinting issue with toggle sprint 2024-01-20 19:19:13 -08:00
18a862cb9a Randomize the initial direction of the headbob animation 2024-01-20 18:05:15 -08:00
db61d9b4cd Reset speed scale when headbob animation is not playing 2024-01-20 15:17:57 -08:00
2d7972a185 Debug changes 2024-01-20 14:45:12 -08:00
f06d382b3b Crouch fixes 2024-01-20 14:42:32 -08:00
143a4e380d Added a jump and land camera animation 2024-01-19 20:31:04 -08:00
cc58b66cdd Add initial head rotation (fix for issue #5) 2024-01-11 15:01:53 -08:00
04440aefdf Tweak a couple of things 2024-01-09 13:57:39 -08:00
5a4db21337 Much better headbob animation 2024-01-09 12:51:48 -08:00
874ef1f817 Take changes from #2 and apply them with the style of the rest of the code 2024-01-09 09:55:33 -08:00
Colormatic
a1729c1cd5 Fix the rest of #4 derp 2024-01-08 11:58:14 -08:00
Colormatic
01ff47493c Fix for issue #4 2024-01-08 11:42:31 -08:00
1336907578 Reimplement dynamic FOV 2023-12-21 21:48:37 -08:00
26f7e773e2 Much better state machine, crouch ceiling detection and GamePad support 2023-12-19 18:34:49 -08:00
ff67b7fddf VERSION 2 HAS ARRIVED! 2023-12-01 22:26:46 -08:00