-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Sync "Creating the Enemy" section of Getting Started/First Game 2D tutorial with demo project code #10513
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
Conversation
7c7525e to
72962a8
Compare
| .. code-tab:: gdscript GDScript | ||
|
|
||
| func _on_visible_on_screen_notifier_2d_screen_exited(): | ||
| func _on_VisibilityNotifier2D_screen_exited(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't really a comment on your PR, more a note for myself that I need to check why we're using a non automatically generated function name before this is merged.
1288119 to
af2f8c8
Compare
Updated a GDScript code snippet and an explanation in the "Creating the Enemy" section of the Getting Started/First Game 2D tutorial to ensure consistency with the "Dodge the Creeps" demo project. Update code in "Creating the Enemy" section of First 2D Game tutorial.
af2f8c8 to
51f6a1b
Compare
|
@skyace65 the GDScript and C# versions are now up to date with the "Dodge the Creeps" demo project. No changes were needed for the C# code — only the GDScript required updates. I've also properly adapted the explanation to cover both implementations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted the second change, the reason it's different is that node got renamed in 4.0. The demo repository needs to be updated. Your first change looks good now though!
|
Thanks! |
Closes #10508
Changes made
getting_started/first_2d_game/04.creating_the_enemy.rstto match the "Dodge the Creeps" demo project, specifically aligning it with dodge_the_creeps/mob.gd. Additionally, I refined the explanation related to this code, considering both the GDScript and C# implementations.Note: The C# code was already in sync with dodge_the_creeps/mob.gd, so no changes were made to it.