Skip to content

Commit eb0ef6c

Browse files
committed
improve samples
1 parent b028e22 commit eb0ef6c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

samples/palette-dither-test/palette-dither-test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ litecanvas({
1212
})
1313

1414
function init() {
15-
framerate(1)
1615
combinations = []
1716
for (let y = 0; y < cols; y++) {
1817
for (let x = 0; x < cols; x++) {
@@ -35,6 +34,8 @@ function draw() {
3534
}
3635
}
3736
}
37+
38+
pause()
3839
}
3940

4041
function tapped() {

samples/plugin-basics/plugin-basics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function pluginTest(engine, config) {
3434
// the event callback
3535
function () {
3636
engine.cls(1)
37-
engine.rectfill(0, 0, 100, 100, 4)
37+
engine.rectfill(0, 0, 100, 100, 3)
3838
}
3939
)
4040

samples/snake/snake.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function draw() {
105105
textfont('monospace')
106106
textalign('center', 'middle')
107107
textsize(28)
108-
text(W / 2, H / 2, 'GAME OVER', 4, 'bold')
108+
text(W / 2, H / 2, 'GAME OVER', 3, 'bold')
109109
}
110110
}
111111

0 commit comments

Comments
 (0)