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

15 lines
314 B
GDScript3
Raw Normal View History

2020-07-06 12:38:05 +00:00
extends Node2D
2020-07-06 22:00:39 +00:00
class_name GameWorld
2020-07-06 12:38:05 +00:00
export(NodePath) var player_path
export(NodePath) var map_path
onready var player = get_node(player_path) as Node2D
2020-07-07 12:51:30 +00:00
onready var map = get_node(map_path) as GameMap
2020-07-06 12:38:05 +00:00
func _ready():
2020-07-07 12:51:30 +00:00
for tilemap in map.tilemaps:
2020-07-08 12:30:46 +00:00
if tilemap is MapTiles:
tilemap.set_occluder_origin(player)