feat: initialized template and wrote first gameplay code

This commit is contained in:
Sara 2025-07-14 23:03:04 +02:00
parent 82f2cae0f6
commit 46a958f801
47 changed files with 1093 additions and 33 deletions

View file

@ -0,0 +1,24 @@
[gd_scene load_steps=3 format=3 uid="uid://snjgu4yp5swd"]
[ext_resource type="PackedScene" uid="uid://ce40pq785yoyi" path="res://objects/weapons/rifle.tscn" id="1_eqqp1"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_bxedw"]
[node name="PlayerBody" type="PlayerBody"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("CapsuleShape3D_bxedw")
[node name="PlayerInput" type="PlayerInput" parent="."]
unique_name_in_owner = true
[node name="PlayerCamera" type="PlayerCamera" parent="."]
unique_name_in_owner = true
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 1.60811, 0)
fov = 60.0
[node name="Rifle" parent="PlayerCamera" instance=ExtResource("1_eqqp1")]
[editable path="PlayerCamera/Rifle"]
[editable path="PlayerCamera/Rifle/rifle"]

View file

@ -0,0 +1,13 @@
[gd_scene load_steps=2 format=3 uid="uid://ce40pq785yoyi"]
[ext_resource type="PackedScene" uid="uid://c8jbxkm1paa8u" path="res://assets/models/weapons/rifle.glb" id="1_afgyw"]
[node name="Rifle" type="Rifle" node_paths=PackedStringArray("anim")]
anim = NodePath("rifle/AnimationPlayer")
[node name="rifle" parent="." instance=ExtResource("1_afgyw")]
[node name="AnimationPlayer" parent="rifle" index="1"]
playback_default_blend_time = 0.1
[editable path="rifle"]