Fries
fc7ca18fd7
i added deltatime so the bird should hopefully have the same speed if the framerate drops or if you play in PAL 50hz mode.
16 lines
592 B
TypeScript
16 lines
592 B
TypeScript
declare interface RGBA {}
|
|
declare interface FilePtr {}
|
|
declare interface GRRLibTexture {}
|
|
|
|
declare namespace wii {
|
|
function exit(): void
|
|
function get_file(filename: string) : FilePtr
|
|
function get_deltatime() : number
|
|
namespace grrlib {
|
|
function load_texture(file: FilePtr) : GRRLibTexture
|
|
function fill_screen(color: RGBA): void
|
|
function draw_img(xPos: number, yPos: number, texture: GRRLibTexture, degrees: number, scaleX: number, scaleY: number, color: RGBA) : void
|
|
function rectangle(x: number, y: number, width: number, height: number, color: RGBA, filled: bool) : void
|
|
}
|
|
}
|
|
|