Merge branch 'master' of https://gitlab.hexaquo.at/ggjg20/bodypartfighter
This commit is contained in:
commit
2c91dcae29
BIN
3D Input/Fertige GLBs/Arm_Gorilla.glb
Normal file
BIN
3D Input/Fertige GLBs/Arm_Gorilla.glb
Normal file
Binary file not shown.
BIN
3D Input/Frosh Beine Normals Outside.blend
Normal file
BIN
3D Input/Frosh Beine Normals Outside.blend
Normal file
Binary file not shown.
BIN
3D Input/Frosh Beine unwrapped.blend
Normal file
BIN
3D Input/Frosh Beine unwrapped.blend
Normal file
Binary file not shown.
BIN
3D Input/Frosh Beine unwrapped.blend1
Normal file
BIN
3D Input/Frosh Beine unwrapped.blend1
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
3D Input/Pferd_Bein Unwrapped.blend
Normal file
BIN
3D Input/Pferd_Bein Unwrapped.blend
Normal file
Binary file not shown.
BIN
3D Input/Pferd_Bein Unwrapped.blend1
Normal file
BIN
3D Input/Pferd_Bein Unwrapped.blend1
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
3D Input/gorillaarmtexture.png
Normal file
BIN
3D Input/gorillaarmtexture.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
@ -6,7 +6,7 @@
|
||||
|
||||
[node name="Body Builder Menu" type="Spatial"]
|
||||
script = ExtResource( 2 )
|
||||
torsoPath = NodePath("Torso")
|
||||
torsoPath = NodePath("Player")
|
||||
cameraPath = NodePath("GUI/HBoxC/ViewportContainer/Viewport/Camera")
|
||||
rayCastPath = NodePath("GUI/HBoxC/ViewportContainer/Viewport/MouseLook")
|
||||
viewPortPath = NodePath("GUI/HBoxC/ViewportContainer/Viewport")
|
||||
@ -65,10 +65,9 @@ enabled = true
|
||||
collide_with_areas = true
|
||||
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"]
|
||||
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():
|
||||
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)
|
||||
|
||||
|
||||
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")
|
||||
|
||||
_fighting_scene.add_child(torso)
|
||||
|
||||
|
||||
func _switch_to_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="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 )]
|
||||
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