Merge branch 'master' of https://gitlab.hexaquo.at/ggjg20/bodypartfighter
This commit is contained in:
commit
d6eb9d63d9
Binary file not shown.
BIN
3D Input/Fertige GLBs/vogel_flügel.glb
Normal file
BIN
3D Input/Fertige GLBs/vogel_flügel.glb
Normal file
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 132 KiB |
Binary file not shown.
Binary file not shown.
BIN
3D Input/hühnchen kopf unwrapped.blend
Normal file
BIN
3D Input/hühnchen kopf unwrapped.blend
Normal file
Binary file not shown.
BIN
3D Input/hühnchen kopf unwrapped.blend1
Normal file
BIN
3D Input/hühnchen kopf unwrapped.blend1
Normal file
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 2.5 MiB |
Binary file not shown.
After Width: | Height: | Size: 1.3 MiB |
BIN
3D Input/textures_painter/gravestone1_Material_Normal.png
Normal file
BIN
3D Input/textures_painter/gravestone1_Material_Normal.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.3 MiB |
Binary file not shown.
Binary file not shown.
@ -51,7 +51,6 @@ func _ready():
|
||||
|
||||
func change_count_ui():
|
||||
if done_player_count == null:
|
||||
print("test")
|
||||
done_player_count = 0
|
||||
_playerNum.text = str(done_player_count + 1) + "/" + str(InGameState.player_count)
|
||||
|
||||
@ -169,6 +168,9 @@ func delete_body_part():
|
||||
var body_part = _attachment_point.get_node("Limb").get_child(0)
|
||||
if body_part != null:
|
||||
_costProgress.value -= body_part.cost
|
||||
#delete collider with id
|
||||
var old_col_path = "LimbCollider" + str(_attachment_point.id)
|
||||
_torso.get_node(old_col_path).queue_free()
|
||||
body_part.queue_free()
|
||||
|
||||
|
||||
|
@ -2,6 +2,7 @@ extends Spatial
|
||||
|
||||
|
||||
export(int) var key
|
||||
export(int) var id
|
||||
|
||||
onready var limb = get_node("Limb")
|
||||
|
||||
|
@ -28,6 +28,3 @@ func _physics_process(delta):
|
||||
apply_torque_impulse(-(rot_vector * current_angle * 20))
|
||||
else:
|
||||
angular_velocity = Vector3.ZERO
|
||||
|
||||
print("deg: %s" % rad2deg(current_angle))
|
||||
print("rad: %s" % current_angle)
|
||||
|
@ -25,6 +25,7 @@ shape = SubResource( 1 )
|
||||
[node name="DownFrontLeft" parent="." instance=ExtResource( 2 )]
|
||||
transform = Transform( 0.965926, -1.45851e-07, -0.258819, -1.50996e-07, -1, -1.77636e-15, -0.258819, 3.90806e-08, -0.965926, 1.3, 1, 4.2 )
|
||||
key = 68
|
||||
id = 1
|
||||
|
||||
[node name="Mesh" parent="DownFrontLeft" index="0"]
|
||||
transform = Transform( 0.2, 0, 3.72529e-09, 0, 0.2, 0, -3.72529e-09, 0, 0.2, 0, 0, 0 )
|
||||
@ -32,6 +33,7 @@ transform = Transform( 0.2, 0, 3.72529e-09, 0, 0.2, 0, -3.72529e-09, 0, 0.2, 0,
|
||||
[node name="DownFrontRight" parent="." instance=ExtResource( 2 )]
|
||||
transform = Transform( 0.965926, -1.45851e-07, 0.258819, -1.50996e-07, -1, 1.77636e-15, 0.258819, -3.90806e-08, -0.965926, -1.3, 1, 4.2 )
|
||||
key = 70
|
||||
id = 2
|
||||
|
||||
[node name="OmniLight" parent="DownFrontRight" index="1"]
|
||||
transform = Transform( 1, 3.13083e-13, 0, -3.09641e-13, 1, -5.59552e-14, 0, 5.59552e-14, 1, -0.680858, -1.19209e-07, -1.38872 )
|
||||
@ -42,26 +44,36 @@ transform = Transform( 0.5, 1.4988e-15, 0, 1.4988e-15, 0.5, 0, 0, 0, 0.5, 0, 0,
|
||||
[node name="DownBackRight" parent="." instance=ExtResource( 2 )]
|
||||
transform = Transform( 0.982402, -3.24601e-07, 0.0859489, -3.2133e-07, -1, 0, 0.0859489, -2.83989e-08, -0.982402, -1.9, -1, 3.6 )
|
||||
key = 83
|
||||
id = 3
|
||||
|
||||
[node name="DownBackLeft" parent="." instance=ExtResource( 2 )]
|
||||
transform = Transform( 0.982402, 3.24601e-07, -0.0859489, 3.2133e-07, -1, 0, -0.0859489, -2.83989e-08, -0.982402, 1.9, -1, 3.6 )
|
||||
key = 65
|
||||
id = 4
|
||||
|
||||
[node name="UpFrontLeft" parent="." instance=ExtResource( 2 )]
|
||||
transform = Transform( 0.103081, -3.40598e-08, -0.980752, -3.2133e-07, -1, 0, -0.980752, 3.24056e-07, -0.103081, 2.9, 0, -2 )
|
||||
key = 69
|
||||
id = 5
|
||||
|
||||
[node name="UpFrontRight" parent="." instance=ExtResource( 2 )]
|
||||
transform = Transform( 0.103081, 3.40598e-08, 0.980752, 3.2133e-07, -1, 0, 0.980752, 3.24056e-07, -0.103081, -2.9, 0, -2 )
|
||||
key = 82
|
||||
id = 6
|
||||
|
||||
[node name="UpBackRight" parent="." instance=ExtResource( 2 )]
|
||||
transform = Transform( -0.870723, 0.384569, 0.26555, -1.84307e-07, -0.573576, 0.807811, 0.462972, 0.723268, 0.499426, -1, -1.9, -2.5 )
|
||||
key = 81
|
||||
id = 7
|
||||
|
||||
[node name="UpBackLeft" parent="." instance=ExtResource( 2 )]
|
||||
transform = Transform( -0.870723, -0.384569, -0.26555, 1.84307e-07, -0.573576, 0.807811, -0.462972, 0.723268, 0.499426, 1, -1.9, -2.5 )
|
||||
key = 87
|
||||
id = 8
|
||||
|
||||
[node name="Head" parent="." instance=ExtResource( 2 )]
|
||||
transform = Transform( -0.986155, 3.25841e-07, 0, -3.2133e-07, -1, 0, 0, 0, 0.986155, 0, 0, -3.63054 )
|
||||
key = 87
|
||||
|
||||
[node name="Torso" parent="." instance=ExtResource( 3 )]
|
||||
transform = Transform( 0.5, 0, 0, 0, -2.18557e-08, 0.5, 0, -0.5, -2.18557e-08, 0, 0, 0 )
|
||||
|
@ -23,7 +23,10 @@ func _process(delta: float) -> void:
|
||||
var translation = physics_shape.global_transform
|
||||
print(translation)
|
||||
|
||||
var attach_id = get_parent().get_parent().id
|
||||
|
||||
remove_child(physics_shape)
|
||||
physics_shape.name = "LimbCollider" + str(attach_id)
|
||||
base.add_child(physics_shape)
|
||||
|
||||
physics_shape.global_transform = translation
|
||||
|
@ -12,7 +12,7 @@ var _win_screen_scene
|
||||
|
||||
var _bodies : Array
|
||||
var _body_count = 0
|
||||
var _body_positions = [Vector3(0, 15, -30), Vector3(0, 15, 30), Vector3(-30, 15, 0), Vector3(30, 15, 0)]
|
||||
var _body_positions = [Vector3(0, 15, 30), Vector3(0, 15, -30), Vector3(-30, 15, 0), Vector3(30, 15, 0)]
|
||||
|
||||
func _ready():
|
||||
InGameState.player_count = 2
|
||||
@ -68,7 +68,7 @@ func _switch_to_fighting(torso):
|
||||
torso.translation += _body_positions[_body_count]
|
||||
torso.rotation_degrees = Vector3(90, 0, 0)
|
||||
|
||||
if _body_count == 1:
|
||||
if _body_count == 0:
|
||||
torso.rotation_degrees += Vector3(0, 180, 0)
|
||||
|
||||
_body_count += 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user