Language

Map.addRectangle


Map.addRectangle(string id, int depth, int x, int y, int width, int height, int color_r, int color_g, int color_b, int color_a, type)

Description

Add a rectangle to the map.

Parameters

id
Unique ID of the entity.
depth
The depth of the entity. Between 0 and 20.
x
X coordinate.
y
Y coordinate.
width
Width of the rectangle.
height
Height of the rectangle.
color_r
Red color value of the rectangle. Between 0 and 255.
color_g
Green color value of the rectangle. Between 0 and 255.
color_b
Blue color value of the rectangle. Between 0 and 255.
color_a
Alpha color value of the rectangle. Between 0 and 255.
type
The type. 0 = Solid. 1 = Artwork. 2 = Kill on touch. 3 = Solid from top.