mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-22 19:43:55 +00:00
New player add method
This commit is contained in:
parent
83e8b9081c
commit
a235183c61
8 changed files with 116 additions and 58 deletions
|
|
@ -1,5 +1,6 @@
|
|||
[gd_scene load_steps=25 format=4 uid="uid://bv451a8wgty4u"]
|
||||
[gd_scene load_steps=28 format=4 uid="uid://bv451a8wgty4u"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/GameManager.cs" id="1_8tmoj"]
|
||||
[ext_resource type="PackedScene" uid="uid://bghghp5ep4w2j" path="res://Scenes/player.tscn" id="2_8mh54"]
|
||||
[ext_resource type="PackedScene" uid="uid://rp4jhx0tuh24" path="res://Scenes/fragola.tscn" id="4_s7wq6"]
|
||||
[ext_resource type="PackedScene" uid="uid://bj28qiai2x2ar" path="res://Scenes/Props/Barrel.tscn" id="5_3uba3"]
|
||||
|
|
@ -21,6 +22,8 @@
|
|||
[ext_resource type="PackedScene" uid="uid://v8s3kubgb2qg" path="res://Scenes/Enemy.tscn" id="18_ixcwn"]
|
||||
[ext_resource type="PackedScene" uid="uid://dxs3ks2ucaxl4" path="res://Scenes/Red_Keycard.tscn" id="19_8fb73"]
|
||||
[ext_resource type="PackedScene" uid="uid://cymtsmui4yo17" path="res://Scenes/Keycard_Pad.tscn" id="20_0aphx"]
|
||||
[ext_resource type="PackedScene" uid="uid://dkwi1hu1bixoe" path="res://Scenes/HUD/HUD.tscn" id="22_krk0o"]
|
||||
[ext_resource type="Script" path="res://Scenes/CameraTarget.gd" id="24_0c2yt"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_jwf4b"]
|
||||
resource_name = "Factory"
|
||||
|
|
@ -220,8 +223,11 @@ physics_layer_1/collision_mask = 18
|
|||
sources/0 = SubResource("TileSetAtlasSource_jwf4b")
|
||||
sources/1 = SubResource("TileSetScenesCollectionSource_qg3vu")
|
||||
|
||||
[node name="GameScene" type="Node2D"]
|
||||
[node name="GameScene" type="Node2D" node_paths=PackedStringArray("PlayerSpawnMarker")]
|
||||
position = Vector2(38, 39)
|
||||
script = ExtResource("1_8tmoj")
|
||||
PlayerTemplate = ExtResource("2_8mh54")
|
||||
PlayerSpawnMarker = NodePath("PlayerStartPosition")
|
||||
|
||||
[node name="Factory Tilemaps" type="Node2D" parent="."]
|
||||
|
||||
|
|
@ -311,9 +317,6 @@ position = Vector2(-944, 160)
|
|||
script = ExtResource("6_t8ide")
|
||||
pixel_snap = false
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("2_8mh54")]
|
||||
position = Vector2(-790, -165)
|
||||
|
||||
[node name="ReferenceRect" type="ReferenceRect" parent="."]
|
||||
visible = false
|
||||
offset_left = -38.0
|
||||
|
|
@ -356,3 +359,13 @@ position = Vector2(-1164, 208)
|
|||
position = Vector2(-1094, 135)
|
||||
Target = NodePath("../Factory Tilemaps/HorizontalDoor")
|
||||
RequiresKeycard = false
|
||||
|
||||
[node name="HUD" parent="." instance=ExtResource("22_krk0o")]
|
||||
visible = false
|
||||
|
||||
[node name="CameraTarget" type="Node2D" parent="."]
|
||||
position = Vector2(-791, -153)
|
||||
script = ExtResource("24_0c2yt")
|
||||
|
||||
[node name="PlayerStartPosition" type="Marker2D" parent="."]
|
||||
position = Vector2(-779, -160)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue