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/Map.gd

13 lines
276 B
GDScript3
Raw Normal View History

2020-07-06 12:38:05 +00:00
extends Node2D
class_name Map
2020-07-06 17:23:42 +00:00
var ship_direction = Vector2.RIGHT
var ship_speed = 1000
2020-07-06 12:38:05 +00:00
export(NodePath) var tilemap_path
onready var tilemap = get_node(tilemap_path) as MapTiles
2020-07-06 17:23:42 +00:00
func _process(delta):
$deepspace.region_rect.position += ship_direction * ship_speed * delta