Skip to content

Commit

Permalink
Merge pull request #237 from mpolasub/curate-proj-football
Browse files Browse the repository at this point in the history
added gallery proj football
  • Loading branch information
amyjko authored Oct 31, 2023
2 parents a8ae4a8 + d59c1a9 commit a8d213c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/examples/examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export function getExampleGalleries(locales: Locales): Gallery[] {
Object.fromEntries(
locale.map((l) => [toLocaleString(l), l.gallery.motion])
),
['Hira', 'Layers', 'Pounce']
['Hira', 'Layers', 'Pounce', 'FootBall']
),
createGallery(
'AV',
Expand Down
36 changes: 36 additions & 0 deletions static/examples/FootBall.wp
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
FootBall
=== start/en
hit/en,golpe/es: Collision('footy' 'ball')

ballPlace/en,bolaLugar/es: Motion(Place(6m 1m) nextvelocity: hit•ø ? ø Velocity(Random(80m/s 100m/s)))

keeperPlace/en,porteroLugar/es: Place(34m 0m) … ∆ Time(1000ms) … (Time(1000ms) % 2) = 0ms ? Place(34m 0m) Place(34m 2.2m)

ballObj/en,bolaObjeto/es: Phrase('⚽' 1m
place: ballPlace
matter: Matter(1kg 1 0 )
name: 'ball')

footObj/en,pieObjeto/es: Phrase('🦶🏻' 1.5m
matter: Matter(mass: 20kg 0.9)
place: Place(Volume() · 10m 0.1m)
name: 'footy')

keeperObj/en,porteroObjeto/es: Phrase('🚶🏻‍♂️' 2m
matter: Matter(mass: 20kg 0.9)
place: keeperPlace
duration: 1s
name: 'keeper')

Stage([
ballObj
footObj
keeperObj

Shape(Rectangle(-2m 0m 40m -1m))
Shape(Rectangle(-2m 8m -1m 0m))
Shape(Rectangle(40m 8m 39m 0m))
Shape(Rectangle(35m 8m 40m 7m))

] background: Color(83% 50 122°)
)

0 comments on commit a8d213c

Please sign in to comment.