diff --git a/backgounds/abstract.gd b/backgounds/abstract.gd new file mode 100644 index 0000000..9a8a8d9 --- /dev/null +++ b/backgounds/abstract.gd @@ -0,0 +1,61 @@ +extends Node2D + + +# Called when the node enters the scene tree for the first time. +var wormhole = load("res://levels/abstract.tscn").instantiate() + +func _ready(): + get_tree().root.add_child.call_deferred(wormhole) + Global.wait = Time.get_ticks_msec() + #pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + if Time.get_ticks_msec() - Global.wait > Global.timelimit: + Global.live = 2 + if (Time.get_ticks_msec() - Global.wait) >= 1000 && (Input.is_key_pressed(KEY_ESCAPE) || Input.is_joy_button_pressed(0,JOY_BUTTON_X) || Input.is_joy_button_pressed(0,JOY_BUTTON_Y) || Input.is_joy_button_pressed(0,JOY_BUTTON_A) || Input.is_joy_button_pressed(0,JOY_BUTTON_B) || Input.is_joy_button_pressed(0,JOY_BUTTON_BACK) || Input.is_joy_button_pressed(0,JOY_BUTTON_START) || Input.is_joy_button_pressed(0,JOY_BUTTON_RIGHT_SHOULDER) || Input.is_joy_button_pressed(0,JOY_BUTTON_LEFT_SHOULDER)): + #print("Mouse Click/Unclick at: ", event.position) + _title() + elif Input.is_key_pressed(KEY_C): + Global.live = 2 + elif Input.is_key_pressed(KEY_V): + Global.live = 3 + if Global.live == 0: + _title() + elif Global.live == 2: + _crash() + elif Global.live == 3: + _complete() + #pass + +func _title(): + # This is like autoloading the scene, only + # it happens after already loading the main scene. + get_tree().root.remove_child(wormhole) + get_tree().change_scene_to_file("res://title.tscn") + #get_tree().root.add_child(title) + #get_tree().root.remove_child(boot) + #boot.queue_free() + +func _crash(): + # This is like autoloading the scene, only + # it happens after already loading the main scene. + Global.time = Time.get_ticks_msec() - Global.wait + await get_tree().create_timer(1.0).timeout + queue_free() + get_tree().root.remove_child(wormhole) + get_tree().change_scene_to_file("res://backgounds/supernova.tscn") + #get_tree().root.add_child(title) + #get_tree().root.remove_child(boot) + #boot.queue_free() + +func _complete(): + # This is like autoloading the scene, only + # it happens after already loading the main scene. + Global.time = Time.get_ticks_msec() - Global.wait + get_tree().root.remove_child(wormhole) + get_tree().change_scene_to_file("res://levels/credits.tscn") + #get_tree().root.add_child(title) + #get_tree().root.remove_child(boot) + #boot.queue_free() diff --git a/backgounds/abstract.tscn b/backgounds/abstract.tscn new file mode 100644 index 0000000..9bcc574 --- /dev/null +++ b/backgounds/abstract.tscn @@ -0,0 +1,12 @@ +[gd_scene load_steps=3 format=3 uid="uid://by7ktb1k5ml5y"] + +[ext_resource type="Script" path="res://backgounds/abstract.gd" id="1_wbg2a"] +[ext_resource type="Texture2D" uid="uid://qmyfeu4jrmbv" path="res://backgounds/abstract.png" id="2_voi7p"] + +[node name="abstract" type="Node2D"] +script = ExtResource("1_wbg2a") + +[node name="TextureRect" type="TextureRect" parent="."] +offset_right = 1280.0 +offset_bottom = 720.0 +texture = ExtResource("2_voi7p") diff --git a/levels/abstract.gd b/levels/abstract.gd new file mode 100644 index 0000000..d580641 --- /dev/null +++ b/levels/abstract.gd @@ -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/truth.ogg") + 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 diff --git a/levels/abstract.tscn b/levels/abstract.tscn new file mode 100644 index 0000000..9f3cfcc --- /dev/null +++ b/levels/abstract.tscn @@ -0,0 +1,174 @@ +[gd_scene load_steps=22 format=3 uid="uid://b82huqhu88xt6"] + +[ext_resource type="Script" path="res://levels/abstract.gd" id="1_id1o1"] +[ext_resource type="Script" path="res://levels/css1.gd" id="3_4xg6i"] +[ext_resource type="Texture2D" uid="uid://cm7hwbkh1u3g0" path="res://sprites/martian.png" id="6_8751b"] +[ext_resource type="Texture2D" uid="uid://ceh1tqde5n0t0" path="res://sprites/astronaut.png" id="8_1mpr5"] +[ext_resource type="Texture2D" uid="uid://bows52y4q3suo" path="res://sprites/antenna.png" id="8_7cq8u"] +[ext_resource type="Script" path="res://levels/antenna.gd" id="9_cr36o"] +[ext_resource type="Texture2D" uid="uid://cpd31c6o18rmh" path="res://sprites/ss.png" id="10_shrek"] +[ext_resource type="Texture2D" uid="uid://dq06yjgibl0u1" path="res://sprites/asteroid.png" id="11_bwi0e"] +[ext_resource type="Script" path="res://levels/ast1.gd" id="12_s1o5o"] +[ext_resource type="Script" path="res://levels/ast2.gd" id="13_xw0he"] +[ext_resource type="Script" path="res://levels/ast3.gd" id="14_xcrsk"] +[ext_resource type="Script" path="res://levels/ss.gd" id="15_hsg5e"] +[ext_resource type="Script" path="res://levels/wall1.gd" id="15_yx2oo"] +[ext_resource type="Script" path="res://levels/wall2.gd" id="16_el0w3"] +[ext_resource type="Script" path="res://levels/wall3.gd" id="17_pl58r"] +[ext_resource type="Script" path="res://levels/wall4.gd" id="18_ptooy"] +[ext_resource type="Script" path="res://fps.gd" id="20_li4sv"] +[ext_resource type="Script" path="res://backgounds/Home.gd" id="21_ipbod"] +[ext_resource type="Script" path="res://levels/timelimit.gd" id="21_tw1es"] + +[sub_resource type="Gradient" id="Gradient_3wb6i"] +colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 1) + +[sub_resource type="GradientTexture1D" id="GradientTexture1D_8jpuy"] +gradient = SubResource("Gradient_3wb6i") + +[node name="abstract" type="Node2D"] +script = ExtResource("1_id1o1") + +[node name="ast1" type="Sprite2D" parent="."] +position = Vector2(934, 569) +scale = Vector2(0.3, 0.3) +texture = ExtResource("11_bwi0e") +script = ExtResource("12_s1o5o") + +[node name="ast2" type="Sprite2D" parent="."] +position = Vector2(555, 705) +scale = Vector2(0.3, 0.3) +texture = ExtResource("11_bwi0e") +script = ExtResource("13_xw0he") + +[node name="ast3" type="Sprite2D" parent="."] +position = Vector2(1257, 644) +scale = Vector2(0.3, 0.3) +texture = ExtResource("11_bwi0e") +script = ExtResource("14_xcrsk") + +[node name="martian1" type="Sprite2D" parent="."] +position = Vector2(743, 96.0001) +scale = Vector2(0.1, 0.1) +texture = ExtResource("6_8751b") +script = ExtResource("3_4xg6i") + +[node name="martian2" type="Sprite2D" parent="."] +position = Vector2(1863, 618) +scale = Vector2(0.1, 0.1) +texture = ExtResource("6_8751b") +script = ExtResource("3_4xg6i") + +[node name="martian3" type="Sprite2D" parent="."] +position = Vector2(989, 536) +scale = Vector2(0.1, 0.1) +texture = ExtResource("6_8751b") +script = ExtResource("3_4xg6i") + +[node name="martian4" type="Sprite2D" parent="."] +position = Vector2(1675, 901) +scale = Vector2(0.1, 0.1) +texture = ExtResource("6_8751b") +script = ExtResource("3_4xg6i") + +[node name="martian5" type="Sprite2D" parent="."] +position = Vector2(1211, 293) +scale = Vector2(0.1, 0.1) +texture = ExtResource("6_8751b") +script = ExtResource("3_4xg6i") + +[node name="martian6" type="Sprite2D" parent="."] +position = Vector2(1523, 1534) +scale = Vector2(0.1, 0.1) +texture = ExtResource("6_8751b") +script = ExtResource("3_4xg6i") + +[node name="astronaut1" type="Sprite2D" parent="."] +position = Vector2(1059, 821) +scale = Vector2(0.1, 0.1) +texture = ExtResource("8_1mpr5") +script = ExtResource("3_4xg6i") + +[node name="astronaut2" type="Sprite2D" parent="."] +position = Vector2(1511, 1290) +scale = Vector2(0.1, 0.1) +texture = ExtResource("8_1mpr5") +script = ExtResource("3_4xg6i") + +[node name="astronaut3" type="Sprite2D" parent="."] +position = Vector2(1621, 410) +scale = Vector2(0.1, 0.1) +texture = ExtResource("8_1mpr5") +script = ExtResource("3_4xg6i") + +[node name="astronaut4" type="Sprite2D" parent="."] +position = Vector2(880, 294) +scale = Vector2(0.1, 0.1) +texture = ExtResource("8_1mpr5") +script = ExtResource("3_4xg6i") + +[node name="astronaut5" type="Sprite2D" parent="."] +position = Vector2(1890, 1021) +scale = Vector2(0.1, 0.1) +texture = ExtResource("8_1mpr5") +script = ExtResource("3_4xg6i") + +[node name="astronaut6" type="Sprite2D" parent="."] +position = Vector2(1665, 41) +scale = Vector2(0.1, 0.1) +texture = ExtResource("8_1mpr5") +script = ExtResource("3_4xg6i") + +[node name="antenna" type="Sprite2D" parent="."] +position = Vector2(2146, 390) +scale = Vector2(0.3, 0.3) +texture = ExtResource("8_7cq8u") +script = ExtResource("9_cr36o") + +[node name="ss" type="Sprite2D" parent="."] +position = Vector2(640, 360) +scale = Vector2(0.3, 0.3) +texture = ExtResource("10_shrek") +script = ExtResource("15_hsg5e") + +[node name="wall1" type="Sprite2D" parent="."] +position = Vector2(338.5, 688.5) +scale = Vector2(0.332031, 2539) +texture = SubResource("GradientTexture1D_8jpuy") +script = ExtResource("15_yx2oo") + +[node name="wall2" type="Sprite2D" parent="."] +position = Vector2(2249, 848) +scale = Vector2(0.332031, 2534.5) +texture = SubResource("GradientTexture1D_8jpuy") +script = ExtResource("16_el0w3") + +[node name="wall3" type="Sprite2D" parent="."] +position = Vector2(2298, -118) +scale = Vector2(15.707, 111) +texture = SubResource("GradientTexture1D_8jpuy") +script = ExtResource("17_pl58r") + +[node name="wall4" type="Sprite2D" parent="."] +position = Vector2(2302, 1769) +scale = Vector2(15.707, 111) +texture = SubResource("GradientTexture1D_8jpuy") +script = ExtResource("18_ptooy") + +[node name="fps" type="Label" parent="."] +offset_right = 40.0 +offset_bottom = 23.0 +script = ExtResource("20_li4sv") + +[node name="timelimit" type="Label" parent="."] +offset_left = 204.0 +offset_right = 244.0 +offset_bottom = 23.0 +script = ExtResource("21_tw1es") + +[node name="Home" type="TextureButton" parent="."] +offset_left = 52.0 +offset_top = 39.0 +offset_right = 125.0 +offset_bottom = 110.0 +script = ExtResource("21_ipbod") diff --git a/levels/antenna.gd b/levels/antenna.gd index f263c70..4cba467 100644 --- a/levels/antenna.gd +++ b/levels/antenna.gd @@ -15,27 +15,28 @@ func _process(delta): var xm = 0 var ym = 0 var velocity = Vector2.ZERO - if Input.get_joy_axis(0,JOY_AXIS_LEFT_X) > 0.2 || Input.get_joy_axis(0,JOY_AXIS_LEFT_Y) > 0.2 || Input.get_joy_axis(0,JOY_AXIS_LEFT_X) < -0.2 || Input.get_joy_axis(0,JOY_AXIS_LEFT_Y) < -0.2: - velocity = (Vector2.RIGHT.rotated(rotation) * -50000 * delta * Input.get_joy_axis(0,JOY_AXIS_LEFT_X))-Vector2.UP.rotated(rotation) * -50000 *delta * Input.get_joy_axis(0,JOY_AXIS_LEFT_Y) - elif Input.is_mouse_button_pressed(MOUSE_BUTTON_LEFT): + if Global.live == 1: + if Input.get_joy_axis(0,JOY_AXIS_LEFT_X) > 0.2 || Input.get_joy_axis(0,JOY_AXIS_LEFT_Y) > 0.2 || Input.get_joy_axis(0,JOY_AXIS_LEFT_X) < -0.2 || Input.get_joy_axis(0,JOY_AXIS_LEFT_Y) < -0.2: + velocity = (Vector2.RIGHT.rotated(rotation) * -50000 * delta * Input.get_joy_axis(0,JOY_AXIS_LEFT_X))-Vector2.UP.rotated(rotation) * -50000 *delta * Input.get_joy_axis(0,JOY_AXIS_LEFT_Y) + elif Input.is_mouse_button_pressed(MOUSE_BUTTON_LEFT): #var mousepos = get_viewport().get_mouse_position() - origmpos - self.position = Vector2(origpos.x+(Global.mousepos.x*5), origpos.y+(Global.mousepos.y*5)) - else: - if Input.is_action_pressed("ui_left") || Input.is_key_pressed(KEY_A): - xm = -1 - if Input.is_action_pressed("ui_right") || Input.is_key_pressed(KEY_D): - xm = 1 - if Input.is_action_pressed("ui_up") || Input.is_key_pressed(KEY_W): - ym = -1 - if Input.is_action_pressed("ui_down") || Input.is_key_pressed(KEY_S): - ym = 1 - velocity = (Vector2.RIGHT.rotated(rotation) * -50000 * xm * delta)-Vector2.UP.rotated(rotation) * -50000 * ym * delta - origpos = self.position + self.position = Vector2(origpos.x+(Global.mousepos.x*5), origpos.y+(Global.mousepos.y*5)) + else: + if Input.is_action_pressed("ui_left") || Input.is_key_pressed(KEY_A): + xm = -1 + if Input.is_action_pressed("ui_right") || Input.is_key_pressed(KEY_D): + xm = 1 + if Input.is_action_pressed("ui_up") || Input.is_key_pressed(KEY_W): + ym = -1 + if Input.is_action_pressed("ui_down") || Input.is_key_pressed(KEY_S): + ym = 1 + velocity = (Vector2.RIGHT.rotated(rotation) * -50000 * xm * delta)-Vector2.UP.rotated(rotation) * -50000 * ym * delta + origpos = self.position #origmpos = get_viewport().get_mouse_position() #if Input.get_joy_axis(0,JOY_AXIS_LEFT_Y) != 0: # velocity = Vector2.UP.rotated(rotation) * -400 * Input.get_joy_axis(0,JOY_AXIS_LEFT_Y) - position += velocity * delta - if position.x < 782 && position.x > 496: - if position.y < 468 && position.y > 270: - Global.live = 3 + position += velocity * delta + if position.x < 782 && position.x > 496: + if position.y < 468 && position.y > 270: + Global.live = 3 #pass diff --git a/music/broken.ogg b/music/broken.ogg new file mode 100644 index 0000000..a42af0f Binary files /dev/null and b/music/broken.ogg differ diff --git a/music/broken.ogg.import b/music/broken.ogg.import new file mode 100644 index 0000000..da470eb --- /dev/null +++ b/music/broken.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://clwa4onr8gogk" +path="res://.godot/imported/broken.ogg-b6da3a42a9cbc07bcc0e6ac5061e0643.oggvorbisstr" + +[deps] + +source_file="res://music/broken.ogg" +dest_files=["res://.godot/imported/broken.ogg-b6da3a42a9cbc07bcc0e6ac5061e0643.oggvorbisstr"] + +[params] + +loop=true +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/music/maran.ogg b/music/maran.ogg new file mode 100644 index 0000000..4ec857c Binary files /dev/null and b/music/maran.ogg differ diff --git a/music/maran.ogg.import b/music/maran.ogg.import new file mode 100644 index 0000000..4f0f23b --- /dev/null +++ b/music/maran.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://d0c1hwljm6mua" +path="res://.godot/imported/maran.ogg-732c7284083a51c684fde3d15d30fa64.oggvorbisstr" + +[deps] + +source_file="res://music/maran.ogg" +dest_files=["res://.godot/imported/maran.ogg-732c7284083a51c684fde3d15d30fa64.oggvorbisstr"] + +[params] + +loop=true +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/music/orion.ogg b/music/orion.ogg new file mode 100644 index 0000000..f7b6837 Binary files /dev/null and b/music/orion.ogg differ diff --git a/music/orion.ogg.import b/music/orion.ogg.import new file mode 100644 index 0000000..63ddb3e --- /dev/null +++ b/music/orion.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://dp2kyp7w1sc4" +path="res://.godot/imported/orion.ogg-fecd483918c6d835e8fa88316191271c.oggvorbisstr" + +[deps] + +source_file="res://music/orion.ogg" +dest_files=["res://.godot/imported/orion.ogg-fecd483918c6d835e8fa88316191271c.oggvorbisstr"] + +[params] + +loop=true +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/music/oskars.ogg b/music/oskars.ogg new file mode 100644 index 0000000..2557b2d Binary files /dev/null and b/music/oskars.ogg differ diff --git a/music/oskars.ogg.import b/music/oskars.ogg.import new file mode 100644 index 0000000..3c0d280 --- /dev/null +++ b/music/oskars.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://lofndxwww0bb" +path="res://.godot/imported/oskars.ogg-6a64b587ae8d7afc85dd91c9762d12ac.oggvorbisstr" + +[deps] + +source_file="res://music/oskars.ogg" +dest_files=["res://.godot/imported/oskars.ogg-6a64b587ae8d7afc85dd91c9762d12ac.oggvorbisstr"] + +[params] + +loop=true +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/music/rock.ogg b/music/rock.ogg new file mode 100644 index 0000000..c226e3d Binary files /dev/null and b/music/rock.ogg differ diff --git a/music/rock.ogg.import b/music/rock.ogg.import new file mode 100644 index 0000000..d7b26f1 --- /dev/null +++ b/music/rock.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://bsv2u6k8bgo4s" +path="res://.godot/imported/rock.ogg-0630fefbc926e70fcb0dea6741bb128f.oggvorbisstr" + +[deps] + +source_file="res://music/rock.ogg" +dest_files=["res://.godot/imported/rock.ogg-0630fefbc926e70fcb0dea6741bb128f.oggvorbisstr"] + +[params] + +loop=true +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/music/rose.ogg b/music/rose.ogg new file mode 100644 index 0000000..40241a1 Binary files /dev/null and b/music/rose.ogg differ diff --git a/music/rose.ogg.import b/music/rose.ogg.import new file mode 100644 index 0000000..6bab0c3 --- /dev/null +++ b/music/rose.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://bhkxv1cs86t37" +path="res://.godot/imported/rose.ogg-d3791d810f5968a8c057b001c7c7506f.oggvorbisstr" + +[deps] + +source_file="res://music/rose.ogg" +dest_files=["res://.godot/imported/rose.ogg-d3791d810f5968a8c057b001c7c7506f.oggvorbisstr"] + +[params] + +loop=true +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/music/truth.ogg b/music/truth.ogg new file mode 100644 index 0000000..fd2bb2f Binary files /dev/null and b/music/truth.ogg differ diff --git a/music/truth.ogg.import b/music/truth.ogg.import new file mode 100644 index 0000000..ce05dfb --- /dev/null +++ b/music/truth.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://dhdk4wxxjf7wn" +path="res://.godot/imported/truth.ogg-9192737870bc7fa55812cd8a7d5a33a4.oggvorbisstr" + +[deps] + +source_file="res://music/truth.ogg" +dest_files=["res://.godot/imported/truth.ogg-9192737870bc7fa55812cd8a7d5a33a4.oggvorbisstr"] + +[params] + +loop=true +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/sprites/astronaut.png b/sprites/astronaut.png new file mode 100644 index 0000000..505f266 Binary files /dev/null and b/sprites/astronaut.png differ diff --git a/sprites/astronaut.png.import b/sprites/astronaut.png.import new file mode 100644 index 0000000..9ee713b --- /dev/null +++ b/sprites/astronaut.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ceh1tqde5n0t0" +path="res://.godot/imported/astronaut.png-2a23f31b6e906bee13448d7ef100b375.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://sprites/astronaut.png" +dest_files=["res://.godot/imported/astronaut.png-2a23f31b6e906bee13448d7ef100b375.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 diff --git a/sprites/martian.png b/sprites/martian.png new file mode 100644 index 0000000..f87510d Binary files /dev/null and b/sprites/martian.png differ diff --git a/sprites/martian.png.import b/sprites/martian.png.import new file mode 100644 index 0000000..474ba47 --- /dev/null +++ b/sprites/martian.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cm7hwbkh1u3g0" +path="res://.godot/imported/martian.png-159b11bd375f0c43054466e2863a8560.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://sprites/martian.png" +dest_files=["res://.godot/imported/martian.png-159b11bd375f0c43054466e2863a8560.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 diff --git a/title.gd b/title.gd index 732ca01..8df4757 100644 --- a/title.gd +++ b/title.gd @@ -32,10 +32,13 @@ func _level(): # This is like autoloading the scene, only # it happens after already loading the main scene. Global.live = 1 - if randi() % 2 == 0: + var level = randi() % 3 + if level == 0: get_tree().change_scene_to_file("res://backgounds/galaxy.tscn") - else: + elif level == 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()