2024-06-21 07:45:28 +00:00
|
|
|
declare interface RGBA {}
|
|
|
|
declare interface FilePtr {}
|
|
|
|
declare interface GRRLibTexture {}
|
2024-06-25 00:37:38 +00:00
|
|
|
declare interface DrawableObject {
|
|
|
|
texture: GRRLibTexture
|
|
|
|
};
|
|
|
|
declare interface Pipe {
|
|
|
|
top_y: number
|
|
|
|
bottom_y: number
|
|
|
|
position: number
|
|
|
|
time_active: number
|
|
|
|
};
|
2024-06-21 07:45:28 +00:00
|
|
|
|
|
|
|
declare namespace wii {
|
|
|
|
function exit(): void
|
|
|
|
function get_file(filename: string) : FilePtr
|
2024-06-22 05:57:08 +00:00
|
|
|
function get_deltatime() : number
|
2024-06-25 00:37:38 +00:00
|
|
|
function compare_rgba(color1: RGBA, color2: RGBA) : boolean
|
|
|
|
function print(message: string) : void
|
|
|
|
function rgba(r: number, g: number, b: number, a: number): RGBA
|
2024-06-21 07:45:28 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|