Skip to content

Commit 16f1a0b

Browse files
committed
feat: bump packages and fix litecanvas w/ correct colors
1 parent bc70263 commit 16f1a0b

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

bun.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"kaboom": "^2000.2.10",
1212
"kaplay": "^3001.0.19",
1313
"kontra": "^10.0.2",
14+
"litecanvas": "^0.66.4",
1415
"melonjs": "^17.4.0",
1516
"phaser": "^3.90.0",
1617
"pixi.js": "^7.4.3",
@@ -256,6 +257,8 @@
256257

257258
"kontra": ["kontra@10.0.2", "", {}, "sha512-NJfxmWtwDi1rWjj/fhOVwW4txjEVsDNgNNHNzc87YnsN7qZlZlkLQ0mWt7SN6WEAMH2KmX4evgL3Cmc2zVOXvQ=="],
258259

260+
"litecanvas": ["litecanvas@0.66.4", "", {}, "sha512-rf61a+zwG53Vcs4hePEJZQrWK+/8ZqqVDlCM3RV+rUkGoU8PXaUWVUZqI+dfZx9vFB5Ajnu7GMV5umdHEcO97Q=="],
261+
259262
"math-intrinsics": ["math-intrinsics@1.1.0", "", {}, "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g=="],
260263

261264
"melonjs": ["melonjs@17.4.0", "", { "dependencies": { "@teppeis/multimaps": "^3.0.0", "core-js": "^3.37.1", "earcut": "2.2.4", "eventemitter3": "^5.0.1", "howler": "2.2.4", "semver": "^7.6.2", "whatwg-fetch": "^3.6.20" } }, "sha512-AktsRa7SbcVExlUBTtu7TJz4gfndZpooJBcfptFjL+t9JIjMxXJGWWajhPbNlSbsBIkmxrDQJDFeKPJlbAZebw=="],

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
"kaboom": "^2000.2.10",
2222
"kaplay": "^3001.0.19",
2323
"kontra": "^10.0.2",
24-
"litecanvas": "0.66.4",
24+
"litecanvas": "0.99.0",
2525
"melonjs": "^17.4.0",
2626
"phaser": "^3.90.0",
27-
"pixi.js": "^7.4.3",
28-
"three": "^0.148.0",
27+
"pixi.js": "^8.12.0",
28+
"three": "^0.179.1",
2929
"two.js": "^0.8.19"
3030
}
3131
}

src/litecanvas.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
{{#> head }} Canvas — JS Game Rendering Benchmark {{/head}}
3+
{{#> head }} Litecanvas — JS Game Rendering Benchmark {{/head}}
44
<body>
55
{{> header }}
66
<main>

src/scripts/litecanvas.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
import Engine from './engine.js';
22
import litecanvas from 'litecanvas';
33

4-
function init() {}
5-
64
class LitecanvasEngine extends Engine {
7-
constructor() {
8-
super();
9-
}
105
init() {
116
super.init();
127

@@ -69,8 +64,11 @@ class LitecanvasEngine extends Engine {
6964
this.engine.image(r.x, r.y, this.sprite);
7065
}
7166
} else {
72-
if (this.type === 'fill') this.engine.circfill(r.x, r.y, r.size, 3);
73-
if (this.type != 'sprite') this.engine.circ(r.x, r.y, r.size, 1);
67+
if (this.type === 'fill') {
68+
this.engine.circfill(r.x, r.y, r.size, 3);
69+
this.engine.stroke(0);
70+
}
71+
if (this.type != 'sprite') this.engine.circ(r.x, r.y, r.size, 3);
7472
}
7573
}
7674

0 commit comments

Comments
 (0)