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

feat: add falling/jump animation #208

Merged
merged 9 commits into from
Feb 2, 2024
Merged

feat: add falling/jump animation #208

merged 9 commits into from
Feb 2, 2024

Conversation

leanmendoza
Copy link
Collaborator

@leanmendoza leanmendoza commented Jan 31, 2024

Fix #184

Todo

@leanmendoza leanmendoza marked this pull request as ready for review February 1, 2024 21:53
else:
prints(animation_player.get_animation_list())
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

gravity = Global.config.gravity
jump_velocity_0 = Global.config.jump_velocity
pass
#walk_speed = Global.config.walk_velocity
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add todo

Copy link
Member

@kuruk-mm kuruk-mm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks great! Just the comments that you already add the 'TODO'


await get_tree().process_frame
await get_tree().process_frame
await get_tree().process_frame

var viewport_img := viewport.get_texture().get_image()

#await get_tree().create_timer(10.0).timeout
# Test: Uncomment this to see how the snapshot would look like
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we execute this behind an arg?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not worth it

@leanmendoza leanmendoza enabled auto-merge (squash) February 2, 2024 17:44
@leanmendoza leanmendoza merged commit d1a3d2b into main Feb 2, 2024
3 checks passed
@leanmendoza leanmendoza deleted the feat/add-jump branch February 2, 2024 17:47
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.

Add jump/falling animation
2 participants