Skip to content

Support Scratch block: "if on edge, bounce" #120

@towerofnix

Description

@towerofnix
Member

Branching off of #18.

Development ongoing in #114 and #119, thanks @HanClinto and @adroitwhiz!

Original implementation in #59 by @apple502j.

Activity

added
supportLeopard doesn't implement a Scratch feature
on Jul 17, 2022
linked a pull request that will close this issueFix for #59: Add if on edge, bounce #114on Jul 18, 2022
another-m00

another-m00 commented on Jun 10, 2023

@another-m00

The offical code for this block is If on edge Bounce. It checks the distance from all sides, and uses tangent to bounce, nothing fancy.

If we have a fencing function that keeps the sprite within bounds I can easily trascribe it if you guys want it.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    supportLeopard doesn't implement a Scratch feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @towerofnix@adroitwhiz@another-m00

      Issue actions

        Support Scratch block: "if on edge, bounce" · Issue #120 · leopard-js/leopard