1
Fork 0
mirror of https://github.com/Steffo99/watermelonkeys-patched-ld51.git synced 2024-11-24 00:44:24 +00:00

Death screen

This commit is contained in:
AndreaTerenz 2022-10-03 16:16:40 +02:00
parent 67c5b9b9e2
commit a59ffe349f
5 changed files with 74 additions and 66 deletions

BIN
ASSETS/game_over.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/game_over.png-61579462907f817d550f9b4fd31bf31f.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://ASSETS/game_over.png"
dest_files=[ "res://.import/game_over.png-61579462907f817d550f9b4fd31bf31f.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

32
Dead.tscn Normal file
View file

@ -0,0 +1,32 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://ASSETS/game_over.png" type="Texture" id=1]
[sub_resource type="GDScript" id=1]
script/source = "extends Control
func _input(event):
if Input.is_action_just_pressed(\"restart_game\"):
get_tree().change_scene(\"res://Level1.tscn\")
"
[node name="Node2D" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = SubResource( 1 )
[node name="ColorRect" type="ColorRect" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
color = Color( 0.00784314, 0.0235294, 0.0784314, 1 )
[node name="TextureRect" type="TextureRect" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -240.0
margin_top = -135.0
margin_right = 240.0
margin_bottom = 135.0
texture = ExtResource( 1 )

View file

@ -1,6 +1,5 @@
[gd_scene load_steps=14 format=2]
[gd_scene load_steps=12 format=2]
[ext_resource path="res://icon.png" type="Texture" id=1]
[ext_resource path="res://Giovanna.tscn" type="PackedScene" id=2]
[ext_resource path="res://brick_tileset.tres" type="TileSet" id=3]
[ext_resource path="res://ASSETS/Background/Layer 7.png" type="Texture" id=4]
@ -18,12 +17,9 @@ func _input(event):
func _on_DeathZone_entered(body):
get_tree().reload_current_scene()
get_tree().change_scene(\"res://Dead.tscn\")
"
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 32, 32 )
[sub_resource type="SpriteFrames" id=2]
animations = [ {
"frames": [ ExtResource( 7 ) ],
@ -46,66 +42,6 @@ extents = Vector2( 212, 31 )
[node name="Level1" type="Node2D"]
script = SubResource( 3 )
[node name="Block1" type="RigidBody2D" parent="."]
visible = false
position = Vector2( 398, 147 )
rotation = 0.730756
gravity_scale = 12.0
__meta__ = {
"_edit_group_": true
}
[node name="Sprite" type="Sprite" parent="Block1"]
texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Block1"]
shape = SubResource( 1 )
[node name="Block2" type="RigidBody2D" parent="."]
visible = false
position = Vector2( 339, 51 )
rotation = 0.730756
gravity_scale = 12.0
__meta__ = {
"_edit_group_": true
}
[node name="Sprite" type="Sprite" parent="Block2"]
texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Block2"]
shape = SubResource( 1 )
[node name="Block3" type="RigidBody2D" parent="."]
visible = false
position = Vector2( 86, -20 )
rotation = 0.730756
gravity_scale = 12.0
__meta__ = {
"_edit_group_": true
}
[node name="Sprite" type="Sprite" parent="Block3"]
texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Block3"]
shape = SubResource( 1 )
[node name="Block4" type="RigidBody2D" parent="."]
visible = false
position = Vector2( 527, -503 )
rotation = 0.730756
gravity_scale = 12.0
__meta__ = {
"_edit_group_": true
}
[node name="Sprite" type="Sprite" parent="Block4"]
texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Block4"]
shape = SubResource( 1 )
[node name="Giovanna" parent="." instance=ExtResource( 2 )]
position = Vector2( 58, -354 )

View file

@ -92,6 +92,11 @@ quit={
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777217,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
]
}
restart_game={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":32,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
]
}
[physics]