This commit is contained in:
Elnu 2023-10-21 19:46:01 -07:00
parent 8d5714c215
commit ffba3fce8c
12 changed files with 202 additions and 5 deletions

View file

@ -1,6 +1,9 @@
[gd_scene load_steps=6 format=3 uid="uid://b6olswaoek0bw"]
[gd_scene load_steps=9 format=3 uid="uid://b6olswaoek0bw"]
[ext_resource type="Script" path="res://player.gd" id="1_0p8o6"]
[ext_resource type="Script" path="res://gun.gd" id="2_847gu"]
[ext_resource type="PackedScene" uid="uid://bxyl3aa8j8qc5" path="res://bullet.tscn" id="3_ckwue"]
[ext_resource type="Texture2D" uid="uid://bda38sojncx5q" path="res://light.png" id="4_q0kom"]
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_2xv6m"]
load_path = "res://.godot/imported/white.png-d8533361663a5f8fe5200e5b5262a62d.ctex"
@ -16,6 +19,10 @@ properties/0/path = NodePath(".:position")
properties/0/spawn = true
properties/0/sync = true
properties/0/watch = false
properties/1/path = NodePath("Gun:rotation")
properties/1/spawn = true
properties/1/sync = true
properties/1/watch = false
[node name="Player" type="CharacterBody2D"]
collision_layer = 2
@ -26,9 +33,23 @@ fox_time = 100
limp_gravity_modifier = 3.0
[node name="Sprite2D" type="Sprite2D" parent="."]
light_mask = 0
scale = Vector2(1, 1.5)
texture = SubResource("CompressedTexture2D_2xv6m")
[node name="Gun" type="Node2D" parent="."]
z_index = 1
script = ExtResource("2_847gu")
bullet = ExtResource("3_ckwue")
[node name="Sprite2D" type="Sprite2D" parent="Gun"]
position = Vector2(19, 0)
scale = Vector2(0.78125, 0.17375)
texture = SubResource("CompressedTexture2D_2xv6m")
[node name="BulletSpawn" type="Node2D" parent="Gun"]
position = Vector2(31, 0)
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_8wbiu")
@ -55,3 +76,7 @@ grow_vertical = 2
size_flags_horizontal = 4
text = "Player"
horizontal_alignment = 1
[node name="PointLight2D" type="PointLight2D" parent="."]
shadow_enabled = true
texture = ExtResource("4_q0kom")