test rooms

This commit is contained in:
Page Asgardius 2024-01-20 03:38:12 -07:00
parent 9fb4170b51
commit f4dbc0249b
31 changed files with 338 additions and 42 deletions

View file

@ -27,9 +27,9 @@ func _title():
# This is like autoloading the scene, only # This is like autoloading the scene, only
# it happens after already loading the main scene. # it happens after already loading the main scene.
if Global.debug: if Global.debug:
get_tree().change_scene_to_file("res://levels/scene.tscn") get_tree().change_scene_to_file("res://levels/ui/scene.tscn")
else: else:
get_tree().change_scene_to_file("res://levels/credits.tscn") get_tree().change_scene_to_file("res://levels/ui/credits.tscn")
#get_tree().root.add_child(title) #get_tree().root.add_child(title)
#get_tree().root.remove_child(boot) #get_tree().root.remove_child(boot)
#boot.queue_free() #boot.queue_free()

View file

@ -27,7 +27,7 @@ func _title():
# This is like autoloading the scene, only # This is like autoloading the scene, only
# it happens after already loading the main scene. # it happens after already loading the main scene.
if Global.debug: if Global.debug:
get_tree().change_scene_to_file("res://levels/scene.tscn") get_tree().change_scene_to_file("res://levels/ui/scene.tscn")
else: else:
get_tree().change_scene_to_file("res://backgounds/wip.tscn") get_tree().change_scene_to_file("res://backgounds/wip.tscn")
#get_tree().root.add_child(title) #get_tree().root.add_child(title)

View file

@ -27,7 +27,7 @@ func _title():
# This is like autoloading the scene, only # This is like autoloading the scene, only
# it happens after already loading the main scene. # it happens after already loading the main scene.
if Global.debug: if Global.debug:
get_tree().change_scene_to_file("res://levels/scene.tscn") get_tree().change_scene_to_file("res://levels/ui/scene.tscn")
else: else:
get_tree().change_scene_to_file("res://title.tscn") get_tree().change_scene_to_file("res://title.tscn")
#get_tree().root.add_child(title) #get_tree().root.add_child(title)

View file

@ -6,14 +6,23 @@ var origmpos
var mousepos var mousepos
var timelimit = 15000 var timelimit = 15000
var wait var wait
const places = [[[[null, null, null, null, false], [null, null, null, null, false]], [[null, null, null, null, false], ["res://levels/Testrooms/testboss.tscn", 640, 360, 11, false]], [[null, null, null, null ,false], ["res://levels/Testrooms/testspawn.tscn", 640, 360, 2 ,false]]]]
var cplace = [0,2,1]
var dplace = [null, null, null]
const pchars = ["res://sprites/common/midori/midori.tscn"]
const npchars = []
var cpchar = 0
var dcpchar = 0
var cspawnarea = [null, null]
var owlocation = [[null, null], [null, null]]
var hiscoresfile = "user://hiscores.save" var hiscoresfile = "user://hiscores.save"
var gamelevel var gamelevel
var levelmax var levelmax
var firstrun var firstrun
var musictracks = ["res://music/reloaded.wav", "res://music/Jellies.wav", "res://music/getabrain.wav", "res://music/oskars.wav", "res://music/extralife.wav", "res://music/layers.wav", "res://music/caramel.wav", "res://music/XsEdzesSs.wav", "res://music/shakeshark.wav", "res://music/zubmarine.wav", "res://music/crammin.wav", "res://music/func.wav", "res://music/kaveh.wav", "res://music/rock.wav", "res://music/milkyway.wav", "res://music/sweetener.wav", "res://music/tooold.wav", "res://music/portello.wav", "res://music/songbirds.wav", "res://music/Gotanda.wav", "res://music/unreeeal.wav"] const musictracks = ["res://music/reloaded.wav", "res://music/Jellies.wav", "res://music/getabrain.wav", "res://music/oskars.wav", "res://music/extralife.wav", "res://music/layers.wav", "res://music/caramel.wav", "res://music/XsEdzesSs.wav", "res://music/shakeshark.wav", "res://music/zubmarine.wav", "res://music/crammin.wav", "res://music/func.wav", "res://music/kaveh.wav", "res://music/rock.wav", "res://music/milkyway.wav", "res://music/sweetener.wav", "res://music/tooold.wav", "res://music/portello.wav", "res://music/songbirds.wav", "res://music/Gotanda.wav", "res://music/unreeeal.wav"]
var sfxtracks = [] const sfxtracks = []
var debug = false var debug = false
var release = "R0.0.0-dev" const release = "R0.0.0-dev"
var sk = false var sk = false
var xm = 0 var xm = 0
var ym = 0 var ym = 0

