Skip to content

Conversation

@mateuseap
Copy link
Contributor

@mateuseap mateuseap commented Jan 17, 2025

Closes #10508

Changes made

  • Updated a GDScript code in getting_started/first_2d_game/04.creating_the_enemy.rst to 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.

@mateuseap mateuseap force-pushed the fix/creating-the-enemy branch from 7c7525e to 72962a8 Compare January 17, 2025 08:53
@skyace65 skyace65 added enhancement area:getting started Issues and PRs related to the Getting Started section of the documentation labels Jan 21, 2025
.. code-tab:: gdscript GDScript

func _on_visible_on_screen_notifier_2d_screen_exited():
func _on_VisibilityNotifier2D_screen_exited():
Copy link
Contributor

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.

@mateuseap mateuseap marked this pull request as draft February 1, 2025 22:16
@mateuseap mateuseap force-pushed the fix/creating-the-enemy branch 3 times, most recently from 1288119 to af2f8c8 Compare February 1, 2025 22:28
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.
@mateuseap mateuseap force-pushed the fix/creating-the-enemy branch from af2f8c8 to 51f6a1b Compare February 1, 2025 22:29
@mateuseap mateuseap marked this pull request as ready for review February 1, 2025 22:36
@mateuseap mateuseap requested a review from skyace65 February 1, 2025 22:36
@mateuseap
Copy link
Contributor Author

@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.

Copy link
Contributor

@skyace65 skyace65 left a 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!

@skyace65 skyace65 merged commit d0f7ee6 into godotengine:master Feb 2, 2025
1 check passed
@skyace65
Copy link
Contributor

skyace65 commented Feb 2, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:getting started Issues and PRs related to the Getting Started section of the documentation enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Getting Started / First 2D Game: Creating the enemy out of sync with demo repository

2 participants