✨ Bullet, shooting & camera shake
This commit is contained in:
21
Scenes/Bullet.tscn
Normal file
21
Scenes/Bullet.tscn
Normal file
@ -0,0 +1,21 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://ds40mib6ur8yf"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c6xf6w3jg0hfh" path="res://Sprites/Projectiles.png" id="1_cufey"]
|
||||
[ext_resource type="Script" path="res://Scripts/Bullet.cs" id="1_ttgqp"]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_tcwfy"]
|
||||
radius = 5.0
|
||||
height = 58.0
|
||||
|
||||
[node name="Bullet" type="Area2D" node_paths=PackedStringArray("FreeTimer")]
|
||||
script = ExtResource("1_ttgqp")
|
||||
FreeTimer = NodePath("FreeTimer")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_cufey")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CapsuleShape2D_tcwfy")
|
||||
|
||||
[node name="FreeTimer" type="Timer" parent="."]
|
||||
autostart = true
|
@ -1,12 +1,16 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://b3gx0bl43lku3"]
|
||||
[gd_scene load_steps=10 format=3 uid="uid://b3gx0bl43lku3"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Player.cs" id="1_0btyt"]
|
||||
[ext_resource type="Texture2D" uid="uid://c4als6t3k4myc" path="res://Sprites/Player.png" id="1_cqpqa"]
|
||||
[ext_resource type="PackedScene" uid="uid://ds40mib6ur8yf" path="res://Scenes/Bullet.tscn" id="2_nmop0"]
|
||||
[ext_resource type="Script" path="res://Scripts/Logic/PlayerInput.cs" id="3_tvoua"]
|
||||
[ext_resource type="Script" path="res://Scripts/Effects/CameraShake.cs" id="4_fwngj"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_68yf8"]
|
||||
radius = 20.48
|
||||
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_cfnx7"]
|
||||
|
||||
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_bekoo"]
|
||||
properties/0/path = NodePath(".:position")
|
||||
properties/0/spawn = true
|
||||
@ -27,6 +31,7 @@ properties/1/replication_mode = 1
|
||||
script = ExtResource("1_0btyt")
|
||||
PlayerCamera = NodePath("Camera2D")
|
||||
PlayerInput = NodePath("InputSynchronizer")
|
||||
BulletScene = ExtResource("2_nmop0")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
position = Vector2(2.08165e-12, 2.08165e-12)
|
||||
@ -41,6 +46,11 @@ enabled = false
|
||||
process_callback = 0
|
||||
position_smoothing_enabled = true
|
||||
rotation_smoothing_enabled = true
|
||||
script = ExtResource("4_fwngj")
|
||||
Noise = SubResource("FastNoiseLite_cfnx7")
|
||||
|
||||
[node name="Muzzle" type="Marker2D" parent="."]
|
||||
position = Vector2(2.08165e-12, -20)
|
||||
|
||||
[node name="DashCountdown" type="Timer" parent="."]
|
||||
one_shot = true
|
||||
|
Reference in New Issue
Block a user