Skip to content

Commit 8be847c

Browse files
committed
update engine and utils
1 parent 198f674 commit 8be847c

File tree

5 files changed

+97
-126
lines changed

5 files changed

+97
-126
lines changed

Diff for: public/about.html

+4-14
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ <h2><a id="keyboard">Functions for Keyboard</a></h2>
539539
iskeydown(key: string): boolean
540540

541541
// Checks if any or which key just got pressed in your keyboard.
542-
// example: iskeypressed('space') // returns true if space bar is pressed
542+
// example: iskeypressed('space') // returns true if space bar was pressed
543543
// example: iskeypressed() // returns true for any key
544544
iskeypressed(key: string): boolean</code></pre>
545545

@@ -645,26 +645,16 @@ <h2><a id="math">Functions for Math</a></h2>
645645

646646
// Generates a pseudo-random float between min (inclusive)
647647
// and max (exclusive)
648-
rand(min = 0, max = 1.0): number;
648+
rand(min = 0, max = 1.0): number
649649

650650
// Generates a pseudo-random integer between min (inclusive)
651651
// and max (inclusive)
652-
randi(min = 0, max = 1): number;
652+
randi(min = 0, max = 1): number
653653

654654
// If a value is passed, initializes the random number generator (RNG)
655655
// with an explicit seed value (a number >= 0). Otherwise, returns the current seed state.
656656
// By default, the initial seed is the current timestamp (from `Date.now()`).
657-
seed(value: number | null): number;
658-
659-
/** Collision Check (AABB) */
660-
661-
// Check a collision between two rectangles.
662-
// All arguments are required and must be numbers.
663-
colrect(x1, y1, w1, h1, x2, y2, w2, h2): boolean
664-
665-
// Check a collision between two circles.
666-
// All arguments are required and must be numbers.
667-
colcirc(x1, y1, r1, x2, y2, r2): boolean</code></pre>
657+
seed(value: number | null): number</code></pre>
668658

669659
<h2><a id="engine-api">Engine API</a></h2>
670660

Diff for: public/app.js

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

0 commit comments

Comments
 (0)