Javascript Shortcode Area
-----Version 110606-----
 asdf-j5 

<body id ="gg" bgcolor=black text=white onKeyDown="K=event.keyCode-37">
<style>
body, tt, input, font, span {
font-family: "SF Mono", "Menlo", "Consolas", "Liberation Mono", "Courier New", monospace;
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
}
</style>
<tt id=F style="font-size: 200%;">
<script>
// C との比較を行うため、Cの新しい定義に合わせて動作するか注意が必要です
function R(H){while(D.all["F"+(S=40+Math.ceil(ccc(i)*319))].innerHTML!=C);I(S,H)}
function I(T,H){D.all["F"+T].innerHTML=H}
function ccc(cc){j=j+1;a=Math.sin((cc+0.1+j/100)/24);a=""+a;b=a.slice(-8,-2);a=eval(b)/1000000;return a}
function HT(event) {
tX = event.touches[0].clientX;
K = 0;
if (tX > window.innerWidth / 2) {
K = 2;
}
}

function Y(){if(K+1){M=[-1,0,1,0][K];}Z=P;P=P+M;
X=D.all["F"+P].innerHTML;P2=P+20;XX=D.all["F"+P2].innerHTML;
if(XX==C && M==0){P=P+20;} // C との比較
if(X==O || XX==O){alert("GAME OVER SCORE: "+SC*10);return}
if(X==T || XX==T){KY=1;Q="<font color=\"Purple\" style=\"font-size: inherit;\">●</font>";P=P+20;}
if(X==U || XX==U){if(KY==1){SC++;YY();}else{P=P-20;}}
if(X==W){P=P-M;}
if(X==N || XX==N){P=P-(20*6);while(P<0){P=P+20;}
while(C!=D.all["F"+P].innerHTML){P=P-20;} } // C との比較
I(Z,C);I(P,Q);K=-1;M=0;ID=setTimeout(Y,100); }

function YY(){D=document;M=0;P=370;S="";K=-1;P2=0;
// ★★★ 修正点: C の値を2つのノーブレークスペース文字 (U+00A0) に変更 ★★★
C="\u00A0\u00A0"; // JavaScriptエスケープシーケンスでノーブレークスペース2つを指定
U="<font color=\"Lime\" style=\"font-size: inherit;\">門</font>";
Q="<font color=\"blue\" style=\"font-size: inherit;\">●</font>";
W="<font color=\"Maroon\" style=\"font-size: inherit;\">■</font>";
N="<font color=\"aqua\" style=\"font-size: inherit;\">=</font>";
O="<font color=\"white\" style=\"font-size: inherit;\">*</font>";
T="<font color=\"yellow\" style=\"font-size: inherit;\">ー</font>";
E="<INPUT TYPE=\"button\" VALUE=\"☆\" STYLE=\"font-size: inherit;\" ONCLICK=\"clearTimeout(ID);YYY()\">";
for(i=0;i<400;i++)
S+=(i%20?"":"<br>")+"<span id=F"+i+">"+((i+1)%20>1&&i<379?C:W)+"</span>";I("",S);
for(i=0;i<51;i++)I(20+Math.ceil(ccc(i)*339),W);for(i=0;i<11;i++)R(N);I(399,E);
for(i=0;i<(2+SC);i++)R(O);for(i=0;i<2;i++)I(Math.ceil(360+ccc(i)*18),N);R(U);R(T);KY=0;
gg.addEventListener("touchmove", HT, { passive: true });
}

function YYY(){j=0;SC=0;YY();Y();}

YYY();
</script>
</tt>
</body>


使用変数

a
b
bgcolor
C
ccc -------( Function )
color
D
E
HT -------( Function )
I -------( Function )
i
id
ID
innerHTML
j
K
KY
M
N
O
ONCLICK
onKeyDown
P2
P
Q
R -------( Function )
S
SC
style
STYLE
T
text
tX
TYPE
U
VALUE
W
X
XX
Y -------( Function )
YY -------( Function )
YYY -------( Function )
Z