abstract
This commit is contained in:
parent
8b44bf9032
commit
86f975d56a
24 changed files with 490 additions and 21 deletions
61
backgounds/abstract.gd
Normal file
61
backgounds/abstract.gd
Normal file
|
@ -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()
|
12
backgounds/abstract.tscn
Normal file
12
backgounds/abstract.tscn
Normal file
|
@ -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")
|
17
levels/abstract.gd
Normal file
17
levels/abstract.gd
Normal 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/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
|
174
levels/abstract.tscn
Normal file
174
levels/abstract.tscn
Normal file
|
@ -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")
|
|
@ -15,27 +15,28 @@ func _process(delta):
|
||||||
var xm = 0
|
var xm = 0
|
||||||
var ym = 0
|
var ym = 0
|
||||||
var velocity = Vector2.ZERO
|
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:
|
if Global.live == 1:
|
||||||
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)
|
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:
|
||||||
elif Input.is_mouse_button_pressed(MOUSE_BUTTON_LEFT):
|
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
|
#var mousepos = get_viewport().get_mouse_position() - origmpos
|
||||||
self.position = Vector2(origpos.x+(Global.mousepos.x*5), origpos.y+(Global.mousepos.y*5))
|
self.position = Vector2(origpos.x+(Global.mousepos.x*5), origpos.y+(Global.mousepos.y*5))
|
||||||
else:
|
else:
|
||||||
if Input.is_action_pressed("ui_left") || Input.is_key_pressed(KEY_A):
|
if Input.is_action_pressed("ui_left") || Input.is_key_pressed(KEY_A):
|
||||||
xm = -1
|
xm = -1
|
||||||
if Input.is_action_pressed("ui_right") || Input.is_key_pressed(KEY_D):
|
if Input.is_action_pressed("ui_right") || Input.is_key_pressed(KEY_D):
|
||||||
xm = 1
|
xm = 1
|
||||||
if Input.is_action_pressed("ui_up") || Input.is_key_pressed(KEY_W):
|
if Input.is_action_pressed("ui_up") || Input.is_key_pressed(KEY_W):
|
||||||
ym = -1
|
ym = -1
|
||||||
if Input.is_action_pressed("ui_down") || Input.is_key_pressed(KEY_S):
|
if Input.is_action_pressed("ui_down") || Input.is_key_pressed(KEY_S):
|
||||||
ym = 1
|
ym = 1
|
||||||
velocity = (Vector2.RIGHT.rotated(rotation) * -50000 * xm * delta)-Vector2.UP.rotated(rotation) * -50000 * ym * delta
|
velocity = (Vector2.RIGHT.rotated(rotation) * -50000 * xm * delta)-Vector2.UP.rotated(rotation) * -50000 * ym * delta
|
||||||
origpos = self.position
|
origpos = self.position
|
||||||
#origmpos = get_viewport().get_mouse_position()
|
#origmpos = get_viewport().get_mouse_position()
|
||||||
#if Input.get_joy_axis(0,JOY_AXIS_LEFT_Y) != 0:
|
#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)
|
# velocity = Vector2.UP.rotated(rotation) * -400 * Input.get_joy_axis(0,JOY_AXIS_LEFT_Y)
|
||||||
position += velocity * delta
|
position += velocity * delta
|
||||||
if position.x < 782 && position.x > 496:
|
if position.x < 782 && position.x > 496:
|
||||||
if position.y < 468 && position.y > 270:
|
if position.y < 468 && position.y > 270:
|
||||||
Global.live = 3
|
Global.live = 3
|
||||||
#pass
|
#pass
|
||||||
|
|
BIN
music/broken.ogg
Normal file
BIN
music/broken.ogg
Normal file
Binary file not shown.
19
music/broken.ogg.import
Normal file
19
music/broken.ogg.import
Normal file
|
@ -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
|
BIN
music/maran.ogg
Normal file
BIN
music/maran.ogg
Normal file
Binary file not shown.
19
music/maran.ogg.import
Normal file
19
music/maran.ogg.import
Normal file
|
@ -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
|
BIN
music/orion.ogg
Normal file
BIN
music/orion.ogg
Normal file
Binary file not shown.
19
music/orion.ogg.import
Normal file
19
music/orion.ogg.import
Normal file
|
@ -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
|
BIN
music/oskars.ogg
Normal file
BIN
music/oskars.ogg
Normal file
Binary file not shown.
19
music/oskars.ogg.import
Normal file
19
music/oskars.ogg.import
Normal file
|
@ -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
|
BIN
music/rock.ogg
Normal file
BIN
music/rock.ogg
Normal file
Binary file not shown.
19
music/rock.ogg.import
Normal file
19
music/rock.ogg.import
Normal file
|
@ -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
|
BIN
music/rose.ogg
Normal file
BIN
music/rose.ogg
Normal file
Binary file not shown.
19
music/rose.ogg.import
Normal file
19
music/rose.ogg.import
Normal file
|
@ -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
|
BIN
music/truth.ogg
Normal file
BIN
music/truth.ogg
Normal file
Binary file not shown.
19
music/truth.ogg.import
Normal file
19
music/truth.ogg.import
Normal file
|
@ -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
|
BIN
sprites/astronaut.png
Normal file
BIN
sprites/astronaut.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 708 KiB |
34
sprites/astronaut.png.import
Normal file
34
sprites/astronaut.png.import
Normal file
|
@ -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
|
BIN
sprites/martian.png
Normal file
BIN
sprites/martian.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 445 KiB |
34
sprites/martian.png.import
Normal file
34
sprites/martian.png.import
Normal file
|
@ -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
|
7
title.gd
7
title.gd
|
@ -32,10 +32,13 @@ func _level():
|
||||||
# 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.
|
||||||
Global.live = 1
|
Global.live = 1
|
||||||
if randi() % 2 == 0:
|
var level = randi() % 3
|
||||||
|
if level == 0:
|
||||||
get_tree().change_scene_to_file("res://backgounds/galaxy.tscn")
|
get_tree().change_scene_to_file("res://backgounds/galaxy.tscn")
|
||||||
else:
|
elif level == 1:
|
||||||
get_tree().change_scene_to_file("res://backgounds/wormhole.tscn")
|
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.add_child(title)
|
||||||
#get_tree().root.remove_child(boot)
|
#get_tree().root.remove_child(boot)
|
||||||
#boot.queue_free()
|
#boot.queue_free()
|
||||||
|
|
Loading…
Reference in a new issue