Skip to content

Commit

Permalink
update cheatsheet
Browse files Browse the repository at this point in the history
  • Loading branch information
luizbills committed Oct 11, 2024
1 parent e7815c0 commit e24e626
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions public/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,10 @@ <h2><a id="colors">Default Colors</a></h2>

<img src="images/colors.png" alt="Default Color Palette" />

<p>
<em>Every time a function asks for a color argument, choose one of these numbers.</em>
</p>

<h2><a id="settings">Game Configuration</a></h2>

<pre><code class="language-typescript">// Initialize the game
Expand Down Expand Up @@ -303,9 +307,7 @@ <h2><a id="drawing">Functions for Drawing</a></h2>
*/

// clear the canvas
// all color argument is a integer (a color from 0 to 7)
// alias: clear
cls(color?: number): void
cls(color: number | null): void

// draw a color-filled rectangle
rectfill(x, y, w, h, color = 0, radii?: number | number[]): void
Expand Down Expand Up @@ -333,7 +335,6 @@ <h2><a id="drawing">Functions for Drawing</a></h2>
*/

// draw a text
// alias: print
text(x, y, text, color = 3): void

// set the text alignment and baseline
Expand Down Expand Up @@ -634,7 +635,7 @@ <h2><a id="plugin-api">Plugin API</a></h2>
setvar(name: string, value: any): void

// Gets the color value.
// example: getcolor(0) returns "#18161c"
// example: getcolor(0) returns "#000"
getcolor(index: number): string

// Resizes the game canvas.
Expand Down
2 changes: 1 addition & 1 deletion public/sw.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const cacheName = "luizbills.litecanvas-editor-v1";
const version = "2.16.1";
const version = "2.16.2";

const precacheResources = [
"/",
Expand Down

0 comments on commit e24e626

Please sign in to comment.