Skip to content

Commit

Permalink
🖊️ Speed up turtle (#5838)
Browse files Browse the repository at this point in the history
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

```
  • Loading branch information
jpelay authored Oct 10, 2024
1 parent ecb5490 commit 7dfd7d5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion prefixes/turtle.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
t.penup()
t.left(90)
t.pendown()
t.speed(3)
t.speed(10)
t.showturtle()
2 changes: 1 addition & 1 deletion static/js/appbundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -78136,7 +78136,7 @@ t.hideturtle()
t.penup()
t.left(90)
t.pendown()
t.speed(3)
t.speed(10)
t.showturtle()
`;
var pressed_prefix = `# coding=utf8
Expand Down
2 changes: 1 addition & 1 deletion static/js/appbundle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/js/pythonPrefixes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ t.hideturtle()
t.penup()
t.left(90)
t.pendown()
t.speed(3)
t.speed(10)
t.showturtle()
`;

Expand Down

0 comments on commit 7dfd7d5

Please sign in to comment.