Snaiel / Godot4ThirdPersonCombatPrototype

A prototype project for third person combat. Contains basics for player movement, camera, animations, combat, enemy AI, user interface, sound effects, and background music.
https://www.youtube.com/@Snaiel
MIT License
121 stars 17 forks source link

Type hint all gdscript #2

Closed Flynsarmy closed 10 months ago

Flynsarmy commented 11 months ago

I've type hinted every GDScript var I could find (Hopefully I didn't miss any) for a few reasons:

  1. GDScript runs faster in Godot 4 when it's type hinted
  2. You get to take full advantage of intellisense
  3. You had most of it type hinted already, so doing the rest made the code more consistent
Snaiel commented 10 months ago

Thanks for the contribution! I didn't know about the positive impact on performance :+1: