pegchamp/Ball/Trajectory.tscn
2021-09-08 10:27:14 +02:00

28 lines
886 B
Text

[gd_scene load_steps=5 format=2]
[ext_resource path="res://Ball/Trajectory.gd" type="Script" id=1]
[ext_resource path="res://Ball/trajectory.png" type="Texture" id=2]
[ext_resource path="res://Ball/Ball.tres" type="PhysicsMaterial" id=3]
[ext_resource path="res://Ball/BallCollision.tscn" type="PackedScene" id=4]
[node name="Trajectory" type="RigidBody2D"]
z_index = -1
collision_layer = 0
mass = 90.0
physics_material_override = ExtResource( 3 )
continuous_cd = 2
contacts_reported = 1
contact_monitor = true
linear_velocity = Vector2( 0, -10 )
script = ExtResource( 1 )
[node name="BallCollision" parent="." instance=ExtResource( 4 )]
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 2 )
[node name="Kill Timer" type="Timer" parent="."]
wait_time = 0.5
autostart = true
[connection signal="timeout" from="Kill Timer" to="." method="_on_Kill_Timer_timeout"]