Skip to content

Commit

Permalink
Better layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Hope41 committed Apr 29, 2024
1 parent 44f4691 commit 58d31e0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
cvs.height / 2 - h / 2 + 60 * devicePixelRatio,
w, h)

ctx.fillStyle = rgb(0,0,0,.8)
ctx.fillStyle = rgb(0,0,0,.4)
ctx.fillRect(0, 0, cvs.width, cvs.height)

for (let j = 0; j < booms.length; j ++) {
Expand All @@ -100,7 +100,7 @@
if (sum > 0) {
const add = box * 3
const S = (add * item.size)
const gap = S * .85
const gap = S * .82
const size = item.name.length * gap
let summ = sum
const check = time - item.expire
Expand Down Expand Up @@ -154,14 +154,11 @@
}

const ctx = cvs.getContext('2d')
cvs.width = innerWidth * devicePixelRatio
cvs.height = innerHeight * devicePixelRatio + 1
let time = 0
let box = 0

const img = new Image()
img.src = 'images/bg.png'
document.body.appendChild(img)

const booms = [
{name: 'SQUIRTCOPTER', time: 70, x: 0, y: 0, size: .03, expire: 215},
Expand Down

0 comments on commit 58d31e0

Please sign in to comment.