👀
This commit is contained in:
parent
922ab0ea7f
commit
745438e419
2 changed files with 27 additions and 1 deletions
5
Actors/Player/BodyPart.gd
Normal file
5
Actors/Player/BodyPart.gd
Normal file
|
@ -0,0 +1,5 @@
|
|||
extends Node2D
|
||||
|
||||
const MAX_HEALTH = 100.0
|
||||
|
||||
var health = MAX_HEALTH
|
|
@ -1,7 +1,8 @@
|
|||
[gd_scene load_steps=5 format=2]
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://Graphics/tgstation/sprites/Player.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Actors/Player/Player.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Actors/Player/BodyPart.gd" type="Script" id=3]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=1]
|
||||
radius = 10.4436
|
||||
|
@ -30,3 +31,23 @@ collision_mask = 32
|
|||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Earing"]
|
||||
shape = SubResource( 2 )
|
||||
|
||||
[node name="BodyParts" type="Node2D" parent="."]
|
||||
|
||||
[node name="Head" type="Node2D" parent="BodyParts"]
|
||||
script = ExtResource( 3 )
|
||||
|
||||
[node name="Torso" type="Node2D" parent="BodyParts"]
|
||||
script = ExtResource( 3 )
|
||||
|
||||
[node name="LeftArm" type="Node2D" parent="BodyParts"]
|
||||
script = ExtResource( 3 )
|
||||
|
||||
[node name="RightArm" type="Node2D" parent="BodyParts"]
|
||||
script = ExtResource( 3 )
|
||||
|
||||
[node name="LeftLeg" type="Node2D" parent="BodyParts"]
|
||||
script = ExtResource( 3 )
|
||||
|
||||
[node name="RightLeg" type="Node2D" parent="BodyParts"]
|
||||
script = ExtResource( 3 )
|
||||
|
|
Reference in a new issue