21 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
0e2a12ce5c Fix head rotation 2024-07-24 11:35:05 -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
Tanner
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
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 2024-05-28 20:28:37 -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
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
14c731d29a Reset values to default 2024-01-20 19:23:14 -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
5a4db21337 Much better headbob animation 2024-01-09 12:51:48 -08:00
26f7e773e2 Much better state machine, crouch ceiling detection and GamePad support 2023-12-19 18:34:49 -08:00
4207b61075 Remove the hidden reticle and hide the debug panel 2023-12-02 15:04:20 -08:00
ff67b7fddf VERSION 2 HAS ARRIVED! 2023-12-01 22:26:46 -08:00