Skip to content

Commit

Permalink
level 2 finished
Browse files Browse the repository at this point in the history
  • Loading branch information
Nopfed committed Mar 9, 2021
1 parent 80821a1 commit 5ef5f39
Show file tree
Hide file tree
Showing 9 changed files with 1,440 additions and 55 deletions.
1 change: 1 addition & 0 deletions Scenes/death zone.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
extents = Vector2( 32, 32 )

[node name="death zone" type="Area2D"]
collision_layer = 4

[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 1 )
Expand Down
27 changes: 17 additions & 10 deletions Scenes/level 0.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=13 format=2]
[gd_scene load_steps=15 format=2]

[ext_resource path="res://world tile set.tres" type="TileSet" id=1]
[ext_resource path="res://Scenes/player.tscn" type="PackedScene" id=2]
Expand All @@ -9,6 +9,8 @@
[ext_resource path="res://Assets/World Tiles/motherboard red.png" type="Texture" id=7]
[ext_resource path="res://Assets/Audio/SFX/collect 1.wav" type="AudioStream" id=8]
[ext_resource path="res://Assets/Fonts/DotGothic16-Regular.ttf" type="DynamicFontData" id=9]
[ext_resource path="res://Scripts/win zone 0.gd" type="Script" id=10]
[ext_resource path="res://Assets/Audio/SFX/win sound.wav" type="AudioStream" id=11]

[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 32.0029, 32.0704 )
Expand Down Expand Up @@ -481,6 +483,7 @@ scale = Vector2( 0.2, 0.2 )
position = Vector2( 7584, -416 )
scale = Vector2( 3, 1 )
collision_layer = 32
script = ExtResource( 10 )
__meta__ = {
"_edit_group_": true
}
Expand All @@ -491,6 +494,10 @@ texture = ExtResource( 5 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="win zone"]
shape = SubResource( 1 )

[node name="win sound" type="AudioStreamPlayer" parent="win zone"]
stream = ExtResource( 11 )
volume_db = -12.0

[node name="player" parent="." instance=ExtResource( 2 )]
position = Vector2( 160, -176 )

Expand Down Expand Up @@ -625,21 +632,21 @@ __meta__ = {
}

[node name="x" type="Label" parent="HUD"]
margin_left = 28.496
margin_top = 563.328
margin_right = 36.496
margin_bottom = 587.328
margin_left = 28.0
margin_top = 563.0
margin_right = 36.0
margin_bottom = 587.0
custom_fonts/font = SubResource( 2 )
text = "x"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Collectibles" type="Label" parent="HUD"]
margin_left = 41.8174
margin_top = 564.821
margin_right = 80.8169
margin_bottom = 588.821
margin_left = 42.0
margin_top = 565.0
margin_right = 80.9995
margin_bottom = 589.0
custom_fonts/font = SubResource( 3 )
text = "##"
__meta__ = {
Expand Down Expand Up @@ -761,7 +768,7 @@ volume_db = -15.0
[connection signal="collectible_collected" from="collectibles/collectible110" to="HUD" method="_on_collectible_collected"]
[connection signal="collectible_collected" from="collectibles/collectible111" to="HUD" method="_on_collectible_collected"]
[connection signal="collectible_collected" from="collectibles/collectible112" to="HUD" method="_on_collectible_collected"]
[connection signal="body_entered" from="win zone" to="player" method="_on_win_zone_body_entered"]
[connection signal="body_entered" from="win zone" to="win zone" method="_on_win_zone_body_entered"]
[connection signal="body_entered" from="death zone" to="player" method="_on_death_zone_body_entered"]
[connection signal="body_entered" from="death zone2" to="player" method="_on_death_zone_body_entered"]
[connection signal="body_entered" from="death zone6" to="player" method="_on_death_zone_body_entered"]
Expand Down
Loading

0 comments on commit 5ef5f39

Please sign in to comment.