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..de74377 --- /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_pph27"] +[ext_resource type="Texture2D" uid="uid://qmyfeu4jrmbv" path="res://backgounds/abstract.png" id="2_ivn17"] + +[node name="wormhole" type="Node2D"] +script = ExtResource("1_pph27") + +[node name="TextureRect" type="TextureRect" parent="."] +offset_right = 1280.0 +offset_bottom = 720.0 +texture = ExtResource("2_ivn17") diff --git a/levels/abstract.gd b/levels/abstract.gd new file mode 100644 index 0000000..fafae2e --- /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.wav") + 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..e2d05e7 --- /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://dhxjwha3mq5tx" path="res://sprites/martian.png" id="6_8751b"] +[ext_resource type="Texture2D" uid="uid://hpohy23ejlrm" 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.wav b/music/broken.wav new file mode 100644 index 0000000..8b74222 Binary files /dev/null and b/music/broken.wav differ diff --git a/music/broken.wav.import b/music/broken.wav.import new file mode 100644 index 0000000..453f07b --- /dev/null +++ b/music/broken.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dfipu171yc0c" +path="res://.godot/imported/broken.wav-9bf1c8f23bb1769fd0b99ca8bdfd60ea.sample" + +[deps] + +source_file="res://music/broken.wav" +dest_files=["res://.godot/imported/broken.wav-9bf1c8f23bb1769fd0b99ca8bdfd60ea.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=2 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=0 diff --git a/music/maran.wav b/music/maran.wav new file mode 100644 index 0000000..4df61cb Binary files /dev/null and b/music/maran.wav differ diff --git a/music/maran.wav.import b/music/maran.wav.import new file mode 100644 index 0000000..c234cfe --- /dev/null +++ b/music/maran.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dhprxrtcbw7fo" +path="res://.godot/imported/maran.wav-f360fc74f16659b57ef865dcd8adc07d.sample" + +[deps] + +source_file="res://music/maran.wav" +dest_files=["res://.godot/imported/maran.wav-f360fc74f16659b57ef865dcd8adc07d.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=2 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=0 diff --git a/music/orion.wav b/music/orion.wav new file mode 100644 index 0000000..593e84b Binary files /dev/null and b/music/orion.wav differ diff --git a/music/orion.wav.import b/music/orion.wav.import new file mode 100644 index 0000000..ac6a20c --- /dev/null +++ b/music/orion.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://chdsigcjqqsoe" +path="res://.godot/imported/orion.wav-830743a5cd9d83c39bca0bd8a69bb580.sample" + +[deps] + +source_file="res://music/orion.wav" +dest_files=["res://.godot/imported/orion.wav-830743a5cd9d83c39bca0bd8a69bb580.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=2 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=0 diff --git a/music/oskars.wav b/music/oskars.wav new file mode 100644 index 0000000..4e0e932 Binary files /dev/null and b/music/oskars.wav differ diff --git a/music/oskars.wav.import b/music/oskars.wav.import new file mode 100644 index 0000000..f8656f1 --- /dev/null +++ b/music/oskars.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dkkwx2elo0jxk" +path="res://.godot/imported/oskars.wav-748b759985aeacf983ebbe58e2f4b438.sample" + +[deps] + +source_file="res://music/oskars.wav" +dest_files=["res://.godot/imported/oskars.wav-748b759985aeacf983ebbe58e2f4b438.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=2 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=0 diff --git a/music/rock.wav b/music/rock.wav new file mode 100644 index 0000000..9f14b46 Binary files /dev/null and b/music/rock.wav differ diff --git a/music/rock.wav.import b/music/rock.wav.import new file mode 100644 index 0000000..9b67752 --- /dev/null +++ b/music/rock.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://daneha07ex3rr" +path="res://.godot/imported/rock.wav-e3359062c3afe81a0bdd88a06dc6cd71.sample" + +[deps] + +source_file="res://music/rock.wav" +dest_files=["res://.godot/imported/rock.wav-e3359062c3afe81a0bdd88a06dc6cd71.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=2 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=0 diff --git a/music/rose.wav b/music/rose.wav new file mode 100644 index 0000000..0592976 Binary files /dev/null and b/music/rose.wav differ diff --git a/music/rose.wav.import b/music/rose.wav.import new file mode 100644 index 0000000..5148920 --- /dev/null +++ b/music/rose.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dyfumi2v6wb1l" +path="res://.godot/imported/rose.wav-9b898aaccf9d9f9b5c2e0e05e5953beb.sample" + +[deps] + +source_file="res://music/rose.wav" +dest_files=["res://.godot/imported/rose.wav-9b898aaccf9d9f9b5c2e0e05e5953beb.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=2 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=0 diff --git a/music/truth.wav b/music/truth.wav new file mode 100644 index 0000000..7267daa Binary files /dev/null and b/music/truth.wav differ diff --git a/music/truth.wav.import b/music/truth.wav.import new file mode 100644 index 0000000..dc3cd9f --- /dev/null +++ b/music/truth.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dkyu51gkmrmrl" +path="res://.godot/imported/truth.wav-2d7a70053b9de8eed2f2707e82d6d709.sample" + +[deps] + +source_file="res://music/truth.wav" +dest_files=["res://.godot/imported/truth.wav-2d7a70053b9de8eed2f2707e82d6d709.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=2 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=0 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..60f1907 --- /dev/null +++ b/sprites/astronaut.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://hpohy23ejlrm" +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..7c380fa --- /dev/null +++ b/sprites/martian.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dhxjwha3mq5tx" +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 35f064b..00e7b86 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()