test level

This commit is contained in:
Page Asgardius 2023-08-13 19:09:15 -07:00
parent 3afda38bd5
commit a341ff5ece
2 changed files with 17 additions and 1 deletions

14
backgounds/galaxy.gd Normal file
View 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

View file

@ -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="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"] [ext_resource type="Texture2D" uid="uid://cpd31c6o18rmh" path="res://sprites/ss.png" id="2_67tpf"]
[node name="galaxy" type="Node2D"] [node name="galaxy" type="Node2D"]
script = ExtResource("1_h1j80")
[node name="TextureRect" type="TextureRect" parent="."] [node name="TextureRect" type="TextureRect" parent="."]
offset_right = 1280.0 offset_right = 1280.0