You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
463 B
39 lines
463 B
extends Node
|
|
|
|
enum directions_8 {
|
|
TOP_LEFT = 1,
|
|
TOP = 2,
|
|
TOP_RIGHT = 4,
|
|
RIGHT = 8,
|
|
BOTTOM_RIGHT = 16,
|
|
BOTTOM = 32,
|
|
BOTTOM_LEFT = 64,
|
|
LEFT = 128
|
|
}
|
|
|
|
enum directions_4 {
|
|
TOP = 1,
|
|
RIGHT = 2,
|
|
BOTTOM = 4,
|
|
LEFT = 8
|
|
}
|
|
|
|
enum bloc_sides_id {
|
|
SIDE_0 = 1,
|
|
SIDE_1 = 2,
|
|
SIDE_2_ANGLE = 3,
|
|
SIDE_2_OPPOSITE = 4,
|
|
SIDE_3 = 5,
|
|
SIDE_4 = 6
|
|
}
|
|
|
|
enum blocs {
|
|
GRASS = 1,
|
|
STONE = 2,
|
|
SAND = 3,
|
|
SNOW = 4
|
|
}
|
|
|
|
const GRID_ROTATION = [0, 22, 10, 16]
|
|
|
|
var world = World.new()
|
|
|