Language

Map.addSpike


Map.addSpike(string id, int depth, int x, int y, int direction)

Description

Add a spike 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.
direction
0 = top, 1 = right, 2 = down, 3 = left