Fixes and blue light instead of red

This commit is contained in:
mathias 2020-02-02 12:59:47 +01:00
parent 9defb29c04
commit d278bf5552
7 changed files with 1163 additions and 13 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Flugeltextur.png-26cef747ba4cfd8b0ac92c412a917c69.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://3D Input/Flugeltextur.png"
dest_files=[ "res://.import/Flugeltextur.png-26cef747ba4cfd8b0ac92c412a917c69.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/stiertextur.png-deb6038266d9a20bfe850d7c34f3aec9.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://3D Input/stiertextur.png"
dest_files=[ "res://.import/stiertextur.png-deb6038266d9a20bfe850d7c34f3aec9.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -17,9 +17,9 @@ material/0 = null
[node name="OmniLight" type="OmniLight" parent="."]
transform = Transform( 1, 3.12639e-13, -1.77715e-26, -3.12639e-13, 1, -5.68434e-14, 0, 5.68434e-14, 1, 0, 0, -1.5 )
visible = false
light_color = Color( 0.956863, 0.121569, 0.121569, 1 )
light_energy = 3.86
omni_range = 1.8
light_color = Color( 0, 0.188235, 0.756863, 1 )
light_energy = 10.0
omni_range = 2.0
[node name="Area" type="Area" parent="."]

View File

@ -20,13 +20,13 @@ func _physics_process(delta):
var rot_vector = (-transform.basis.z).cross(ground.transform.basis.y)
if current_angle > 0.3:
apply_torque_impulse(rot_vector * current_angle * 7)
elif current_angle > 0.05:
apply_torque_impulse(-(rot_vector * current_angle * 20))
else:
for body in get_colliding_bodies():
if body.name == "StaticBody":
for body in get_colliding_bodies():
if body.name == "StaticBody":
if current_angle > 0.3:
apply_torque_impulse(rot_vector * current_angle * 7)
elif current_angle > 0.05:
apply_torque_impulse(-(rot_vector * current_angle * 20))
else:
angular_velocity = Vector3.ZERO
print("deg: %s" % rad2deg(current_angle))

View File

@ -2,9 +2,11 @@
[ext_resource path="res://Ingame/Level/Torch.tscn" type="PackedScene" id=1]
[ext_resource path="res://Ingame/Level/Ground.tscn" type="PackedScene" id=2]
[ext_resource path="res://default_env.tres" type="Environment" id=3]
[ext_resource path="res://Ingame/Level/Fence.tscn" type="PackedScene" id=5]
[sub_resource type="Environment" id=1]
ambient_light_color = Color( 0.203922, 0.231373, 0.329412, 1 )
[sub_resource type="Curve3D" id=2]
_data = {
"points": PoolVector3Array( -6.18582, 0, 7.84923, 6.18582, 0, -7.84923, -49.9513, 0, -34.3585, -4.51454, 0, 0.679321, 4.51454, 0, -0.679321, -15.3927, 0, -53.766, -21.9094, 0, -9.41343, 21.9094, 0, 9.41343, 23.1226, 0, -50.5878, -3.51591, 0, -8.89224, 3.51591, 0, 8.89224, 48.9412, 0, -26.3448, -0.144619, 0, -5.61391, 0.144619, 0, 5.61391, 60.7732, 0, 13.6973, 4.99704, -4.57764e-05, -11.0807, -4.99704, 4.57764e-05, 11.0807, 54.4575, 0, 49.3261, 10.0432, 0, -5.64291, -10.0432, 0, 5.64291, 32.3244, 0, 71.386, 10.2301, 0, -1.21242, -10.2301, 0, 1.21242, 2.64864, -1.52588e-05, 80.1473, 8.65666, 0, 3.83833, -8.65666, 0, -3.83833, -24.225, 0, 77.5418, 6.10191, 0, 6.62698, -6.10191, 0, -6.62698, -47.3545, 0, 62.2559, 2.38824, 0, 9.77866, -2.38824, 0, -9.77866, -62.2404, 0, 29.8337, -1.39743, 0, 9.2999, 1.39743, 0, -9.2999, -65.2092, 0, -9.54412, 0, 0, 0, 0, 0, 0, -49.9513, 0, -34.3585 ),
@ -32,7 +34,7 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 52.7943, 0, 76.6803 )
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.293457, 0, 5.53332 )
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = ExtResource( 3 )
environment = SubResource( 1 )
[node name="ground" parent="." instance=ExtResource( 2 )]
@ -80,7 +82,7 @@ rotation_mode = 4
transform = Transform( -1, 0, -3.25841e-07, 0, 1, 0, 3.25841e-07, 0, -1, 0, 0, 0 )
[node name="PathFollow6" type="PathFollow" parent="Path"]
transform = Transform( 0.951672, 0, 0.307113, 0, 1, 0, -0.307114, 0, 0.951672, 54.056, 0, -11.6692 )
transform = Transform( 0.951672, 0, 0.307114, 0, 1, 0, -0.307114, 0, 0.951672, 54.056, 0, -11.6692 )
offset = 132.11
rotation_mode = 4

View File

@ -12,6 +12,24 @@ script = ExtResource( 4 )
[node name="Arena" parent="." instance=ExtResource( 5 )]
[node name="PathFollow3" parent="Arena/Path" index="2"]
transform = Transform( 0.0525302, 0, 0.998617, 0, 1, 0, -0.998619, 0, 0.05253, 1.77306, 0, -55.9514 )
[node name="PathFollow6" parent="Arena/Path" index="5"]
transform = Transform( 0.951672, 0, 0.307114, 0, 1, 0, -0.307114, 0, 0.951672, 54.056, 0, -11.6692 )
[node name="PathFollow7" parent="Arena/Path" index="6"]
transform = Transform( 0.989853, 0, 0.142099, 0, 1, 0, -0.142099, 0, 0.98985, 60.6244, 0, 12.2053 )
[node name="PathFollow12" parent="Arena/Path" index="11"]
transform = Transform( -0.305839, 5.41201e-07, -0.952082, 4.12144e-07, 1, 4.36044e-07, 0.952083, -2.59036e-07, -0.305838, -20.2565, -9.77015e-07, 79.0522 )
[node name="PathFollow15" parent="Arena/Path" index="14"]
transform = Transform( -0.986687, 4.21016e-07, -0.162631, 4.26697e-07, 1, 0, 0.162631, -6.93941e-08, -0.986685, -63.4917, 0, 23.5427 )
[node name="PathFollow16" parent="Arena/Path" index="15"]
transform = Transform( -0.999998, 4.26235e-07, -0.00197735, 4.26236e-07, 1, 0, 0.00197735, -8.42818e-10, -0.999997, -65.6734, 0, -1.33537 )
[node name="CameraFocus" type="Spatial" parent="."]
script = ExtResource( 6 )