-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to godot 4 #18
Conversation
Answer:
|
New directory in godot 4
Add new font import This was done by opening upgraded project in editor for the first time
Editor said that scene is "broken" when opening it for the first time Had to remake by hand
By opening them in editor for the first time
String ctor with int parameter was removed in godot 4
Those are built-in functions so rename our functions to avoid \ overriding them
Add calls to super() Add spaces between parameters
Fix later Remove tween nodes
c6ae5fe
to
ab23c4a
Compare
Reconnect element_changed signal Fix mixed tab/spaces
Zoom values were inverted in godot 4
Fix later
In godot 3, parent class _ready() was implicitly called This is not the case for godot 4 anymore Add explicit calls to _ready() For towers and items, add separate init functions to avoid mistakes \ around forgetting super() calls in tower/item scripts
By opening in editor for the first time
font_size was added in godot 4
Use width not height and divide by 4 not 2
Autotiles cannot be converted automatically: godotengine/godot#64006 |
To ui_accept and ui_cancel
Modify FloatingText tweens slightly
f1bb2fe
to
e6a888a
Compare
Don't need to call randomize() randi_range() was added to godot 4
Restore original animation speed Scale down pulse texture Fix tower preview modulate applying to range indicator as well, \ apply it only to tower visual
YSort was removed in godot 4 Turn on y_sort_enabled for MobYSort node to approximate old effect
Unresolved issues:
Useful link listing all of the things that converter does incorrectly:
godotengine/godot#73960