mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-16 12:23:48 +00:00
Interactions
This commit is contained in:
parent
e1d6afa512
commit
abff2ea59e
19 changed files with 282 additions and 10 deletions
|
|
@ -1,11 +1,13 @@
|
|||
[gd_scene load_steps=23 format=3 uid="uid://bghghp5ep4w2j"]
|
||||
[gd_scene load_steps=26 format=3 uid="uid://bghghp5ep4w2j"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/PlayerMovement.cs" id="1_m27vu"]
|
||||
[ext_resource type="Texture2D" uid="uid://la06powu57hu" path="res://Sprites/Cirno_Big.png" id="2_bwf6x"]
|
||||
[ext_resource type="PackedScene" uid="uid://b1qnfiuokpvsr" path="res://Scenes/bullet.tscn" id="2_ov36d"]
|
||||
[ext_resource type="PackedScene" uid="uid://chkpk7erlqajg" path="res://Scenes/Selector.tscn" id="3_8wt6s"]
|
||||
[ext_resource type="Script" path="res://addons/smoothing/smoothing_2d.gd" id="4_j4xhu"]
|
||||
[ext_resource type="Script" path="res://Scenes/CameraTarget.gd" id="5_cxvyt"]
|
||||
[ext_resource type="PackedScene" uid="uid://cfb3nsay84xdb" path="res://Scenes/crosshair.tscn" id="6_l43rf"]
|
||||
[ext_resource type="Script" path="res://Scenes/InteractionController.cs" id="7_uvgjg"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ai4rh"]
|
||||
size = Vector2(6, 6)
|
||||
|
|
@ -133,6 +135,9 @@ animations = [{
|
|||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_oevaq"]
|
||||
radius = 17.2627
|
||||
|
||||
[node name="Player" type="CharacterBody2D" node_paths=PackedStringArray("Muzzle") groups=["player"]]
|
||||
collision_layer = 2
|
||||
collision_mask = 99
|
||||
|
|
@ -140,6 +145,7 @@ script = ExtResource("1_m27vu")
|
|||
Speed = 2500
|
||||
CrosshairDistance = 20.0
|
||||
BulletScene = ExtResource("2_ov36d")
|
||||
SelectorScene = ExtResource("3_8wt6s")
|
||||
Muzzle = NodePath("Muzzle")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
|
|
@ -173,3 +179,13 @@ sprite_frames = SubResource("SpriteFrames_q0rt3")
|
|||
animation = &"walk_left"
|
||||
|
||||
[node name="Crosshair" parent="Smoothing2D" instance=ExtResource("6_l43rf")]
|
||||
|
||||
[node name="InteractionController" type="Area2D" parent="."]
|
||||
collision_layer = 2
|
||||
collision_mask = 4
|
||||
script = ExtResource("7_uvgjg")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="InteractionController"]
|
||||
shape = SubResource("CircleShape2D_oevaq")
|
||||
|
||||
[connection signal="area_entered" from="InteractionController" to="." method="_on_interaction_controller_area_entered"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue