test level

This commit is contained in:
Page Asgardius 2023-08-13 18:54:00 -07:00
parent df3885bb1d
commit 3afda38bd5
4 changed files with 46 additions and 0 deletions

16
backgounds/galaxy.tscn Normal file
View file

@ -0,0 +1,16 @@
[gd_scene load_steps=3 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://cpd31c6o18rmh" path="res://sprites/ss.png" id="2_67tpf"]
[node name="galaxy" type="Node2D"]
[node name="TextureRect" type="TextureRect" parent="."]
offset_right = 1280.0
offset_bottom = 720.0
texture = ExtResource("1_bmyxf")
[node name="ss" type="Sprite2D" parent="."]
position = Vector2(640, 360)
scale = Vector2(0.3, 0.3)
texture = ExtResource("2_67tpf")

17
levels/galaxy.gd Normal file
View file

@ -0,0 +1,17 @@
extends Node2D
# Called when the node enters the scene tree for the first time.
var bgsound := AudioStreamPlayer.new()
func _ready():
add_child(bgsound)
var titlemusic = load("res://music/alien-bulls.mp3")
bgsound.stream = titlemusic
bgsound.play(0)
#pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass

12
levels/galaxy.tscn Normal file
View file

@ -0,0 +1,12 @@
[gd_scene load_steps=3 format=3 uid="uid://mtl88mcwaqk0"]
[ext_resource type="Texture2D" uid="uid://8lioamk650y7" path="res://sprites/css.png" id="1_dnk62"]
[ext_resource type="Script" path="res://levels/galaxy.gd" id="1_vnag2"]
[node name="galaxy" type="Node2D"]
script = ExtResource("1_vnag2")
[node name="css1" type="Sprite2D" parent="."]
position = Vector2(852, 455)
scale = Vector2(0.3, 0.3)
texture = ExtResource("1_dnk62")

View file

@ -26,3 +26,4 @@ window/stretch/mode="viewport"
renderer/rendering_method="gl_compatibility" renderer/rendering_method="gl_compatibility"
renderer/rendering_method.mobile="gl_compatibility" renderer/rendering_method.mobile="gl_compatibility"
textures/vram_compression/import_etc2_astc=true textures/vram_compression/import_etc2_astc=true
environment/defaults/default_clear_color=Color(0, 0, 0, 1)