View file

@ -0,0 +1,20 @@
[gd_scene load_steps=2 format=3 uid="uid://cma7ddp0r4rm"]
[ext_resource type="Texture2D" uid="uid://dursxelwwxe8u" path="res://sprites/common/placeholder/player.png" id="1_hxdyl"]
[node name="Testboss" type="Node2D"]
[node name="TextureRect" type="TextureRect" parent="."]
offset_left = 583.0
offset_top = 4.0
offset_right = 711.0
offset_bottom = 260.0
texture = ExtResource("1_hxdyl")
[node name="Label" type="Label" parent="."]
offset_left = 327.0
offset_top = 354.0
offset_right = 957.0
offset_bottom = 409.0
theme_override_font_sizes/font_size = 40
text = "Boss spawns at EBU pattern area"

View file

@ -0,0 +1,10 @@
[gd_scene load_steps=2 format=3 uid="uid://b5cxd2rmstnpt"]
[ext_resource type="Texture2D" uid="uid://kxvipok4tnuw" path="res://backgounds/wip.jpg" id="1_yw0he"]
[node name="Testspawn" type="Node2D"]
[node name="WIP" type="TextureRect" parent="."]
offset_right = 40.0
offset_bottom = 40.0
texture = ExtResource("1_yw0he")

View file

@ -45,7 +45,7 @@ func _complete():
# This is like autoloading the scene, only # This is like autoloading the scene, only
# it happens after already loading the main scene. # it happens after already loading the main scene.
if Global.debug: if Global.debug:
get_tree().change_scene_to_file("res://levels/scene.tscn") get_tree().change_scene_to_file("res://levels/ui/scene.tscn")
else: else:
get_tree().change_scene_to_file("res://backgounds/result.tscn") get_tree().change_scene_to_file("res://backgounds/result.tscn")
#get_tree().root.add_child(title) #get_tree().root.add_child(title)

View file

@ -1,10 +1,10 @@
[gd_scene load_steps=6 format=3 uid="uid://g8ajwoud48us"] [gd_scene load_steps=6 format=3 uid="uid://g8ajwoud48us"]
[ext_resource type="Script" path="res://levels/credits.gd" id="1_y6orl"] [ext_resource type="Script" path="res://levels/ui/credits.gd" id="1_y6orl"]
[ext_resource type="VideoStream" path="res://backgounds/nebula_-_6044 (720p).ogv" id="2_0cref"] [ext_resource type="VideoStream" path="res://backgounds/nebula_-_6044 (720p).ogv" id="2_0cref"]
[ext_resource type="Script" path="res://nebula.gd" id="3_ffw0g"] [ext_resource type="Script" path="res://nebula.gd" id="3_ffw0g"]
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="5_yvope"] [ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="5_yvope"]
[ext_resource type="Script" path="res://levels/roll.gd" id="6_3q8sp"] [ext_resource type="Script" path="res://levels/ui/roll.gd" id="6_3q8sp"]
[node name="credits" type="Node2D"] [node name="credits" type="Node2D"]
script = ExtResource("1_y6orl") script = ExtResource("1_y6orl")

View file

@ -41,13 +41,13 @@ func _input(event):
func _on_scene_selector_pressed(): func _on_scene_selector_pressed():
get_tree().change_scene_to_file("res://levels/scene.tscn") get_tree().change_scene_to_file("res://levels/ui/scene.tscn")
func _on_sound_test_pressed(): func _on_sound_test_pressed():
get_tree().change_scene_to_file("res://levels/soundtest.tscn") get_tree().change_scene_to_file("res://levels/ui/soundtest.tscn")
func _on_back_pressed(): func _on_back_pressed():
Global.debug = false Global.debug = false
get_tree().change_scene_to_file("res://levels/tmenu.tscn") get_tree().change_scene_to_file("res://levels/ui/tmenu.tscn")

View file

