@@ -539,7 +539,7 @@ <h2><a id="keyboard">Functions for Keyboard</a></h2>
539
539
iskeydown(key: string): boolean
540
540
541
541
// 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
543
543
// example: iskeypressed() // returns true for any key
544
544
iskeypressed(key: string): boolean</ code > </ pre >
545
545
@@ -645,26 +645,16 @@ <h2><a id="math">Functions for Math</a></h2>
645
645
646
646
// Generates a pseudo-random float between min (inclusive)
647
647
// and max (exclusive)
648
- rand(min = 0, max = 1.0): number;
648
+ rand(min = 0, max = 1.0): number
649
649
650
650
// Generates a pseudo-random integer between min (inclusive)
651
651
// and max (inclusive)
652
- randi(min = 0, max = 1): number;
652
+ randi(min = 0, max = 1): number
653
653
654
654
// If a value is passed, initializes the random number generator (RNG)
655
655
// with an explicit seed value (a number > = 0). Otherwise, returns the current seed state.
656
656
// 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 >
668
658
669
659
< h2 > < a id ="engine-api "> Engine API</ a > </ h2 >
670
660
0 commit comments