Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed May 28, 2024
2 parents d9fc877 + 500aa37 commit ab0f191
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions static/examples/BasketballStar.wp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ basketball: Phrase(
basketXPlace: Random(-9000m 9000m) ÷ 1000 … (click & ((clickCount % 2) = 1)) … Random(-9000m 9000m) ÷ 1000

`` Keep track of scores and attempts ``
score: 0 … (click & ((clickCount % 2) = 1) & ((basketXPlace + 1m) > basketball.place.x) & ((basketXPlace - 1m) < basketball.place.x)) … 1 + .
score: 0 … (click & ((clickCount % 2) = 1) & ((basketXPlace + 0.81m) > basketball.place.x) & ((basketXPlace - 0.8m) < basketball.place.x)) & (2.1m > basketball.place.y) … 1 + .

attempt: (clickCount ÷ 2).roundUp()

basketballStar: Group(Stack() [
Expand All @@ -38,4 +39,4 @@ Stage(
]
place: Place(x: 0m y: 5m z: -10m)
gravity: 5m/s^2
)
)

0 comments on commit ab0f191

Please sign in to comment.