@ -1,6 +1,6 @@
[gd_scene load_steps=8 format=3 uid="uid://brrta1s63r2q2"] [gd_scene load_steps=8 format=3 uid="uid://brrta1s63r2q2"]
[ext_resource type="Script" path="res://levels/debug.gd" id="1_gm5qw"] [ext_resource type="Script" path="res://levels/ui/debug.gd" id="1_gm5qw"]
[ext_resource type="VideoStream" path="res://backgounds/nebula_-_6044 (720p).ogv" id="2_l51wy"] [ext_resource type="VideoStream" path="res://backgounds/nebula_-_6044 (720p).ogv" id="2_l51wy"]
[ext_resource type="Script" path="res://nebula.gd" id="3_0jyxj"] [ext_resource type="Script" path="res://nebula.gd" id="3_0jyxj"]
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="4_ogmre"] [ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="4_ogmre"]

50
levels/ui/gameplay.gd Normal file
View file

@ -0,0 +1,50 @@
extends Node2D
var level
var player
var music
var bgsound := AudioStreamPlayer.new()
var musictrack
var isboss
# Called when the node enters the scene tree for the first time.
func _ready():
add_child(bgsound)
if Global.debug:
level = load(Global.places[Global.dplace[0]][Global.dplace[1]][Global.dplace[2]][0]).instantiate()
player = load(Global.pchars[Global.dcpchar]).instantiate()
musictrack = Global.musictracks[Global.places[Global.dplace[0]][Global.dplace[1]][Global.dplace[2]][3]]
isboss = Global.places[Global.dplace[0]][Global.dplace[1]][Global.dplace[2]][4]
else:
level = load(Global.places[Global.cplace[0]][Global.cplace[1]][Global.cplace[2]][0]).instantiate()
player = load(Global.pchars[Global.cpchar]).instantiate()
musictrack = Global.musictracks[Global.places[Global.cplace[0]][Global.cplace[1]][Global.cplace[2]][3]]
isboss = Global.places[Global.cplace[0]][Global.cplace[1]][Global.cplace[2]][4]
if Global.cspawnarea[0] != null && Global.cspawnarea[0] != null:
player.position.x = Global.cspawnarea[0]
player.position.y = Global.cspawnarea[1]
elif Global.debug:
player.position.x = Global.places[Global.dplace[0]][Global.dplace[1]][Global.dplace[2]][1]
player.position.y = Global.places[Global.dplace[0]][Global.dplace[1]][Global.dplace[2]][2]
else:
player.position.x = Global.places[Global.cplace[0]][Global.cplace[1]][Global.cplace[2]][1]
player.position.y = Global.places[Global.cplace[0]][Global.cplace[1]][Global.cplace[2]][2]
music = load(musictrack)
get_tree().root.add_child.call_deferred(level)
get_tree().root.add_child.call_deferred(player)
bgsound.stream = music
if !isboss:
bgsound.play(0)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _input(event):
if Input.is_key_pressed(KEY_ESCAPE) || Input.is_joy_button_pressed(0,JOY_BUTTON_BACK):
get_tree().root.remove_child(player)
get_tree().root.remove_child(level)
if Global.debug:
get_tree().change_scene_to_file("res://levels/ui/scene.tscn")
else:
get_tree().change_scene_to_file("res://title.tscn")

6
levels/ui/gameplay.tscn Normal file
View file

@ -0,0 +1,6 @@
[gd_scene load_steps=2 format=3 uid="uid://o4fdhf0tco2h"]
[ext_resource type="Script" path="res://levels/ui/gameplay.gd" id="1_swekd"]
[node name="Gameplay" type="Node2D"]
script = ExtResource("1_swekd")

View file

@ -48,7 +48,7 @@ func _input(event):
func _on_back_pressed(): func _on_back_pressed():
get_tree().change_scene_to_file("res://levels/soundtest.tscn") get_tree().change_scene_to_file("res://levels/ui/soundtest.tscn")
func _on_title_screen_pressed(): func _on_title_screen_pressed():

View file

@ -1,6 +1,6 @@
[gd_scene load_steps=8 format=3 uid="uid://v2cnmd1atfw1"] [gd_scene load_steps=8 format=3 uid="uid://v2cnmd1atfw1"]
[ext_resource type="Script" path="res://levels/musictest.gd" id="1_mulrj"] [ext_resource type="Script" path="res://levels/ui/musictest.gd" id="1_mulrj"]
[ext_resource type="VideoStream" path="res://backgounds/nebula_-_6044 (720p).ogv" id="2_hc5pw"] [ext_resource type="VideoStream" path="res://backgounds/nebula_-_6044 (720p).ogv" id="2_hc5pw"]
[ext_resource type="Script" path="res://nebula.gd" id="3_4oqoj"] [ext_resource type="Script" path="res://nebula.gd" id="3_4oqoj"]
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="4_a1ux8"] [ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="4_a1ux8"]

