more playing with async loading
This commit is contained in:
@@ -251,6 +251,7 @@ holster={
|
|||||||
textures/canvas_textures/default_texture_filter=0
|
textures/canvas_textures/default_texture_filter=0
|
||||||
lights_and_shadows/directional_shadow/soft_shadow_filter_quality=5
|
lights_and_shadows/directional_shadow/soft_shadow_filter_quality=5
|
||||||
lights_and_shadows/positional_shadow/soft_shadow_filter_quality=5
|
lights_and_shadows/positional_shadow/soft_shadow_filter_quality=5
|
||||||
|
anti_aliasing/quality/screen_space_aa=1
|
||||||
|
|
||||||
[shader_globals]
|
[shader_globals]
|
||||||
|
|
||||||
|
|||||||
@@ -171,18 +171,18 @@ size = Vector3(18.9743, 2.36012, 19.9824)
|
|||||||
transform = Transform3D(1, 0.000164476, 0.000583754, -0.000165075, 0.999999, 0.00104027, -0.000583585, -0.00104036, 0.999999, 0.818877, 1.17009, 3.09268)
|
transform = Transform3D(1, 0.000164476, 0.000583754, -0.000165075, 0.999999, 0.00104027, -0.000583585, -0.00104036, 0.999999, 0.818877, 1.17009, 3.09268)
|
||||||
|
|
||||||
[node name="EnemyWorkingScene" parent="." instance=ExtResource("5_alya6")]
|
[node name="EnemyWorkingScene" parent="." instance=ExtResource("5_alya6")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 17.0764, -57.3609, -5.67549)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 18.3745, -57.3609, -4.76346)
|
||||||
scene_path = "res://scenes/enemy_working_scene.tscn"
|
scene_path = "res://scenes/enemy_working_scene.tscn"
|
||||||
scene_name = "Enemy Working Scene"
|
scene_name = "Enemy Working Scene"
|
||||||
level_gamemode = ExtResource("6_t16kj")
|
level_gamemode = ExtResource("6_t16kj")
|
||||||
hub_portal = true
|
hub_portal = true
|
||||||
|
|
||||||
[node name="Blockout2" parent="." instance=ExtResource("5_alya6")]
|
[node name="Blockout2" parent="." instance=ExtResource("5_alya6")]
|
||||||
transform = Transform3D(0.00439817, 0, 0.99999, 0, 1, 0, -0.99999, 0, 0.00439817, -17.949, -57.3609, -2.74808)
|
transform = Transform3D(0.00439817, 0, 0.99999, 0, 1, 0, -0.99999, 0, 0.00439817, -18.9232, -57.3609, -0.308022)
|
||||||
hub_portal = true
|
hub_portal = true
|
||||||
|
|
||||||
[node name="Gulag of Money" parent="." instance=ExtResource("5_alya6")]
|
[node name="Gulag of Money" parent="." instance=ExtResource("5_alya6")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.602371, -57.3609, 24.0114)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.869051, -57.3609, 22.9677)
|
||||||
scene_path = "res://scenes/Arena of Money.tscn"
|
scene_path = "res://scenes/Arena of Money.tscn"
|
||||||
scene_name = "The Gulag"
|
scene_name = "The Gulag"
|
||||||
level_gamemode = ExtResource("6_pf4wj")
|
level_gamemode = ExtResource("6_pf4wj")
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -25,12 +25,11 @@ func _on_body_entered(body: Node3D) -> void:
|
|||||||
if body.is_in_group("player"):
|
if body.is_in_group("player"):
|
||||||
if active and timer_active:
|
if active and timer_active:
|
||||||
active = false
|
active = false
|
||||||
|
|
||||||
var scene = ENEMY_WORKING_SCENE_ASYNCTEST.instantiate()
|
var scene = ENEMY_WORKING_SCENE_ASYNCTEST.instantiate()
|
||||||
scene.global_basis = global_basis
|
get_tree().current_scene.add_child(scene)
|
||||||
scene.global_position = global_position
|
scene.global_position = global_position
|
||||||
scene.rotation = rotation
|
|
||||||
scene.scale = Vector3.ONE
|
|
||||||
add_child(scene)
|
|
||||||
##Let the Bounds detector know player is exiting
|
##Let the Bounds detector know player is exiting
|
||||||
#SignalBus.emit_signal("player_exiting_tree")
|
#SignalBus.emit_signal("player_exiting_tree")
|
||||||
#
|
#
|
||||||
@@ -44,8 +43,8 @@ func _on_body_entered(body: Node3D) -> void:
|
|||||||
#SaveLoad.save_game_data(get_tree().current_scene.get_name())
|
#SaveLoad.save_game_data(get_tree().current_scene.get_name())
|
||||||
#SaveLoad.save_user_data()
|
#SaveLoad.save_user_data()
|
||||||
#get_tree().change_scene_to_file(scene_path)
|
#get_tree().change_scene_to_file(scene_path)
|
||||||
else:
|
#else:
|
||||||
body.velocity = -body.velocity * 1.1
|
#body.velocity = -body.velocity * 1.1
|
||||||
|
|
||||||
|
|
||||||
func _on_start_activation_timeout() -> void:
|
func _on_start_activation_timeout() -> void:
|
||||||
|
|||||||
Reference in New Issue
Block a user