crash animation

This commit is contained in:
Page Asgardius 2023-10-02 14:40:22 -07:00
parent 9b5a9b3548
commit bedf297d92
6 changed files with 37 additions and 16 deletions

View file

@ -41,6 +41,8 @@ func _crash():
# 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.time = Time.get_ticks_msec() - wait Global.time = Time.get_ticks_msec() - wait
await get_tree().create_timer(1.0).timeout
queue_free()
get_tree().root.remove_child(galaxy) get_tree().root.remove_child(galaxy)
get_tree().change_scene_to_file("res://backgounds/supernova.tscn") get_tree().change_scene_to_file("res://backgounds/supernova.tscn")
#get_tree().root.add_child(title) #get_tree().root.add_child(title)

View file

@ -41,6 +41,8 @@ func _crash():
# 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.time = Time.get_ticks_msec() - wait Global.time = Time.get_ticks_msec() - wait
await get_tree().create_timer(1.0).timeout
queue_free()
get_tree().root.remove_child(wormhole) get_tree().root.remove_child(wormhole)
get_tree().change_scene_to_file("res://backgounds/supernova.tscn") get_tree().change_scene_to_file("res://backgounds/supernova.tscn")
#get_tree().root.add_child(title) #get_tree().root.add_child(title)

View file

@ -112,32 +112,32 @@ Eternity
4mat 4mat
Abstract Abstract
??? realize the truth
??? AceMan
Galaxy2 Galaxy2
??? Broken
??? Saxxon Pike
Lagoon Lagoon
??? Maran Project
??? Attraction
Orion Orion
??? orion spaceforce23
??? dualtrax
Space Space
??? rose
??? 4mat
Stars Stars
??? Oskars Skarmslackare
??? MrGamer
Universe Universe
??? zenon
??? ko0x
Credit roll 1 Credit roll 1
Yes, I see Yes, I see

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=21 format=3 uid="uid://mtl88mcwaqk0"] [gd_scene load_steps=22 format=3 uid="uid://mtl88mcwaqk0"]
[ext_resource type="Script" path="res://levels/galaxy.gd" id="1_3c4wu"] [ext_resource type="Script" path="res://levels/galaxy.gd" id="1_3c4wu"]
[ext_resource type="Texture2D" uid="uid://8lioamk650y7" path="res://sprites/css.png" id="2_3g4h6"] [ext_resource type="Texture2D" uid="uid://8lioamk650y7" path="res://sprites/css.png" id="2_3g4h6"]
@ -15,6 +15,7 @@
[ext_resource type="Script" path="res://levels/ast2.gd" id="13_s46s0"] [ext_resource type="Script" path="res://levels/ast2.gd" id="13_s46s0"]
[ext_resource type="Script" path="res://levels/ast3.gd" id="14_cu7w4"] [ext_resource type="Script" path="res://levels/ast3.gd" id="14_cu7w4"]
[ext_resource type="Script" path="res://levels/wall1.gd" id="15_jbm4l"] [ext_resource type="Script" path="res://levels/wall1.gd" id="15_jbm4l"]
[ext_resource type="Script" path="res://levels/ss.gd" id="15_n6ui8"]
[ext_resource type="Script" path="res://levels/wall2.gd" id="16_dnhp8"] [ext_resource type="Script" path="res://levels/wall2.gd" id="16_dnhp8"]
[ext_resource type="Script" path="res://levels/wall3.gd" id="17_jrw7x"] [ext_resource type="Script" path="res://levels/wall3.gd" id="17_jrw7x"]
[ext_resource type="Script" path="res://levels/wall4.gd" id="18_fasi1"] [ext_resource type="Script" path="res://levels/wall4.gd" id="18_fasi1"]
@ -146,6 +147,7 @@ script = ExtResource("9_diat7")
position = Vector2(640, 360) position = Vector2(640, 360)
scale = Vector2(0.3, 0.3) scale = Vector2(0.3, 0.3)
texture = ExtResource("9_favs7") texture = ExtResource("9_favs7")
script = ExtResource("15_n6ui8")
[node name="wall1" type="Sprite2D" parent="."] [node name="wall1" type="Sprite2D" parent="."]
position = Vector2(357.5, 483.5) position = Vector2(357.5, 483.5)

13
levels/ss.gd Normal file
View file

@ -0,0 +1,13 @@
extends Sprite2D
var angular_speed = PI
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
if Global.live == 2:
rotation += angular_speed * delta * 5
#pass

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=21 format=3 uid="uid://b82huqhu88xt6"] [gd_scene load_steps=22 format=3 uid="uid://b82huqhu88xt6"]
[ext_resource type="Script" path="res://levels/wormhole.gd" id="1_n4a5i"] [ext_resource type="Script" path="res://levels/wormhole.gd" id="1_n4a5i"]
[ext_resource type="Texture2D" uid="uid://8lioamk650y7" path="res://sprites/css.png" id="2_y6cio"] [ext_resource type="Texture2D" uid="uid://8lioamk650y7" path="res://sprites/css.png" id="2_y6cio"]
@ -14,6 +14,7 @@
[ext_resource type="Script" path="res://levels/ast1.gd" id="12_s1o5o"] [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/ast2.gd" id="13_xw0he"]
[ext_resource type="Script" path="res://levels/ast3.gd" id="14_xcrsk"] [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/wall1.gd" id="15_yx2oo"]
[ext_resource type="Script" path="res://levels/wall2.gd" id="16_el0w3"] [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/wall3.gd" id="17_pl58r"]
@ -146,6 +147,7 @@ script = ExtResource("9_cr36o")
position = Vector2(640, 360) position = Vector2(640, 360)
scale = Vector2(0.3, 0.3) scale = Vector2(0.3, 0.3)
texture = ExtResource("10_shrek") texture = ExtResource("10_shrek")
script = ExtResource("15_hsg5e")
[node name="wall1" type="Sprite2D" parent="."] [node name="wall1" type="Sprite2D" parent="."]
position = Vector2(338.5, 688.5) position = Vector2(338.5, 688.5)