View file

@ -43,10 +43,10 @@ func _input(event):
func _on_back_pressed(): func _on_back_pressed():
get_tree().change_scene_to_file("res://levels/debug.tscn") get_tree().change_scene_to_file("res://levels/ui/debug.tscn")
func _on_credits_pressed(): func _on_credits_pressed():
get_tree().change_scene_to_file("res://levels/credits.tscn") get_tree().change_scene_to_file("res://levels/ui/credits.tscn")
func _on_wip_pressed(): func _on_wip_pressed():
@ -59,3 +59,7 @@ func _on_results_pressed():
func _on_disclaimer_pressed(): func _on_disclaimer_pressed():
get_tree().change_scene_to_file("res://backgounds/disclaimer.tscn") get_tree().change_scene_to_file("res://backgounds/disclaimer.tscn")
func _on_testrooms_pressed():
get_tree().change_scene_to_file("res://levels/ui/testrooms.tscn")

View file

@ -1,6 +1,6 @@
[gd_scene load_steps=7 format=3 uid="uid://duyxejhnys1l4"] [gd_scene load_steps=7 format=3 uid="uid://duyxejhnys1l4"]
[ext_resource type="Script" path="res://levels/scene.gd" id="1_hxcrn"] [ext_resource type="Script" path="res://levels/ui/scene.gd" id="1_hxcrn"]
[ext_resource type="VideoStream" path="res://backgounds/nebula_-_6044 (720p).ogv" id="2_nvftm"] [ext_resource type="VideoStream" path="res://backgounds/nebula_-_6044 (720p).ogv" id="2_nvftm"]
[ext_resource type="Script" path="res://nebula.gd" id="3_6sds4"] [ext_resource type="Script" path="res://nebula.gd" id="3_6sds4"]
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="4_2y7h7"] [ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="4_2y7h7"]
@ -57,6 +57,12 @@ theme_override_font_sizes/font_size = 32
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs") theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
text = "Disclaimer" text = "Disclaimer"
[node name="Testrooms" type="Button" parent="VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 32
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
text = "Test Rooms"
[node name="Results" type="Button" parent="VBoxContainer"] [node name="Results" type="Button" parent="VBoxContainer"]
layout_mode = 2 layout_mode = 2
theme_override_font_sizes/font_size = 32 theme_override_font_sizes/font_size = 32
@ -86,6 +92,7 @@ layout_mode = 1
[connection signal="finished" from="nebula" to="nebula" method="_on_finished"] [connection signal="finished" from="nebula" to="nebula" method="_on_finished"]
[connection signal="pressed" from="VBoxContainer/Disclaimer" to="." method="_on_disclaimer_pressed"] [connection signal="pressed" from="VBoxContainer/Disclaimer" to="." method="_on_disclaimer_pressed"]
[connection signal="pressed" from="VBoxContainer/Testrooms" to="." method="_on_testrooms_pressed"]
[connection signal="pressed" from="VBoxContainer/Results" to="." method="_on_results_pressed"] [connection signal="pressed" from="VBoxContainer/Results" to="." method="_on_results_pressed"]
[connection signal="pressed" from="VBoxContainer/Credits" to="." method="_on_credits_pressed"] [connection signal="pressed" from="VBoxContainer/Credits" to="." method="_on_credits_pressed"]
[connection signal="pressed" from="VBoxContainer/WIP" to="." method="_on_wip_pressed"] [connection signal="pressed" from="VBoxContainer/WIP" to="." method="_on_wip_pressed"]

View file

@ -48,5 +48,5 @@ func _input(event):
func _on_back_pressed(): func _on_back_pressed():
get_tree().change_scene_to_file("res://levels/soundtest.tscn") get_tree().change_scene_to_file("res://levels/ui/soundtest.tscn")

View file

@ -1,6 +1,6 @@
[gd_scene load_steps=8 format=3 uid="uid://cv2a37xetkkse"] [gd_scene load_steps=8 format=3 uid="uid://cv2a37xetkkse"]
[ext_resource type="Script" path="res://levels/sfxtest.gd" id="1_l1lbb"] [ext_resource type="Script" path="res://levels/ui/sfxtest.gd" id="1_l1lbb"]
[ext_resource type="VideoStream" path="res://backgounds/nebula_-_6044 (720p).ogv" id="2_c55jp"] [ext_resource type="VideoStream" path="res://backgounds/nebula_-_6044 (720p).ogv" id="2_c55jp"]
[ext_resource type="Script" path="res://nebula.gd" id="3_yeu3h"] [ext_resource type="Script" path="res://nebula.gd" id="3_yeu3h"]
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="4_xxv3m"] [ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="4_xxv3m"]

