kytschBASIC

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

SPRITE
ID, CLASS, ONCLICK
Requires arcade library

Creates a sprite on screen.

Example

INCLUDE arcade

DIM cards$=("clubs_1.svg", "clubs_2.svg", "clubs_3.svg", "clubs_4.svg")

SCREEN "cards"

	WINDOW "hand"

		FOR card$ IN cards$

			DEF id$=REPLACE(card$, "/kytschi/imgs/cards/", "")

			DEF id$=REPLACE(id$, ".svg", "")

			LET card$="/kytschi/imgs/cards/" . card$

			SPRITE id$, "card", "onCardClick"

				IMAGE card$

			END SPRITE

		NEXT

	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