Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions e63334287a3deaa3/news/ngcoding10-leaf-tune.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"kind": "feature",
"title": "Leaf Sweep: one handful at a time",
"tags": [
"Leaf Sweep"
],
"items": [
"Leaf Sweep now starts with a short note on what to do, and you pick up leaves one handful at a time: each click or tap grabs what is in a small circle.",
"Bigger handfuls widens that circle, and Steady hands later lets you hold to keep grabbing.",
"The rake pulls at first; Rake push lets it push leaves away too. If you already had the rake, you keep pushing."
],
"es": {
"Leaf Sweep: one handful at a time": "Leaf Sweep: un puñado a la vez",
"Leaf Sweep": "Leaf Sweep",
"Leaf Sweep now starts with a short note on what to do, and you pick up leaves one handful at a time: each click or tap grabs what is in a small circle.": "Leaf Sweep ahora empieza con una nota breve sobre qué hacer, y recoges las hojas un puñado a la vez: cada clic o toque agarra lo que hay en un círculo pequeño.",
"Bigger handfuls widens that circle, and Steady hands later lets you hold to keep grabbing.": "Puñados más grandes agranda ese círculo, y más adelante Manos firmes te deja mantener pulsado para seguir agarrando.",
"The rake pulls at first; Rake push lets it push leaves away too. If you already had the rake, you keep pushing.": "Al principio el rastrillo solo tira; el empuje del rastrillo te deja también empujar las hojas. Si ya tenías el rastrillo, sigues pudiendo empujar."
}
}
19 changes: 18 additions & 1 deletion e63334287a3deaa3/windrow/es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 15 additions & 2 deletions e63334287a3deaa3/windrow/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@
#tJump{right:calc(126px + var(--sr));bottom:calc(22px + var(--sb));width:62px;height:62px}
#tSprint{right:calc(122px + var(--sr));bottom:calc(100px + var(--sb));width:54px;height:54px;font-size:11px}
#tKneel{right:calc(30px + var(--sr));bottom:calc(134px + var(--sb));width:54px;height:54px;font-size:11px}
#tMode{right:calc(30px + var(--sr));bottom:calc(200px + var(--sb));width:54px;height:54px;font-size:11px;background:rgba(63,107,82,.75)}
#intro{position:absolute;left:50%;top:30%;transform:translateX(-50%);width:min(88vw,460px);background:rgba(246,236,212,.94);color:var(--ink);border:1px solid var(--line);border-radius:16px;padding:14px 18px;text-align:center;box-shadow:0 8px 26px rgba(0,0,0,.25);animation:hintIn .5s}
#intro b{display:block;font-family:var(--f-d);font-size:20px;line-height:1.25}
#intro span{display:block;margin-top:6px;font-size:16px;color:var(--ink-2)}
#rakeMode{position:absolute;left:50%;bottom:calc(70px + var(--sb));transform:translateX(-50%);font-size:13px;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.7)}
#rakeMode kbd{font:inherit;background:var(--gold);color:var(--ink);border-radius:5px;padding:0 6px;margin-right:5px;text-shadow:none}
#tAct{left:50%;bottom:calc(84px + var(--sb));transform:translateX(-50%);border-radius:14px;width:auto;height:48px;padding:0 18px;font-size:15px;background:rgba(224,181,58,.95);color:var(--ink);border-color:#fff;white-space:nowrap}
#tTop{position:absolute;right:calc(10px + var(--sr));top:calc(10px + var(--st));display:flex;gap:8px}
#tTop .tb{position:static;width:46px;height:46px;border-radius:12px;font-size:11px}
Expand All @@ -99,8 +105,9 @@
body.touch #hTools{bottom:calc(172px + var(--sb))}
body.touch #hArea{top:calc(96px + var(--st))}
body.touch #toasts{top:34%}
body.touch #hint,body.touch #hPrompt{bottom:calc(238px + var(--sb))}
body.touch #tAct{bottom:calc(234px + var(--sb))}
body.touch #hint,body.touch #hPrompt{bottom:calc(270px + var(--sb))}
#intro{top:calc(160px + var(--st))}
body.touch #tAct{bottom:calc(266px + var(--sb))}
}
@media (orientation:landscape) and (max-height:480px){
#hArea{padding:4px 12px 5px;min-width:170px}#hArea b{font-size:15px}
Expand All @@ -109,6 +116,8 @@
body.touch #tJump{right:calc(110px + var(--sr));bottom:calc(12px + var(--sb));width:56px;height:56px}
body.touch #tSprint{right:calc(108px + var(--sr));bottom:calc(80px + var(--sb));width:48px;height:48px}
body.touch #tKneel{right:calc(26px + var(--sr));bottom:calc(106px + var(--sb));width:48px;height:48px}
body.touch #tMode{right:calc(26px + var(--sr));bottom:calc(160px + var(--sb));width:48px;height:48px}
#intro{top:36%;padding:10px 14px}#intro b{font-size:17px}#intro span{font-size:14px}
body.touch #hTools{bottom:calc(8px + var(--sb))}
body.touch .slot{width:52px;height:44px;font-size:10px}body.touch .slot svg{width:20px;height:20px}
#hPrompt,#hint{bottom:calc(64px + var(--sb));font-size:15px;padding:6px 14px;max-width:46vw}
Expand Down Expand Up @@ -164,6 +173,7 @@
@media (max-height:480px){.card{padding:12px 16px}#title h1{font-size:40px}.stack{margin-top:8px;flex-direction:row;flex-wrap:wrap;justify-content:center}.tag{font-size:15px;margin:4px 0}#jSide{max-height:56vh}#jBody{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}}
@media (prefers-reduced-motion:reduce){.toast,#acN.pop{animation:none}}
</style>
<script src="/e63334287a3deaa3/captains.js"></script>
<script src="/e63334287a3deaa3/stats.js" data-game="windrow" data-board-in="#title .card" defer></script>
</head>
<body>
Expand All @@ -181,6 +191,8 @@
<div id="gain" data-noi18n></div>
<div id="cross"></div>
<div id="hint" hidden data-noi18n></div>
<div id="intro" hidden><b>The old gardens are buried in leaves. Clear every last one.</b><span id="introDo" data-noi18n></span></div>
<div id="rakeMode" class="kbonly" hidden data-noi18n></div>
<div id="toasts" aria-live="polite"></div>
<div id="hPrompt" hidden data-noi18n></div>
<div id="hTools">
Expand All @@ -194,6 +206,7 @@
<button class="tb" id="tJump" type="button" data-no-ad-refresh>Jump</button>
<button class="tb" id="tSprint" type="button" hidden data-no-ad-refresh>Run</button>
<button class="tb" id="tKneel" type="button" hidden data-no-ad-refresh>Kneel</button>
<button class="tb" id="tMode" type="button" hidden data-noi18n data-no-ad-refresh>Push</button>
<button class="tb" id="tAct" type="button" hidden data-noi18n data-no-ad-refresh></button>
<div id="tTop">
<button class="tb" id="tFind" type="button" aria-label="Leaf finder" data-no-ad-refresh><svg viewBox="0 0 24 24"><circle cx="10.500" cy="10.500" r="6" stroke="currentColor" stroke-width="2.200" fill="none"/><path d="M15 15l6 6" stroke="currentColor" stroke-width="2.400" stroke-linecap="round"/></svg></button>
Expand Down
2 changes: 2 additions & 0 deletions e63334287a3deaa3/windrow/js/audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
A.gate = function () { tone('sawtooth', 90, 140, 0.7, 0.05); burst(500, 3, 0.7, 0.08); };
A.step = function (wood) { if (wood) { tone('sine', 150, 90, 0.07, 0.07); burst(900, 1, 0.04, 0.04); } else burst(260 + Math.random() * 120, 0.9, 0.07, 0.07); };
A.jump = function () { burst(500, 0.6, 0.12, 0.05); };
A.grab = function (v) { burst(3600 + Math.random() * 1800, 1.6, 0.09 + 0.08 * (v || 0), 0.1 + 0.08 * (v || 0)); tone('sine', 900 + Math.random() * 200, 600, 0.05, 0.035); };
A.miss = function () { burst(2400, 2, 0.05, 0.04); };
A.thud = function (v) { tone('sine', 170, 80, 0.12, 0.06 + 0.1 * (v || 0)); burst(1800, 0.7, 0.14, 0.05 + 0.08 * (v || 0)); };
A.burst = function (v) { burst(4200, 0.5, 0.5, 0.12 + 0.2 * (v || 0)); burst(1500, 0.6, 0.3, 0.1 + 0.12 * (v || 0)); tone('sine', 140, 60, 0.18, 0.12); };
})();
Loading
Loading