Players can fight each other (but bose lose health)

This commit is contained in:
karl committed 2020-02-01 13:00:25 +01:00
1 parent c73f181dd5
commit e8c7cb3e33
7 files changed
+28 -11

No files matched your search

+3 -3
View File
@@ -1,9 +1,9 @@
extends Spatial
class_name BodyBase
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
export(int) var player_id
# Called when the node enters the scene tree for the first time.
func _ready():
+3 -2
View File
@@ -12,7 +12,9 @@
[sub_resource type="SphereShape" id=5]
[node name="Torso" type="RigidBody"]
[node name="Torso" type="RigidBody" groups=[
"Player",
]]
script = ExtResource( 1 )
[node name="TorsoMesh" type="MeshInstance" parent="."]
@@ -20,7 +22,6 @@ mesh = SubResource( 1 )
material/0 = null
[node name="TorsoCollider" type="CollisionShape" parent="."]
transform = Transform( 0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0, 0 )
shape = SubResource( 2 )
[node name="FrontLeft" type="Spatial" parent="."]