View file

@ -28,13 +28,13 @@ func _input(event):
func _on_back_pressed(): func _on_back_pressed():
get_tree().change_scene_to_file("res://levels/debug.tscn") get_tree().change_scene_to_file("res://levels/ui/tmenu.tscn")
func _on_music_pressed(): func _on_music_pressed():
get_tree().change_scene_to_file("res://levels/musictest.tscn") get_tree().change_scene_to_file("res://levels/ui/musictest.tscn")
func _on_sfx_pressed(): func _on_sfx_pressed():
get_tree().change_scene_to_file("res://levels/sfxtest.tscn") get_tree().change_scene_to_file("res://levels/ui/sfxtest.tscn")

View file

@ -1,6 +1,6 @@
[gd_scene load_steps=8 format=3 uid="uid://chg6qe1fijkh3"] [gd_scene load_steps=8 format=3 uid="uid://chg6qe1fijkh3"]
[ext_resource type="Script" path="res://levels/soundtest.gd" id="1_3bg6p"] [ext_resource type="Script" path="res://levels/ui/soundtest.gd" id="1_3bg6p"]
[ext_resource type="VideoStream" path="res://backgounds/nebula_-_6044 (720p).ogv" id="2_abtft"] [ext_resource type="VideoStream" path="res://backgounds/nebula_-_6044 (720p).ogv" id="2_abtft"]
[ext_resource type="Script" path="res://nebula.gd" id="3_c33nl"] [ext_resource type="Script" path="res://nebula.gd" id="3_c33nl"]
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="4_2a53a"] [ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="4_2a53a"]

View file

@ -1,17 +1,17 @@
[gd_scene load_steps=2 format=3 uid="uid://cd8hd11usuhbu"] [gd_scene load_steps=2 format=3 uid="uid://cd8hd11usuhbu"]
[ext_resource type="Texture2D" uid="uid://bb4sw2rhdbjbf" path="res://sprites/placeholder/face.png" id="1_3sqvt"] [ext_resource type="Texture2D" uid="uid://bb4sw2rhdbjbf" path="res://sprites/common/placeholder/face.png" id="1_4l8il"]
[node name="Talk" type="Node2D"] [node name="Talk" type="Node2D"]
[node name="TextureRect" type="TextureRect" parent="."] [node name="Playerface" type="TextureRect" parent="."]
offset_left = 511.0 offset_left = 511.0
offset_top = 35.0 offset_top = 35.0
offset_right = 767.0 offset_right = 767.0
offset_bottom = 291.0 offset_bottom = 291.0
texture = ExtResource("1_3sqvt") texture = ExtResource("1_4l8il")
[node name="ColorRect" type="ColorRect" parent="."] [node name="Textbox" type="ColorRect" parent="."]
offset_left = 41.0 offset_left = 41.0
offset_top = 319.0 offset_top = 319.0
offset_right = 1243.0 offset_right = 1243.0
@ -22,8 +22,18 @@ color = Color(0.254902, 0.254902, 0.254902, 1)
offset_left = 41.0 offset_left = 41.0
offset_top = 319.0 offset_top = 319.0
offset_right = 1243.0 offset_right = 1243.0
offset_bottom = 681.0 offset_bottom = 412.0
theme_override_font_sizes/font_size = 68 theme_override_font_sizes/font_size = 68
text = "Your text goes here" text = "Character name goes here"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Dialog" type="Label" parent="."]
offset_left = 41.0
offset_top = 414.0
offset_right = 1243.0
offset_bottom = 681.0
theme_override_font_sizes/font_size = 68
text = "Your dialog goes here"
horizontal_alignment = 1 horizontal_alignment = 1
vertical_alignment = 1 vertical_alignment = 1

