basic capture functionality
This commit is contained in:
parent
246f3c0840
commit
c141e6a169
20 changed files with 430 additions and 14 deletions
|
|
@ -4,9 +4,12 @@
|
|||
[ext_resource type="Script" uid="uid://cqdq8fslu7cyp" path="res://scripts/world/ChunkManager.cs" id="2_0bbpv"]
|
||||
[ext_resource type="Script" uid="uid://db2vbbh5737ke" path="res://scripts/core/PackManager.cs" id="3_rarhs"]
|
||||
[ext_resource type="PackedScene" uid="uid://bs7qu34sfgvjx" path="res://scenes/world/PickupMarker.tscn" id="3_vcsgt"]
|
||||
[ext_resource type="PackedScene" uid="uid://bjil24xdbm76x" path="res://scenes/world/CreatureMarker.tscn" id="4_nxtc6"]
|
||||
[ext_resource type="PackedScene" uid="uid://djkstm7pmu7gq" path="res://scenes/world/Creature.tscn" id="4_nxtc6"]
|
||||
[ext_resource type="Script" uid="uid://osk74jjhtcjy" path="res://scripts/core/SaveManager.cs" id="4_rarhs"]
|
||||
[ext_resource type="Script" uid="uid://b6gxknud5unt" path="res://scripts/core/WorldClock.cs" id="6_c01mt"]
|
||||
[ext_resource type="Script" uid="uid://boip0mbmeqmhk" path="res://scripts/core/GameRoot.cs" id="8_jlsqs"]
|
||||
[ext_resource type="PackedScene" uid="uid://bffdg1ki45e4e" path="res://ui/CaptureUI.tscn" id="9_lhr70"]
|
||||
[ext_resource type="Script" uid="uid://bl7xagtutg20w" path="res://scripts/core/CaptureController.cs" id="10_wp0k4"]
|
||||
|
||||
[node name="Main" type="Node2D" unique_id=1194367579]
|
||||
|
||||
|
|
@ -31,3 +34,12 @@ script = ExtResource("4_rarhs")
|
|||
|
||||
[node name="WorldClock" type="Node" parent="." unique_id=437350596]
|
||||
script = ExtResource("6_c01mt")
|
||||
|
||||
[node name="GameRoot" type="Node" parent="." unique_id=1464632231]
|
||||
script = ExtResource("8_jlsqs")
|
||||
|
||||
[node name="CaptureUi" parent="." unique_id=1650401906 instance=ExtResource("9_lhr70")]
|
||||
|
||||
[node name="CaptureController" type="Node" parent="." unique_id=68644702]
|
||||
script = ExtResource("10_wp0k4")
|
||||
CaptureUIPath = NodePath("../CaptureUi")
|
||||
|
|
|
|||
|
|
@ -1,9 +1,12 @@
|
|||
[gd_scene format=3 uid="uid://bjt15rm720w5g"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://duf0vlr2yin8l" path="res://scripts/gameplay/Player.cs" id="1_p0vlq"]
|
||||
[ext_resource type="Script" uid="uid://dtaa141c1wb8e" path="res://scripts/world/PlayerInteractor.cs" id="2_v6fml"]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_p0vlq"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_3li8b"]
|
||||
|
||||
[node name="Player" type="CharacterBody2D" unique_id=1675096620]
|
||||
script = ExtResource("1_p0vlq")
|
||||
|
||||
|
|
@ -27,3 +30,10 @@ offset_right = 8.0
|
|||
offset_bottom = 8.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="InteractArea" type="Area2D" parent="." unique_id=973889967]
|
||||
script = ExtResource("2_v6fml")
|
||||
GameRootPath = NodePath("")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="InteractArea" unique_id=524618181]
|
||||
shape = SubResource("CircleShape2D_3li8b")
|
||||
|
|
|
|||
15
scenes/world/Creature.tscn
Normal file
15
scenes/world/Creature.tscn
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
[gd_scene format=3 uid="uid://djkstm7pmu7gq"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://it4jgvdqmkvr" path="res://scripts/world/Creature.cs" id="1_65v7p"]
|
||||
[ext_resource type="Script" uid="uid://c3276p03ic158" path="res://scripts/world/CreatureVisual.cs" id="1_u1pt2"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_65v7p"]
|
||||
|
||||
[node name="Creature" type="Area2D" unique_id=60731392]
|
||||
script = ExtResource("1_65v7p")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=470973293]
|
||||
shape = SubResource("CircleShape2D_65v7p")
|
||||
|
||||
[node name="Visual" type="Node2D" parent="." unique_id=688427995]
|
||||
script = ExtResource("1_u1pt2")
|
||||
|
|
@ -1,5 +1,8 @@
|
|||
[gd_scene format=3 uid="uid://bjil24xdbm76x"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c3276p03ic158" path="res://scripts/world/CreatureVisual.cs" id="1_vucws"]
|
||||
|
||||
[node name="CreatureMarker" type="Node2D" unique_id=1874810005]
|
||||
|
||||
[node name="Visual" type="Node2D" parent="." unique_id=309456162]
|
||||
script = ExtResource("1_vucws")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue