@@ -539,7 +539,7 @@ <h2><a id="keyboard">Functions for Keyboard</a></h2>
539539iskeydown(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
544544iskeypressed(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
0 commit comments