56
levels/ui/testrooms.gd Normal file
View file

@ -0,0 +1,56 @@
extends Control
func _ready():
Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)
$"VBoxContainer/Testspawn".grab_focus()
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _level():
# This is like autoloading the scene, only
# it happens after already loading the main scene.
get_tree().change_scene_to_file("res://backgounds/disclaimer.tscn")
#Global.live = 1
#Global.gamelevel = randi() % 3
#if Global.gamelevel == 0:
# get_tree().change_scene_to_file("res://backgounds/galaxy.tscn")
#elif Global.gamelevel == 1:
# get_tree().change_scene_to_file("res://backgounds/wormhole.tscn")
#else:
# get_tree().change_scene_to_file("res://backgounds/abstract.tscn")
#get_tree().root.add_child(title)
#get_tree().root.remove_child(boot)
#boot.queue_free()
func _input(event):
# Mouse in viewport coordinates.
if Input.is_action_just_pressed("ui_cancel"):
_on_back_pressed()
#print("Mouse Click/Unclick at: ", event.position)
# if highlighted == 1:
# _on_debug_pressed()
# if highlighted == 2:
# _on_exit_pressed()
# else:
# _on_start_pressed()
# elif Input.is_action_pressed("ui_up"):
# focus_next
func _on_back_pressed():
get_tree().change_scene_to_file("res://levels/ui/scene.tscn")
func _on_testspawn_pressed():
Global.dplace = [0, 2, 1]
get_tree().change_scene_to_file("res://levels/ui/gameplay.tscn")
func _on_testboss_pressed():
Global.dplace = [0, 1, 1]
get_tree().change_scene_to_file("res://levels/ui/gameplay.tscn")

91
levels/ui/testrooms.tscn Normal file
View file

