Merge branch 'master' of https://gitlab.hexaquo.at/ggjg20/bodypartfighter
This commit is contained in:
commit
bce0f73c15
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
[node name="Body Builder Menu" type="Spatial"]
|
[node name="Body Builder Menu" type="Spatial"]
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
torsoPath = NodePath("Torso")
|
torsoPath = NodePath("Player")
|
||||||
cameraPath = NodePath("GUI/HBoxC/ViewportContainer/Viewport/Camera")
|
cameraPath = NodePath("GUI/HBoxC/ViewportContainer/Viewport/Camera")
|
||||||
rayCastPath = NodePath("GUI/HBoxC/ViewportContainer/Viewport/MouseLook")
|
rayCastPath = NodePath("GUI/HBoxC/ViewportContainer/Viewport/MouseLook")
|
||||||
viewPortPath = NodePath("GUI/HBoxC/ViewportContainer/Viewport")
|
viewPortPath = NodePath("GUI/HBoxC/ViewportContainer/Viewport")
|
||||||
@ -65,10 +65,9 @@ enabled = true
|
|||||||
collide_with_areas = true
|
collide_with_areas = true
|
||||||
collide_with_bodies = false
|
collide_with_bodies = false
|
||||||
|
|
||||||
[node name="Torso" parent="." instance=ExtResource( 1 )]
|
|
||||||
|
|
||||||
|
[node name="Torso" parent="." instance=ExtResource( 1 )]
|
||||||
[node name="TorsoCollider" parent="Torso" index="0"]
|
[node name="TorsoCollider" parent="Torso" index="0"]
|
||||||
shape = null
|
shape = null
|
||||||
[connection signal="pressed" from="GUI/HBoxC/VBoxC/Start" to="." method="_on_Start_pressed"]
|
|
||||||
|
|
||||||
[editable path="Torso"]
|
[connection signal="pressed" from="GUI/HBoxC/VBoxC/Start" to="." method="_on_Start_pressed"]
|
||||||
|
@ -124,4 +124,4 @@ func delete_body_part():
|
|||||||
func _on_Start_pressed():
|
func _on_Start_pressed():
|
||||||
PhysicsServer.area_set_param(get_viewport().find_world().get_space(), PhysicsServer.AREA_PARAM_GRAVITY, _default_grav)
|
PhysicsServer.area_set_param(get_viewport().find_world().get_space(), PhysicsServer.AREA_PARAM_GRAVITY, _default_grav)
|
||||||
|
|
||||||
emit_signal("start_fight")
|
emit_signal("start_fight", _torso)
|
||||||
|
@ -50,9 +50,14 @@ func _switch_to_win(player_id):
|
|||||||
_win_screen_scene.set_win_message(player_id)
|
_win_screen_scene.set_win_message(player_id)
|
||||||
|
|
||||||
|
|
||||||
func _switch_to_fighting():
|
func _switch_to_fighting(torso):
|
||||||
|
_body_build_scene.remove_child(torso)
|
||||||
|
torso.translation += Vector3(0, 3, 0)
|
||||||
|
torso.rotation = Vector3(0, 0, 0)
|
||||||
_switch_scene(_fighting_scene, "fight_scene")
|
_switch_scene(_fighting_scene, "fight_scene")
|
||||||
|
|
||||||
|
_fighting_scene.add_child(torso)
|
||||||
|
|
||||||
|
|
||||||
func _switch_to_body_build():
|
func _switch_to_body_build():
|
||||||
_switch_scene(_body_build_scene, "body_build")
|
_switch_scene(_body_build_scene, "body_build")
|
||||||
|
@ -16,7 +16,7 @@ script = ExtResource( 4 )
|
|||||||
[node name="Arena" parent="." instance=ExtResource( 5 )]
|
[node name="Arena" parent="." instance=ExtResource( 5 )]
|
||||||
|
|
||||||
[node name="Torso" parent="." instance=ExtResource( 3 )]
|
[node name="Torso" parent="." instance=ExtResource( 3 )]
|
||||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 17.8512, 2, 0 )
|
||||||
|
|
||||||
[node name="Torso2" parent="." instance=ExtResource( 3 )]
|
[node name="Torso2" parent="." instance=ExtResource( 3 )]
|
||||||
transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 2, -10 )
|
transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 2, -10 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user