kytschBASIC

Put down that phone!
Please view me on real computer.

WINDOW
ID, CLASS
Requires arcade library

Creates a window on screen.

Example

INCLUDE arcade

SCREEN "the-traveller"

	WINDOW "intro"

		RGB 0,0,0

		BITMAP 0,0,800,400

			RGB 255,0,0

			BITMAPFONT "_ROOT/kytschi/fonts/Sixtyfour.ttf"

			BITMAPTEXT "The Traveller",32,0,120,150

			BITMAPTEXT "Press any key to start",18,0,135,320

		END BITMAP

	END WINDOW

	WINDOW "input"

		RGB 0,0,0

		BITMAP 0,0,800,200

			RGB 255,0,0

			LINE 0,0,800,0

		END BITMAP

	END WINDOW

END SCREEN

Output

Parameters

Parameter Type Description
ID integer/string ID to identify the window
Optional
TITLE string Title of the window
X1 integer X1 position
Y1 integer Y1 position
X2 integer X2 position
Y2 integer Y2 position
TYPE integer Type of the window
SCREEN ID integer/string ID of the screen the window is to be attached to

See also