@ -0,0 +1,91 @@
[gd_scene load_steps=7 format=3 uid="uid://b0pgk6d871bor"]
[ext_resource type="Script" path="res://levels/ui/testrooms.gd" id="1_p5nnr"]
[ext_resource type="VideoStream" path="res://backgounds/nebula_-_6044 (720p).ogv" id="2_wyg0k"]
[ext_resource type="Script" path="res://nebula.gd" id="3_co5y6"]
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="4_jvl8w"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6u0xs"]
bg_color = Color(0, 0.8, 0, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_r2qrn"]
bg_color = Color(0, 0.8, 0, 1)
[node name="Testrooms" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_p5nnr")
[node name="nebula" type="VideoStreamPlayer" parent="."]
layout_mode = 0
offset_right = 640.0
offset_bottom = 368.0
scale = Vector2(2, 1.96)
stream = ExtResource("2_wyg0k")
autoplay = true
script = ExtResource("3_co5y6")
[node name="Game name" type="Label" parent="."]
layout_mode = 0
offset_left = 496.0
offset_top = 3.0
offset_right = 790.0
offset_bottom = 73.0
theme_override_font_sizes/font_size = 40
text = "Test Rooms"
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -129.5
offset_top = -362.0
offset_right = 129.5
grow_horizontal = 2
grow_vertical = 0
[node name="Testspawn" type="Button" parent="VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 32
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
text = "Test Spawn"
[node name="Testboss" type="Button" parent="VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 32
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
text = "Test Boss
"
[node name="Credits" type="Button" parent="VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 32
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
text = "Unused"
[node name="WIP" type="Button" parent="VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 32
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
text = "Unused"
[node name="Back" type="Button" parent="VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 32
theme_override_styles/focus = SubResource("StyleBoxFlat_r2qrn")
text = "Back"
[node name="Bottomhud" parent="." instance=ExtResource("4_jvl8w")]
layout_mode = 1
[connection signal="finished" from="nebula" to="nebula" method="_on_finished"]
[connection signal="pressed" from="VBoxContainer/Testspawn" to="." method="_on_testspawn_pressed"]
[connection signal="pressed" from="VBoxContainer/Testboss" to="." method="_on_testboss_pressed"]
[connection signal="pressed" from="VBoxContainer/Back" to="." method="_on_back_pressed"]

View file

@ -43,7 +43,7 @@ func _on_start_pressed():
func _on_debug_pressed(): func _on_debug_pressed():
get_tree().change_scene_to_file("res://levels/debug.tscn") get_tree().change_scene_to_file("res://levels/ui/debug.tscn")
func _on_exit_pressed(): func _on_exit_pressed():

View file

@ -1,7 +1,7 @@
[gd_scene load_steps=8 format=3 uid="uid://s8ttuboef06k"] [gd_scene load_steps=8 format=3 uid="uid://s8ttuboef06k"]
[ext_resource type="VideoStream" path="res://backgounds/nebula_-_6044 (720p).ogv" id="1_33b4o"] [ext_resource type="VideoStream" path="res://backgounds/nebula_-_6044 (720p).ogv" id="1_33b4o"]
[ext_resource type="Script" path="res://levels/tmenu.gd" id="1_w3aym"] [ext_resource type="Script" path="res://levels/ui/tmenu.gd" id="1_w3aym"]
[ext_resource type="Script" path="res://nebula.gd" id="2_x35ws"] [ext_resource type="Script" path="res://nebula.gd" id="2_x35ws"]
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="4_0qcfw"] [ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="4_0qcfw"]

View file

@ -17,7 +17,7 @@ tracks/0/keys = {
"times": PackedFloat32Array(0), "times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1), "transitions": PackedFloat32Array(1),
"update": 1, "update": 1,
"values": [2] "values": [0]
} }
[sub_resource type="Animation" id="Animation_cajcr"] [sub_resource type="Animation" id="Animation_cajcr"]
@ -99,7 +99,6 @@ _data = {
texture = ExtResource("1_oqq2w") texture = ExtResource("1_oqq2w")
hframes = 3 hframes = 3
vframes = 2 vframes = 2
frame = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 0.25) position = Vector2(0, 0.25)

View file

@ -3,15 +3,15 @@
importer="texture" importer="texture"
type="CompressedTexture2D" type="CompressedTexture2D"
uid="uid://bb4sw2rhdbjbf" uid="uid://bb4sw2rhdbjbf"
path="res://.godot/imported/face.png-5c2e95a83c1bd2f50674a584a2d88c4c.ctex" path="res://.godot/imported/face.png-1c594c584b4f1920bcf388a9791a76e8.ctex"
metadata={ metadata={
"vram_texture": false "vram_texture": false
} }
[deps] [deps]
source_file="res://sprites/placeholder/face.png" source_file="res://sprites/common/placeholder/face.png"
dest_files=["res://.godot/imported/face.png-5c2e95a83c1bd2f50674a584a2d88c4c.ctex"] dest_files=["res://.godot/imported/face.png-1c594c584b4f1920bcf388a9791a76e8.ctex"]
[params] [params]

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://jvonhohp1dj7"
path="res://.godot/imported/fullbody.png-439828a8054d750e5b39aa0dc76f4f4b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/common/placeholder/fullbody.png"
dest_files=["res://.godot/imported/fullbody.png-439828a8054d750e5b39aa0dc76f4f4b.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View file

@ -3,15 +3,15 @@
importer="texture" importer="texture"
type="CompressedTexture2D" type="CompressedTexture2D"
uid="uid://dursxelwwxe8u" uid="uid://dursxelwwxe8u"
path="res://.godot/imported/player.png-132d3a237e614f1ef29e140714a5341a.ctex" path="res://.godot/imported/player.png-e7065df61843ebbfe12674e7da0fe6e4.ctex"
metadata={ metadata={
"vram_texture": false "vram_texture": false
} }
[deps] [deps]
source_file="res://sprites/placeholder/player.png" source_file="res://sprites/common/placeholder/player.png"
dest_files=["res://.godot/imported/player.png-132d3a237e614f1ef29e140714a5341a.ctex"] dest_files=["res://.godot/imported/player.png-e7065df61843ebbfe12674e7da0fe6e4.ctex"]
[params] [params]

View file

@ -28,7 +28,7 @@ func _input(event):
# Mouse in viewport coordinates. # Mouse in viewport coordinates.
if Input.is_action_just_pressed("ui_accept"): if Input.is_action_just_pressed("ui_accept"):
#print("Mouse Click/Unclick at: ", event.position) #print("Mouse Click/Unclick at: ", event.position)
get_tree().change_scene_to_file("res://levels/tmenu.tscn") get_tree().change_scene_to_file("res://levels/ui/tmenu.tscn")
#_level() #_level()
elif Input.is_action_just_pressed("ui_cancel"): elif Input.is_action_just_pressed("ui_cancel"):
get_tree().quit() get_tree().quit()