Skip to content
MarkChase3 edited this page Feb 19, 2023 · 2 revisions

Welcome to the hyper wiki!

Here, we will cover all the functionalities of all functions on hyper

sprite

Parameters:

path, [x=0, y=0], [dx=1, dy=1]

Draws the image on the path, at x, y and with width and height multiplied by sx and sy

key

Parameters:

kname

Returns true if kname is pressed, else returns false. It's case insensivite.

clear

Parameters:

[color]

It's called automaticcaly before the update callback, but can be used mannually to clear to a different color.

axisX

Parameters:

none

Returns -1 if a player that can move with arrow keys and wasd should move to the left, 1 if it should move to right and 0 if it shoudn't move on x axis

axisY

Parameters:

none

Returns -1 if a player that can move with arrow keys and wasd should move to up, 1 if it should move to down and 0 if it shoudn't move on y axis

Clone this wiki locally