Initial commit
This commit is contained in:
commit
7becdd23b6
989 changed files with 28526 additions and 0 deletions
31
scenes/logic/fishing_target.tscn
Normal file
31
scenes/logic/fishing_target.tscn
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://d4nyfv6r6d1an"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://d27pxmt2fxvy5" path="res://images/sprites/fishing_targets/default.png" id="1_0nylm"]
|
||||
[ext_resource type="Script" path="res://scenes/logic/fishing_target.gd" id="1_1eq3o"]
|
||||
|
||||
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_0eaqh"]
|
||||
friction = 0.0
|
||||
bounce = 1.5
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_weeyi"]
|
||||
size = Vector2(44, 30)
|
||||
|
||||
[node name="FishingTarget" type="RigidBody2D"]
|
||||
position = Vector2(588, 142)
|
||||
collision_layer = 3
|
||||
collision_mask = 3
|
||||
physics_material_override = SubResource("PhysicsMaterial_0eaqh")
|
||||
inertia = 50.0
|
||||
script = ExtResource("1_1eq3o")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(-6, 2)
|
||||
shape = SubResource("RectangleShape2D_weeyi")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_0nylm")
|
||||
|
||||
[node name="MovementTimer" type="Timer" parent="."]
|
||||
one_shot = true
|
||||
|
||||
[connection signal="timeout" from="MovementTimer" to="." method="_on_movement_timer_timeout"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue