Killzone
This commit is contained in:
@ -105,7 +105,7 @@ script = ExtResource("1_y3u7o")
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_gwbt3")
|
||||
autoplay = "default"
|
||||
frame_progress = 0.569274
|
||||
frame_progress = 0.985627
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_xb7vb")
|
||||
|
@ -1,9 +1,10 @@
|
||||
[gd_scene load_steps=10 format=4 uid="uid://ddx678te8glnm"]
|
||||
[gd_scene load_steps=12 format=4 uid="uid://ddx678te8glnm"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cxdkngh6fo5p7" path="res://scenes/player.tscn" id="1_866nb"]
|
||||
[ext_resource type="Texture2D" uid="uid://dcqrtadm8khs6" path="res://assets/sprites/world_tileset.png" id="2_xrfdw"]
|
||||
[ext_resource type="PackedScene" uid="uid://c54bhvh3awmhl" path="res://scenes/platform.tscn" id="3_3twsu"]
|
||||
[ext_resource type="PackedScene" uid="uid://dbjp33ljlh1vh" path="res://scenes/coin.tscn" id="4_ydnys"]
|
||||
[ext_resource type="PackedScene" uid="uid://cxkr1ot3mkts1" path="res://scenes/killzone.tscn" id="5_sa1lr"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_gsgsl"]
|
||||
texture = ExtResource("2_xrfdw")
|
||||
@ -209,6 +210,9 @@ _data = {
|
||||
"move": SubResource("Animation_8gab2")
|
||||
}
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_ewejv"]
|
||||
distance = 11.0
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
|
||||
[node name="AnimatableBody2D" parent="." instance=ExtResource("3_3twsu")]
|
||||
@ -230,6 +234,7 @@ position = Vector2(-104, 30)
|
||||
[node name="Camera2D" type="Camera2D" parent="Player"]
|
||||
position = Vector2(55, -19)
|
||||
zoom = Vector2(4, 4)
|
||||
limit_bottom = 120
|
||||
position_smoothing_enabled = true
|
||||
|
||||
[node name="AnimatableBody2D2" parent="." instance=ExtResource("3_3twsu")]
|
||||
@ -258,3 +263,9 @@ position = Vector2(344, -121)
|
||||
|
||||
[node name="Coin6" parent="." instance=ExtResource("4_ydnys")]
|
||||
position = Vector2(-40, 8)
|
||||
|
||||
[node name="killzone" parent="." instance=ExtResource("5_sa1lr")]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="killzone"]
|
||||
position = Vector2(-6, 94)
|
||||
shape = SubResource("WorldBoundaryShape2D_ewejv")
|
||||
|
13
scenes/killzone.tscn
Normal file
13
scenes/killzone.tscn
Normal file
@ -0,0 +1,13 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://cxkr1ot3mkts1"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/killzone.gd" id="1_dutdq"]
|
||||
|
||||
[node name="killzone" type="Area2D"]
|
||||
collision_mask = 2
|
||||
script = ExtResource("1_dutdq")
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
one_shot = true
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
Reference in New Issue
Block a user