test level
This commit is contained in:
parent
3afda38bd5
commit
a341ff5ece
2 changed files with 17 additions and 1 deletions
14
backgounds/galaxy.gd
Normal file
14
backgounds/galaxy.gd
Normal file
|
@ -0,0 +1,14 @@
|
|||
extends Node2D
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
var galaxy = load("res://levels/galaxy.tscn").instantiate()
|
||||
|
||||
func _ready():
|
||||
get_tree().root.add_child.call_deferred(galaxy)
|
||||
#pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
pass
|
|
@ -1,9 +1,11 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://cnstwjy5mqdyo"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://cnstwjy5mqdyo"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bona2ytn3y3a5" path="res://backgounds/galaxy.png" id="1_bmyxf"]
|
||||
[ext_resource type="Script" path="res://backgounds/galaxy.gd" id="1_h1j80"]
|
||||
[ext_resource type="Texture2D" uid="uid://cpd31c6o18rmh" path="res://sprites/ss.png" id="2_67tpf"]
|
||||
|
||||
[node name="galaxy" type="Node2D"]
|
||||
script = ExtResource("1_h1j80")
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
offset_right = 1280.0
|
||||
|
|
Loading…
Reference in a new issue