Category: Images and Rendering
LoadSprite(imageName As String, frameWidth As Integer, frameHeight As Integer)
Integer
Loads a sprite sheet and returns a sprite handle for use with DrawSprite.
The frame size must evenly divide the loaded image.
New sprites start with a hotspot of 0, 0 for every frame.
hero = LoadSprite("player.png", 32, 32)