<h2>(font:"Comic Sans MS")[(text-style:"italic")[(text-colour:(either:"gold"))[Whack-A-Duck!]] ]</h2>
<div id="Duckscreen">
</div>
|=
Hit as many rubber ducks as possible to score the most points.
=|
(if: (history:) contains "Whack-A-Duck")[<h4>High score: $hiscore</h4>]
|==|
(link:"Begin")[(set:$mallet to "on")
(if:$mallet is "on")[You have one minute.
(event:when time > 0.5s)[(show:?red,?time)]
|time)[{(live:1s)[(set:$timer to it + 1)(if: $timer > 70)[(stop:)]]}]|red)[(text-style:"fade-in-out")[<h1>Ready</h1>]](event:when $timer > 1)[(replace:?red)[(text-style:"rumble")[<h1>Go!</h1>]]](event:when $timer > 2)[(replace:?red)[(display:"Duck Game")(show:?score)]]
|score)[{(live:0.5s)[(replace:?points)[$hpoints]]}
|=
Points: |points)[]
=|
|hiscore)[High score: |hipoints)[] ]
|==|
]
(event:When $timer > 70)[Congratuations! You have won $hpoints points.
(if:$hpoints > $hiscore)[(set:$hiscore to $hpoints)](show:?hiscore)(replace:?hipoints)[$hiscore](replace:?red)[(display:"Duck Game End")]
(text-colour:#ff0)[(text-style:"emboss","expand","fidget")[(font:"Comic Sans MS")[
|=
(link-reveal-goto:"Main Menu","Main Menu")[(set:$hpoints to 0)(set:$timer to 0)(set:$mallet to "off")]
=|
(link-reveal-goto:"Play again","Whack-A-Duck")[(set:$hpoints to 0)(set:$timer to 0)(set:$mallet to "off")]
|==|
] ] ]
] ] ]
<div class="Duck">
|=
{(live:3s)[(either:"Hole",(display:"Duck Obj"))]}
=|=
{(live:3s)[(either:"Hole",(display:"Duck Obj"))]}
=|
{(live:3s)[(either:"Hole",(display:"Duck Obj"))]}
|==|
|=
{(live:3s)[(either:"Hole",(display:"Duck Obj"))]}
=|=
{(live:3s)[(either:"Hole",(display:"Duck Obj"))]}
=|
{(live:3s)[(either:"Hole",(display:"Duck Obj"))]}
|==|
|=
{(live:3s)[(either:"Hole",(display:"Duck Obj"))]}
=|=
{(live:3s)[(either:"Hole",(display:"Duck Obj"))]}
=|
{(live:3s)[(either:"Hole",(display:"Duck Obj"))]}
|==|
</div>
<div class="Duck">
|=
Hole
=|=
Hole
=|
Hole
|==|
|=
Hole
=|=
Hole
=|
Hole
|==|
|=
Hole
=|=
Hole
=|
Hole
|==|
</div>
(transition:"pulse")[(link:"Duck")[Bonk!(set:$hpoints to it + 1)]]|=
=|=
<img src="https://i.pinimg.com/originals/3d/7c/5e/3d7c5e370eda3065255ba92f9833898e.png" alt="rubber ducky" width=250px height=250px />
=|
|==|
(align:"=><=")+(box:"X")[ <h2>(font:"Comic Sans MS")[(text-style:"italic")[(text-colour:(either:"gold"))[(text-style:"buoy")[W](text-style:"fidget")[h](text-style:"buoy")[a](text-style:"fidget")[c](text-style:"buoy")[k](text-style:"fidget")[-](text-style:"buoy")[A](text-style:"fidget")[-](text-style:"buoy")[D](text-style:"fidget")[u](text-style:"buoy")[c](text-style:"fidget")[k]!]] ]</h2>]
<div id="Duckscreen">
</div>
(align:"=><=")+(box:"=XXXXXXXX=")[Choose your dificulty.]
|=
(align:"=><=")+(box:"X=")[<h3>(text-colour:#0f0)+(bg:(gradient: 0, 0,#008000,0.5762,#000000,1,#80ff80))[ (text-style:"italic","emboss","expand","fade-in-out")[(font:"Comic Sans MS")[ [[Easy->Wack-a-duck easy]] ] ] ]</h3>]
(font:"Comic Sans MS")[(if:(history:) contains "Wack-a-duck easy")[(align:"=><=")+(box:"X=")[(text-colour:#0f0)[High score: $ehiscore ] ] ] ]
=|=
(align:"=><=")+(box:"XXXX=")[<h3>(text-colour:#178bff)+(bg:(gradient: 0, 0,#0000a0,0.5762,#000000,1,#80ffff))[(text-style:"italic","emboss","expand","fade-in-out")[(font:"Comic Sans MS")[ [[Medium->Whack-A-Duck]] ] ] ]</h3>]
(font:"Comic Sans MS")[(if:(history:) contains "Whack-A-Duck")[(align:"=><=")+(box:"X=")[(text-colour:#1acae3)[ High score: $hiscore] ] ] ]
=|
(align:"=><=")+(box:"XXX==")[<h3>(text-colour:#fa5252)+(bg:(gradient: 0, 0,#b81007,0.5762,#000000,1,#ff8080))[(text-style:"italic","emboss","expand","fade-in-out")[(font:"Comic Sans MS")[ [[Hard->Whack a duck hard]] ] ] ]</h3>]
(font:"Comic Sans MS")[(if:(history:) contains "Whack a duck hard")[(align:"=><=")+(box:"X=")[(text-colour:#f00)[ High score: $hhiscore] ] ] ]
|==|<h2>(font:"Comic Sans MS")[(text-style:"italic")[(text-colour:(either:"gold"))[Whack-A-Duck!]] ]</h2>
<div id="Duckscreen">
</div>
|=
Hit as many rubber ducks as possible to score the most points.
=|
(if: (history:) contains "Wack-a-duck easy")[<h4>High score: $ehiscore</h4>]
|==|
(link:"Begin")[(set:$mallet to "on")
(if:$mallet is "on")[You have two minutes. Good luck!
(event:when time > 0.5s)[(show:?red,?time)]
|time)[{(live:1s)[(set:$timer to it + 1)(if: $timer > 130)[(stop:)]]}]|red)[(text-style:"fade-in-out")[<h1>Ready</h1>]](event:when $timer > 1)[(replace:?red)[(text-style:"rumble")[<h1>Go!</h1>]]](event:when $timer > 2)[(replace:?red)[(display:"Duck Game Easy")(show:?score)]]
|score)[{(live:0.5s)[(replace:?points)[$hpoints]]}
|=
Points: |points)[]
=|
|hiscore)[High score: |hipoints)[] ]
|==|
]
(event:When $timer > 130)[Congratuations! You have won $hpoints points.
(if:$hpoints > $ehiscore)[(set:$ehiscore to $hpoints)](show:?hiscore)(replace:?hipoints)[$ehiscore](replace:?red)[(display:"Duck Game End")]
(text-colour:#ff0)[(text-style:"emboss","expand","fidget")[(font:"Comic Sans MS")[
|=
(link-reveal-goto:"Main Menu","Main Menu")[(set:$hpoints to 0)(set:$timer to 0)(set:$mallet to "off")]
=|
(link-reveal-goto:"Play again","Wack-a-duck easy")[(set:$hpoints to 0)(set:$timer to 0)(set:$mallet to "off")]
|==|
] ] ]
] ] ]
<h2>(font:"Comic Sans MS")[(text-style:"italic")[(text-colour:(either:"gold"))[Whack-A-Duck!]] ]</h2>
<div id="Duckscreen">
</div>
|=
Hit as many rubber ducks as possible to score the most points. Avoid hitting the crocodiles, though. They'll eat your points.
=|
(if: (history:) contains "Whack a duck hard")[<h4>High score: $hhiscore</h4>]
|==|
(link:"Begin")[(set:$mallet to "on")
(if:$mallet is "on")[You have one minute.
(event:when time > 0.5s)[(show:?red,?time)]
|time)[{(live:1s)[(set:$timer to it + 1)(if: $timer > 70)[(stop:)]]}]|red)[(text-style:"fade-in-out")[<h1>Ready</h1>]](event:when $timer > 1)[(replace:?red)[(text-style:"rumble")[<h1>Go!</h1>]]](event:when $timer > 2)[(replace:?red)[(display:"Duck Game Hard")(show:?score)]]
|score)[{(live:0.5s)[(replace:?points)[$hpoints]]}
|=
Points: |points)[]
=|
|hiscore)[High score: |hipoints)[] ]
|==|
]
(event:When $timer > 70)[Congratuations! You have won $hpoints points.
(if:$hpoints > $hhiscore)[(set:$hhiscore to $hpoints)](show:?hiscore)(replace:?hipoints)[$hhiscore](replace:?red)[(display:"Duck Game End")]
(text-colour:#ff0)[(text-style:"emboss","expand","fidget")[(font:"Comic Sans MS")[
|=
(link-reveal-goto:"Main Menu","Main Menu")[(set:$hpoints to 0)(set:$timer to 0)(set:$mallet to "off")]
=|
(link-reveal-goto:"Play again","Whack a duck hard")[(set:$hpoints to 0)(set:$timer to 0)(set:$mallet to "off")]
|==|
] ] ]
] ] ]
<div class="Duck">
|=
{(live:3s)[(either:"Hole",(display:"Duck Obj"),(display:"Croc Obj"))]}
=|=
{(live:3s)[(either:"Hole",(display:"Duck Obj"),(display:"Croc Obj"))]}
=|
{(live:3s)[(either:"Hole",(display:"Duck Obj"),(display:"Croc Obj"))]}
|==|
|=
{(live:3s)[(either:"Hole",(display:"Duck Obj"),(display:"Croc Obj"))]}
=|=
{(live:3s)[(either:"Hole",(display:"Duck Obj"),(display:"Croc Obj"))]}
=|
{(live:3s)[(either:"Hole",(display:"Duck Obj"),(display:"Croc Obj"))]}
|==|
|=
{(live:3s)[(either:"Hole",(display:"Duck Obj"),(display:"Croc Obj"))]}
=|=
{(live:3s)[(either:"Hole",(display:"Duck Obj"),(display:"Croc Obj"))]}
=|
{(live:3s)[(either:"Hole",(display:"Duck Obj"),(display:"Croc Obj"))]}
|==|
</div>
(transition:"pulse")[(link:"Croc")[(text-colour:#f00)[(text-style:"shudder")[Ouch!] ](set:$hpoints to it - 1)]]<div class="Duck">
|=
{(live:5s)[(either:"Hole",(display:"Duck Obj"))]}
=|=
{(live:5s)[(either:"Hole",(display:"Duck Obj"))]}
=|
{(live:5s)[(either:"Hole",(display:"Duck Obj"))]}
|==|
|=
{(live:5s)[(either:"Hole",(display:"Duck Obj"))]}
=|=
{(live:5s)[(either:"Hole",(display:"Duck Obj"))]}
=|
{(live:5s)[(either:"Hole",(display:"Duck Obj"))]}
|==|
|=
{(live:5s)[(either:"Hole",(display:"Duck Obj"))]}
=|=
{(live:5s)[(either:"Hole",(display:"Duck Obj"))]}
=|
{(live:5s)[(either:"Hole",(display:"Duck Obj"))]}
|==|
</div>