Skip to content
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

Dodge the Creeps Enemies Unable to Move Further Right #8

Open
thomastthai opened this issue Jan 16, 2025 · 2 comments
Open

Dodge the Creeps Enemies Unable to Move Further Right #8

thomastthai opened this issue Jan 16, 2025 · 2 comments

Comments

@thomastthai
Copy link
Contributor

There seem to be some bugs that are keeping the enemies from going further right. When they spawn in the upper left corner, they move faster. As they travel right, they slow down and eventually aren't able to move further.

The game started in a small window on a MacBook Pro with Apple Silicon CPU. I maximized the window and moved the player to the right side of the screen and let it sit there.

image

Letting the game run for a while, the enemies seem to be bounded by a certain radius with the center at the upper left corner.

image
@Splizard
Copy link
Contributor

Splizard commented Jan 16, 2025

The enemies are spawning in a fixed path2D area with fixed velocities which decrease over time, this example is a fairly 1:1 port of the Godot example with the same name, I think it is missing some of the project.godot settings from the Godot example that was ported over, I'm not particularly opposed against making changes to this to make it more Go code-first rather than having things configured in the editor.

In which case enemies should probably spawn from outside the screen and maintain fixed velocities traveling across the screen until they escape from view in which case they can be deleted.

@thomastthai
Copy link
Contributor Author

I'm still learning Godot and this Godot Go binding. Once I have a better understanding, I can help if the issue isn't fixed by then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants