mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-16 13:03:47 +00:00
Added crosshair
This commit is contained in:
parent
5012527bae
commit
9e3c75ca1d
5 changed files with 72 additions and 2 deletions
6
Scenes/crosshair.tscn
Normal file
6
Scenes/crosshair.tscn
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://cfb3nsay84xdb"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cfrvb1moh857m" path="res://Sprites/Crosshair.png" id="1_hincd"]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D"]
|
||||
texture = ExtResource("1_hincd")
|
||||
|
|
@ -1,10 +1,11 @@
|
|||
[gd_scene load_steps=22 format=3 uid="uid://bghghp5ep4w2j"]
|
||||
[gd_scene load_steps=23 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="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"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ai4rh"]
|
||||
size = Vector2(6, 8)
|
||||
|
|
@ -137,6 +138,7 @@ collision_layer = 2
|
|||
collision_mask = 3
|
||||
script = ExtResource("1_m27vu")
|
||||
Speed = 2000
|
||||
CrosshairDistance = 20.0
|
||||
BulletScene = ExtResource("2_ov36d")
|
||||
Muzzle = NodePath("Muzzle")
|
||||
metadata/_edit_group_ = true
|
||||
|
|
@ -168,3 +170,5 @@ script = ExtResource("5_cxvyt")
|
|||
y_sort_enabled = true
|
||||
sprite_frames = SubResource("SpriteFrames_q0rt3")
|
||||
animation = &"walk_left"
|
||||
|
||||
[node name="Crosshair" parent="." instance=ExtResource("6_l43rf")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue