Skip to content

Commit 30bc231

Browse files
committed
update engine
1 parent 545ac28 commit 30bc231

File tree

6 files changed

+15
-23
lines changed

6 files changed

+15
-23
lines changed

package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/about.html

+8-16
Original file line numberDiff line numberDiff line change
@@ -422,16 +422,10 @@ <h2><a id="drawing">Functions for Drawing</a></h2>
422422
// see: https://developer.mozilla.org/en-US/docs/Web/API/Path2D/Path2D
423423
path(arg?: Path2D | string): Path2D
424424

425-
// create a "circular" clipping region
425+
// create a clipping region
426426
// see: https://github.com/litecanvas/game-engine/blob/main/samples/clip/clip.js
427-
clipcirc(x, y, width, height): void
428-
429-
// same as above, but create a "rectangular" clipping region
430-
cliprect(x, y, width, height): void
431-
432-
// note: before call `cliprect()` or `clipcirc()` you must
433-
// save the context using `push()` and later,
434-
// you must restore the context using `pop()`</code></pre>
427+
// note: before call `clip()` you must save the context using `push()` and `pop()`
428+
clipcirc(path: Path2D)</code></pre>
435429

436430
<h2><a id="sound">Functions for Sound</a></h2>
437431

@@ -448,12 +442,10 @@ <h2><a id="sound">Functions for Sound</a></h2>
448442

449443
<h2><a id="keyboard">Functions for Keyboard</a></h2>
450444

451-
<pre><code class="language-typescript">
452-
// Checks if which key is currently pressed in your keyboard.
453-
// note: you can check if any key is pressed using `iskeydown("any")`.
454-
// note: to check the space key use `iskeydown(" ")`.
455-
iskeydown(key: string): boolean
456-
</code></pre>
445+
<pre><code class="language-typescript">// Checks if which key is currently pressed in your keyboard.
446+
// note: you can check if any key is pressed using `iskeydown("any")`.
447+
// note: to check the space key use `iskeydown(" ")`.
448+
iskeydown(key: string): boolean</code></pre>
457449

458450
<h2><a id="math">Math</a></h2>
459451

@@ -635,7 +627,7 @@ <h2><a id="plugin-api">Plugin API</a></h2>
635627
setvar(name: string, value: any): void
636628

637629
// Gets the color value.
638-
// example: getcolor(0) returns "#000"
630+
// example: getcolor(0) returns "#111"
639631
getcolor(index: number): string
640632

641633
// Resizes the game canvas.

public/images/colors.png

-1.19 KB
Loading

public/litecanvas.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/sw.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const cacheName = "luizbills.litecanvas-editor-v1";
2-
const version = "2.16.4";
2+
const version = "2.17.0";
33

44
const precacheResources = [
55
"/",

public/tools/pixel-art-editor.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145

146146
@media (prefers-color-scheme: dark) {
147147
body {
148-
background: #111;
148+
background: #000;
149149
color: #fff;
150150
}
151151

@@ -236,7 +236,7 @@ <h1>litepixel</h1>
236236
const $ = (selector) => document.querySelector(selector);
237237
// color palette
238238
const colors = [
239-
"#000",
239+
"#111",
240240
"#6a7799",
241241
"#aec2c2",
242242
"#FFF1E8",

0 commit comments

Comments
 (0)