This repository has been archived on 2020-09-30. You can view files and clone it, but cannot push or open issues or pull requests.
odyssey-old/Scenes/World.gd
2020-07-08 14:30:46 +02:00

14 lines
314 B
GDScript

extends Node2D
class_name GameWorld
export(NodePath) var player_path
export(NodePath) var map_path
onready var player = get_node(player_path) as Node2D
onready var map = get_node(map_path) as GameMap
func _ready():
for tilemap in map.tilemaps:
if tilemap is MapTiles:
tilemap.set_occluder_origin(player)