26 lines
1.1 KiB
Plaintext
26 lines
1.1 KiB
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://bxkg2ri346c2o"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://c5jcxyyyd0m60" path="res://Ball.png" id="1_ihs8s"]
|
|
[ext_resource type="Script" uid="uid://map8auwmtmk8" path="res://Ball.cs" id="1_jhuit"]
|
|
[ext_resource type="AudioStream" uid="uid://dg8y8aw5j5m1d" path="res://pong1.wav" id="2_w88js"]
|
|
[ext_resource type="AudioStream" uid="uid://ds2fe4cdlwv05" path="res://pong2.wav" id="3_dh6iu"]
|
|
|
|
[node name="Ball" type="RigidBody2D" node_paths=PackedStringArray("audioStreamPlayer")]
|
|
mass = 0.1
|
|
gravity_scale = 0.0
|
|
script = ExtResource("1_jhuit")
|
|
audioStreamPlayer = NodePath("AudioStreamPlayer")
|
|
sounds = Array[AudioStream]([ExtResource("2_w88js"), ExtResource("3_dh6iu")])
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
position = Vector2(16, 16)
|
|
scale = Vector2(1, 1.14)
|
|
texture = ExtResource("1_ihs8s")
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
|
position = Vector2(16, 16)
|
|
scale = Vector2(1, 1.14)
|
|
polygon = PackedVector2Array(16, -11.7, 16, 10, 10.7, 16, -11, 16, -16, 11.8, -16, -10, -10, -15.8, 10, -16)
|
|
|
|
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|