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

🖊️ Speed up turtle #5838

Merged
merged 6 commits into from
Oct 10, 2024
Merged

🖊️ Speed up turtle #5838

merged 6 commits into from
Oct 10, 2024

Conversation

jpelay
Copy link
Member

@jpelay jpelay commented Oct 4, 2024

Speeds up the turtle a bit, from the old value of 3 (mapped in the turtle as slow), to 10 (fast). It's faster but not by much I think.

New:
https://github.com/user-attachments/assets/232fbe14-4c12-4e99-a3d2-56ceb453b8ef

Old:
https://github.com/user-attachments/assets/0423c906-6a52-41de-a26e-c774fa6fe6b8

Fixes #5837
How to test

  • Go to level 12 and paste this program
define square
    repeat 4 times
        turn 90
        forward 40
call square
forward 50
call square
forward 50
call square

@Felienne
Copy link
Member

Felienne commented Oct 5, 2024

ow this is so awesome!! I had alway assumed that this was not possible, somehow.

@Felienne
Copy link
Member

Felienne commented Oct 5, 2024

Guess this opens the door to exposing the speed command in Hedy too (I can to that myself!)

@jpelay
Copy link
Member Author

jpelay commented Oct 7, 2024

ow this is so awesome!! I had alway assumed that this was not possible, somehow.

I don't blame you because many things are not possible in Skulpt 😅 I thought that the Decimal library would be available but isnt :c

Copy link
Contributor

mergify bot commented Oct 10, 2024

Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 7dfd7d5 into main Oct 10, 2024
11 checks passed
Copy link
Contributor

mergify bot commented Oct 10, 2024

Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot deleted the speed_turtle branch October 10, 2024 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

🖊️ Speed up turtle?
3 participants