Orange is the new background
This commit is contained in:
1 parent
91a9c84516
commit
91df00df7c
14 files changed
+87
-4
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 4.2 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 454 B After Width: | Height: | Size: 463 B |
@@ -11,5 +11,8 @@ func _process(delta: float) -> void:
|
|||||||
|
|
||||||
func on_contact(body: Node2D) -> void:
|
func on_contact(body: Node2D) -> void:
|
||||||
print(body)
|
print(body)
|
||||||
|
$AudioStreamPlayer2D.play(0)
|
||||||
|
visible = false
|
||||||
%Player2D.coins += 1
|
%Player2D.coins += 1
|
||||||
|
await get_tree().create_timer(0.2).timeout
|
||||||
queue_free()
|
queue_free()
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
[ext_resource type="Script" uid="uid://cvboxlqkhn1ef" path="res://coin.gd" id="1_0t63x"]
|
[ext_resource type="Script" uid="uid://cvboxlqkhn1ef" path="res://coin.gd" id="1_0t63x"]
|
||||||
[ext_resource type="Texture2D" uid="uid://dftfxivu3peog" path="res://art/coin.png" id="1_d5gmh"]
|
[ext_resource type="Texture2D" uid="uid://dftfxivu3peog" path="res://art/coin.png" id="1_d5gmh"]
|
||||||
|
[ext_resource type="AudioStream" uid="uid://f2xmq6cgiiwj" path="res://sound/coin.wav" id="3_v7riw"]
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_6qpsl"]
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_6qpsl"]
|
||||||
radius = 7.0
|
radius = 7.0
|
||||||
@@ -18,4 +19,8 @@ texture = ExtResource("1_d5gmh")
|
|||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=1865546056]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=1865546056]
|
||||||
shape = SubResource("CapsuleShape2D_6qpsl")
|
shape = SubResource("CapsuleShape2D_6qpsl")
|
||||||
|
|
||||||
|
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="." unique_id=1778061188]
|
||||||
|
stream = ExtResource("3_v7riw")
|
||||||
|
volume_db = 1.0
|
||||||
|
|
||||||
[connection signal="body_entered" from="Area2D" to="." method="on_contact"]
|
[connection signal="body_entered" from="Area2D" to="." method="on_contact"]
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
[gd_scene format=3 uid="uid://kstmxoa4dx55"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://cvboxlqkhn1ef" path="res://coin.gd" id="1_0t63x"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://dftfxivu3peog" path="res://art/coin.png" id="1_d5gmh"]
|
||||||
|
[ext_resource type="AudioStream" uid="uid://f2xmq6cgiiwj" path="res://sound/coin.wav" id="3_v7riw"]
|
||||||
|
|
||||||
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_6qpsl"]
|
||||||
|
radius = 7.0
|
||||||
|
height = 20.0
|
||||||
|
|
||||||
|
[node name="Coin" type="Node2D" unique_id=1739014101]
|
||||||
|
script = ExtResource("1_0t63x")
|
||||||
|
|
||||||
|
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=813041394]
|
||||||
|
texture = ExtResource("1_d5gmh")
|
||||||
|
|
||||||
|
[node name="Area2D" type="Area2D" parent="." unique_id=170499029]
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=1865546056]
|
||||||
|
shape = SubResource("CapsuleShape2D_6qpsl")
|
||||||
|
|
||||||
|
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="." unique_id=1778061188]
|
||||||
|
stream = ExtResource("3_v7riw")
|
||||||
|
volume_db = 1.0
|
||||||
|
|
||||||
|
[connection signal="body_entered" from="Area2D" to="." method="on_contact"]
|
||||||
+1
-1
@@ -14,7 +14,7 @@ script = ExtResource("1_sy00s")
|
|||||||
repeat_size = Vector2(1, 1)
|
repeat_size = Vector2(1, 1)
|
||||||
|
|
||||||
[node name="Sprite2D" type="Sprite2D" parent="Parallax2D" unique_id=1267606565]
|
[node name="Sprite2D" type="Sprite2D" parent="Parallax2D" unique_id=1267606565]
|
||||||
scale = Vector2(100, 100)
|
scale = Vector2(3, 3)
|
||||||
texture = ExtResource("3_p3026")
|
texture = ExtResource("3_p3026")
|
||||||
|
|
||||||
[node name="Camera2D" type="Camera2D" parent="." unique_id=962368438]
|
[node name="Camera2D" type="Camera2D" parent="." unique_id=962368438]
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
3,0,0,0,120,16,4,1,217,0,1,128,0,256,1,0,0,0,1,2,71,1,0,0,79,2,0,0,0,1,0,1,0,-1,-1,-1,-1,-1,-1,-1,
|
||||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,24 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamWAV"
|
||||||
|
uid="uid://f2xmq6cgiiwj"
|
||||||
|
path="res://.godot/imported/coin.wav-fcd7aec7959d3f43bcba358fb78d1cf1.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://sound/coin.wav"
|
||||||
|
dest_files=["res://.godot/imported/coin.wav-fcd7aec7959d3f43bcba358fb78d1cf1.sample"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop_mode=0
|
||||||
|
edit/loop_begin=0
|
||||||
|
edit/loop_end=-1
|
||||||
|
compress/mode=2
|
||||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,24 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamWAV"
|
||||||
|
uid="uid://cygaxoo4wb3t6"
|
||||||
|
path="res://.godot/imported/stones.wav-7997832a36ac3b5f76c1d2e10e25b972.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://sound/stones.wav"
|
||||||
|
dest_files=["res://.godot/imported/stones.wav-7997832a36ac3b5f76c1d2e10e25b972.sample"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop_mode=0
|
||||||
|
edit/loop_begin=0
|
||||||
|
edit/loop_end=-1
|
||||||
|
compress/mode=2
|
||||||
+3
-3
@@ -64,6 +64,9 @@ position = Vector2(55, 59)
|
|||||||
|
|
||||||
[node name="Tutorial" type="Node2D" parent="." unique_id=1391494772]
|
[node name="Tutorial" type="Node2D" parent="." unique_id=1391494772]
|
||||||
|
|
||||||
|
[node name="Spike" parent="Tutorial" unique_id=1505280758 instance=ExtResource("12_k3n1d")]
|
||||||
|
position = Vector2(162, 184.13078)
|
||||||
|
|
||||||
[node name="Teleporter1" parent="Tutorial" unique_id=1201409437 instance=ExtResource("4_gbfbk")]
|
[node name="Teleporter1" parent="Tutorial" unique_id=1201409437 instance=ExtResource("4_gbfbk")]
|
||||||
position = Vector2(149, 91.57307)
|
position = Vector2(149, 91.57307)
|
||||||
paired_teleporter = "A"
|
paired_teleporter = "A"
|
||||||
@@ -111,6 +114,3 @@ position = Vector2(880, 399)
|
|||||||
|
|
||||||
[node name="LongBlock6" parent="." unique_id=1328813509 instance=ExtResource("6_dwbse")]
|
[node name="LongBlock6" parent="." unique_id=1328813509 instance=ExtResource("6_dwbse")]
|
||||||
position = Vector2(1368, 401)
|
position = Vector2(1368, 401)
|
||||||
|
|
||||||
[node name="Spike" parent="." unique_id=1505280758 instance=ExtResource("12_k3n1d")]
|
|
||||||
position = Vector2(162, 184.1308)
|
|
||||||
Reference in new issue
Block a user