Skip to content

Commit

Permalink
Update starfield.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Rukario authored Sep 22, 2024
1 parent c9b636e commit 4cd6196
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Uninteresting stuff/starfield.html
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@

spoiler.drawImage(reveal, 0, 0, spoiler.width, spoiler.height);

desk.style.opacity = 0.5;
//desk.style.opacity = 0.5;
desk.style.display = isTouch ? 'inline-block' : 'none';

speaker("Move player with WASD or arrow keys, hold mouse while moving to set up barriers.\n\nCapsLock to un/freeze enemies, Shift/Space to accelerate X/Y.\n\nMind control the boss with TFGH keys.");
Expand Down Expand Up @@ -3135,14 +3135,14 @@
}

if (qix) {
desk.style.opacity = 0.5;
//desk.style.opacity = 0.5;
desk.style.display = isTouch ? 'inline-block' : 'none';
qixupdate();
repaint.qix();
}

if (glyph) {
desk.style.opacity = 1;
//desk.style.opacity = 1;
desk.style.display = 'inline-block';
tailscr.style.display = 'block';
new_glyph();
Expand Down Expand Up @@ -3563,7 +3563,7 @@
context.clearRect(0, 0, canvas.width, canvas.height);

glyphscr.style.display = 'block';
desk.style.opacity = 1;
//desk.style.opacity = 1;
desk.style.display = 'inline-block';
if (clear) {
editor.textContent = '';
Expand Down Expand Up @@ -3653,6 +3653,7 @@

let mobspawner;
let qixzoom = 1;
let qixkeyboard = isTouch ? 180 : 0;
function new_qix() {
qixdim = {
x: Math.floor(qixmask.width / 2),
Expand All @@ -3664,7 +3665,7 @@
};
qixscr = {
x: qixpos.x,
y: qixpos.y,
y: qixpos.y + qixkeyboard/2,
}
qix_tails = [];
qixline = {
Expand Down Expand Up @@ -3888,8 +3889,8 @@
qixscr.x = pos.x;
}

if (dim.y/qixsc - 64 < pos.y && pos.y < qixmask.height - dim.y/qixsc + 64) {
qixscr.y = pos.y;
if ((dim.y - qixkeyboard)/qixsc - 64 < pos.y && pos.y < qixmask.height - (dim.y + qixkeyboard)/qixsc + 64) {
qixscr.y = pos.y + qixkeyboard/2;
}
}

Expand Down

0 comments on commit 4cd6196

Please # to comment.