LD46/State.gd

14 lines
230 B
GDScript3
Raw Normal View History

extends Node
var level_map = null
var player = null
var player_speed = 50
func _init(lvlmap, plr):
level_map = lvlmap
player = plr
2020-04-19 16:16:40 -04:00
func get_type(pos):
print(level_map[pos.y][pos.x].type)
return level_map[pos.y][pos.x].type