Skip to content

Commit bdd04d4

Browse files
committed
update the demo
1 parent 1513432 commit bdd04d4

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

public/app.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const cacheName = "luizbills.litecanvas-editor-v1";
2-
const version = "2.77.4";
2+
const version = "2.78.0";
33

44
const precacheResources = [
55
"/",

src/demo.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export default () =>
33
// Learn more tapping on the question mark (?) above.
44
// Join our discord: https://discord.com/invite/r2c3rGsvH3
55
6-
let x, y, size, speed
6+
let x, y, size, speed, color
77
88
litecanvas()
99
@@ -13,6 +13,7 @@ function init() {
1313
y = CENTERY
1414
size = 32
1515
speed = 250
16+
color = 4
1617
}
1718
1819
// called when touches/clicks happens
@@ -30,7 +31,7 @@ function update(dt) {
3031
// this function render the game scene
3132
function draw() {
3233
cls(0)
33-
rectfill(x, y, size, size, 4)
34+
rectfill(x, y, size, size, color)
3435
text(0, 0, 'use WASD keys or taps/clicks')
3536
}
3637
`;

0 commit comments

Comments
 (0)