Skip to content

SimpleCharacter: Use methods for player movement #118

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

Merged
merged 2 commits into from
Jul 5, 2024

Conversation

manuq
Copy link
Contributor

@manuq manuq commented Jul 5, 2024

Add 2 methods and call them, instead of having the implementation in the code template ("statement" property).

This improves a bit when serializing the implementation. But most importantly, allows the 2 blocks to be added to the same node without a collision on the var dir being declared twice.

manuq added 2 commits July 5, 2024 15:49
Add 2 methods and call them, instead of having the implementation in the
code template ("statement" property).

This improves a bit when serializing the implementation. But most
importantly, allows the 2 blocks to be added to the same node without a
collision on the var dir being declared twice.
Make player 1, player 2 options, defaulting to player 1. And add default
to speed too. A speed of Vector2(300,300) is very opinionated but seems
fine for the default project viewport.
@dylanmccall dylanmccall merged commit 4e75147 into main Jul 5, 2024
@dylanmccall dylanmccall deleted the simple-character-improvements branch July 5, 2024 19:15
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

Successfully merging this pull request may close these issues.

2 participants