WIP bordelification à grande echelle, devellopement d'un systeme de chargement/changement de map.

This commit is contained in:
osquallo 2018-08-12 18:49:50 +02:00
parent e224dc01c4
commit 52b098c309
38 changed files with 2731 additions and 1765 deletions

Binary file not shown.

View file

@ -0,0 +1,12 @@
# Blender MTL File: 'kit_test_base.blend'
# Material Count: 1
newmtl mat_base
Ns 96.078431
Ka 1.000000 1.000000 1.000000
Kd 0.640000 0.640000 0.640000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2

View file

@ -0,0 +1,40 @@
# Blender v2.79 (sub 0) OBJ File: 'kit_test_base.blend'
# www.blender.org
mtllib kit_test_1way.mtl
o Plane
v -1.000000 0.000000 1.000000
v 1.000000 0.000000 1.000000
v -1.000000 0.000000 -1.000000
v 1.000000 0.000000 -1.000000
v -1.000000 3.000000 -1.000000
v 1.000000 3.000000 -1.000000
v -1.000000 3.000000 1.000000
v 1.000000 3.000000 1.000000
vt 0.250278 0.375250
vt 0.500222 0.375250
vt 0.500222 0.625195
vt 0.250278 0.625195
vt 0.250056 0.625195
vt 0.000111 0.625195
vt 0.000111 0.375250
vt 0.250056 0.375250
vt 0.250056 0.000111
vt 0.250056 0.375028
vt 0.000111 0.375028
vt 0.000111 0.000111
vt 0.749944 0.000111
vt 0.749944 0.375028
vt 0.500000 0.375028
vt 0.500000 0.000111
vn 0.0000 1.0000 0.0000
vn 0.0000 -1.0000 0.0000
vn 0.0000 0.0000 1.0000
vn 0.0000 0.0000 -1.0000
vn -1.0000 0.0000 0.0000
usemtl mat_base
s off
f 1/1/1 2/2/1 4/3/1 3/4/1
f 5/5/2 6/6/2 8/7/2 7/8/2
f 4/9/3 6/10/3 5/11/3 3/12/3
f 1/13/4 7/14/4 8/15/4 2/16/4
f 2/16/5 8/15/5 6/10/5 4/9/5

View file

@ -0,0 +1,12 @@
# Blender MTL File: 'kit_test_base.blend'
# Material Count: 1
newmtl mat_base
Ns 96.078431
Ka 1.000000 1.000000 1.000000
Kd 0.640000 0.640000 0.640000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2

View file

@ -0,0 +1,38 @@
# Blender v2.79 (sub 0) OBJ File: 'kit_test_base.blend'
# www.blender.org
mtllib kit_test_2way.mtl
o Plane
v -1.000000 0.000000 1.000000
v 1.000000 0.000000 1.000000
v -1.000000 0.000000 -1.000000
v 1.000000 0.000000 -1.000000
v -1.000000 3.000000 -1.000000
v 1.000000 3.000000 -1.000000
v -1.000000 3.000000 1.000000
v 1.000000 3.000000 1.000000
vt 0.250278 0.375250
vt 0.500222 0.375250
vt 0.500222 0.625195
vt 0.250278 0.625195
vt 0.250056 0.625195
vt 0.000111 0.625195
vt 0.000111 0.375250
vt 0.250056 0.375250
vt 0.250056 0.000111
vt 0.250056 0.375028
vt 0.000111 0.375028
vt 0.000111 0.000111
vt 0.749944 0.000111
vt 0.749944 0.375028
vt 0.500000 0.375028
vt 0.500000 0.000111
vn 0.0000 1.0000 0.0000
vn 0.0000 -1.0000 0.0000
vn 0.0000 0.0000 1.0000
vn 0.0000 0.0000 -1.0000
usemtl mat_base
s off
f 1/1/1 2/2/1 4/3/1 3/4/1
f 5/5/2 6/6/2 8/7/2 7/8/2
f 4/9/3 6/10/3 5/11/3 3/12/3
f 1/13/4 7/14/4 8/15/4 2/16/4

View file

@ -0,0 +1,12 @@
# Blender MTL File: 'kit_test_base.blend'
# Material Count: 1
newmtl mat_base
Ns 96.078431
Ka 1.000000 1.000000 1.000000
Kd 0.640000 0.640000 0.640000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2

View file

@ -0,0 +1,32 @@
# Blender v2.79 (sub 0) OBJ File: 'kit_test_base.blend'
# www.blender.org
mtllib kit_test_3way.mtl
o Plane
v -1.000000 0.000000 1.000000
v 1.000000 0.000000 1.000000
v -1.000000 0.000000 -1.000000
v 1.000000 0.000000 -1.000000
v -1.000000 3.000000 -1.000000
v 1.000000 3.000000 -1.000000
v -1.000000 3.000000 1.000000
v 1.000000 3.000000 1.000000
vt 0.250278 0.375250
vt 0.500222 0.375250
vt 0.500222 0.625195
vt 0.250278 0.625195
vt 0.250056 0.625195
vt 0.000111 0.625195
vt 0.000111 0.375250
vt 0.250056 0.375250
vt 0.250056 0.000111
vt 0.250056 0.375028
vt 0.000111 0.375028
vt 0.000111 0.000111
vn 0.0000 1.0000 0.0000
vn 0.0000 -1.0000 0.0000
vn 0.0000 0.0000 1.0000
usemtl mat_base
s off
f 1/1/1 2/2/1 4/3/1 3/4/1
f 5/5/2 6/6/2 8/7/2 7/8/2
f 4/9/3 6/10/3 5/11/3 3/12/3

View file

@ -0,0 +1,12 @@
# Blender MTL File: 'kit_test_base.blend'
# Material Count: 1
newmtl mat_base
Ns 96.078431
Ka 1.000000 1.000000 1.000000
Kd 0.640000 0.640000 0.640000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2

View file

@ -0,0 +1,26 @@
# Blender v2.79 (sub 0) OBJ File: 'kit_test_base.blend'
# www.blender.org
mtllib kit_test_4way.mtl
o Plane
v -1.000000 0.000000 1.000000
v 1.000000 0.000000 1.000000
v -1.000000 0.000000 -1.000000
v 1.000000 0.000000 -1.000000
v -1.000000 3.000000 -1.000000
v 1.000000 3.000000 -1.000000
v -1.000000 3.000000 1.000000
v 1.000000 3.000000 1.000000
vt 0.250278 0.375250
vt 0.500222 0.375250
vt 0.500222 0.625195
vt 0.250278 0.625195
vt 0.250056 0.625195
vt 0.000111 0.625195
vt 0.000111 0.375250
vt 0.250056 0.375250
vn 0.0000 1.0000 0.0000
vn 0.0000 -1.0000 0.0000
usemtl mat_base
s off
f 1/1/1 2/2/1 4/3/1 3/4/1
f 5/5/2 6/6/2 8/7/2 7/8/2

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View file

@ -0,0 +1,12 @@
# Blender MTL File: 'kit_test_base.blend'
# Material Count: 1
newmtl mat_base
Ns 96.078431
Ka 1.000000 1.000000 1.000000
Kd 0.640000 0.640000 0.640000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2

View file

@ -0,0 +1,36 @@
# Blender v2.79 (sub 0) OBJ File: 'kit_test_base.blend'
# www.blender.org
mtllib kit_test_corner.mtl
o Plane
v -1.000000 0.000000 1.000000
v 1.000000 0.000000 1.000000
v -1.000000 0.000000 -1.000000
v 1.000000 0.000000 -1.000000
v -1.000000 3.000000 -1.000000
v 1.000000 3.000000 -1.000000
v -1.000000 3.000000 1.000000
v 1.000000 3.000000 1.000000
vt 0.250278 0.375250
vt 0.500222 0.375250
vt 0.500222 0.625195
vt 0.250278 0.625195
vt 0.250056 0.625195
vt 0.000111 0.625195
vt 0.000111 0.375250
vt 0.250056 0.375250
vt 0.250056 0.000111
vt 0.250056 0.375028
vt 0.000111 0.375028
vt 0.000111 0.000111
vt 0.500000 0.000111
vt 0.500000 0.375028
vn 0.0000 1.0000 0.0000
vn 0.0000 -1.0000 0.0000
vn 0.0000 0.0000 1.0000
vn -1.0000 0.0000 0.0000
usemtl mat_base
s off
f 1/1/1 2/2/1 4/3/1 3/4/1
f 5/5/2 6/6/2 8/7/2 7/8/2
f 4/9/3 6/10/3 5/11/3 3/12/3
f 2/13/4 8/14/4 6/10/4 4/9/4

View file

@ -0,0 +1,57 @@
[gd_resource type="SpatialMaterial" load_steps=2 format=2]
[ext_resource path="res://assets/kits/kit_test/kit_test_base_tex.png" type="Texture" id=1]
[resource]
render_priority = 0
flags_transparent = false
flags_unshaded = false
flags_vertex_lighting = false
flags_no_depth_test = false
flags_use_point_size = false
flags_world_triplanar = false
flags_fixed_size = false
flags_albedo_tex_force_srgb = false
vertex_color_use_as_albedo = false
vertex_color_is_srgb = false
params_diffuse_mode = 0
params_specular_mode = 0
params_blend_mode = 0
params_cull_mode = 0
params_depth_draw_mode = 0
params_line_width = 1.0
params_point_size = 1.0
params_billboard_mode = 0
params_grow = false
params_use_alpha_scissor = false
albedo_color = Color( 1, 1, 1, 1 )
albedo_texture = ExtResource( 1 )
metallic = 0.5
metallic_specular = 0.5
metallic_texture_channel = 0
roughness = 1.0
roughness_texture_channel = 0
emission_enabled = false
normal_enabled = false
rim_enabled = false
clearcoat_enabled = false
anisotropy_enabled = false
ao_enabled = false
depth_enabled = false
subsurf_scatter_enabled = false
transmission_enabled = false
refraction_enabled = false
detail_enabled = false
uv1_scale = Vector3( 1, 1, 1 )
uv1_offset = Vector3( 0, 0, 0 )
uv1_triplanar = false
uv1_triplanar_sharpness = 1.0
uv2_scale = Vector3( 1, 1, 1 )
uv2_offset = Vector3( 0, 0, 0 )
uv2_triplanar = false
uv2_triplanar_sharpness = 1.0
proximity_fade_enable = false
distance_fade_enable = false
_sections_unfolded = [ "Albedo", "Metallic", "Roughness" ]

View file

@ -8,11 +8,9 @@ func _ready():
change_title()
get_tree().get_root().connect("size_changed", self, "on_window_size_changed")
$Game/Character.get_node( "MeshInstance" ).get_surface_material(0).albedo_color = global.character_color
print( str(global.character_name) )
print( str(global.character_color) )
character.get_node( "MeshInstance" ).get_surface_material(0).set_shader_param( "albedo", global.character_color )
$GUI.pause()
self.connect( "logout_button_pressed", global, "_on_logout_button_pressed" )

View file

@ -13,8 +13,9 @@ _sections_unfolded = [ "Pause" ]
[node name="GUI" parent="." index="1" instance=ExtResource( 3 )]
pause_mode = 2
_sections_unfolded = [ "Margin", "Mouse", "Pause", "Size Flags", "Theme", "custom_constants" ]
[node name="start_position" type="Spatial" parent="." index="2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 11.5671, 0, 0 )
[connection signal="logout_button_pressed" from="GUI" to="." method="_on_GUI_logout_button_pressed"]

File diff suppressed because it is too large Load diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 KiB

View file

@ -2,24 +2,28 @@ extends Node
const WINDOW_TITLE_INPUT = "GUI/Settings/Menus/TabContainer/Test/ScrollContainer/VBoxContainer/TitleBox/Title"
var character_name = null
var character_name = "player"
var character_color = null
var character_gender = null
var character_slot = null
# BG loader
onready var progress_texture = $background_loader/center_container/texture_progress
var loader
var wait_frames
var time_max = 10 # msec
var current_scene = null
var old_scene = null
var parent_scene = null
func _ready():
var root = get_tree().get_root()
current_scene = root.get_child(root.get_child_count() -1)
# current_scene = root.get_child(root.get_child_count() -1)
change_title()
get_tree().get_root().connect("size_changed", self, "on_window_size_changed")
# change_level( "res://login_scene/login_scene.tscn", get_tree().get_root() )
########
#### change title ####
func on_window_size_changed():
@ -37,23 +41,51 @@ func change_title():
OS.set_window_title( title )
########
########
#### scene loading
func goto_scene_loading( path ):
get_node("background_loader").show()
loader = ResourceLoader.load_interactive( path )
#### change level
func unload_scene( scene ):
print("unload_scene: "+str(scene.name))
scene.queue_free()
func load_scene( scene_path ):
print("load_scene: "+str(scene_path))
loader = ResourceLoader.load_interactive( scene_path )
if loader == null: # check for errors
return false
return true
func change_level( p_next_scene_path, p_parent_next_scene = null, p_old_scene = null ):
character.hide()
get_node("background_loader").show()
print()
print( "change_level: " )
if p_old_scene:
print( "from "+p_old_scene.name )
print( "to "+str(p_next_scene_path) )
if p_parent_next_scene:
print( " on "+ str(p_parent_next_scene.name) )
print()
if not load_scene( p_next_scene_path ):
show_error()
return
parent_scene = p_parent_next_scene
old_scene = p_old_scene
set_process(true)
if current_scene:
print( "queue_free: "+str(current_scene.name) )
current_scene.queue_free() # get rid of the old scene
if old_scene:
unload_scene( old_scene )
wait_frames = 1
########
func _process( time ):
if loader == null:
# no need to process anymore
@ -86,22 +118,29 @@ func _process( time ):
func update_progress():
var progress_texture = get_node("background_loader/center_container/texture_progress")
# var progress_texture = get_node("background_loader/center_container/texture_progress")
var progress = (float(loader.get_stage()) / loader.get_stage_count()) * progress_texture.max_value
progress_texture.value = progress
func set_new_scene( scene_resource ):
var progress_texture = get_node("background_loader/center_container/texture_progress")
# var progress_texture = get_node("background_loader/center_container/texture_progress")
progress_texture.value = 0
var scene = scene_resource.instance()
# current_scene = scene_resource.instance()
if parent_scene:
parent_scene.add_child(scene)
else:
get_tree().get_root().add_child(scene)
current_scene = scene_resource.instance()
get_tree().get_root().add_child(current_scene)
if scene.has_node("start_position"):
character.update( scene.get_node("start_position") )
get_node("background_loader").hide()
character.show()
func _on_login_scene_character_creation_finished():
@ -114,9 +153,13 @@ func _on_login_scene_character_creation_finished():
config_file.set_value(str(global.character_slot), "color", global.character_color)
config_file.save( "user://player.cfg" )
global.goto_scene_loading( "res://game_scene/game_scene.tscn" )
# global.goto_scene_loading( "res://game_scene/game_scene.tscn" )
# global.change_level( "res://game_scene/game_scene.tscn", null, get_tree().get_root().get_node("login_scene") )
# global.change_level( "res://test_scene/test_scene.tscn", null, get_tree().get_root().get_node("login_scene") )
global.change_level( "res://test_grid_map/test_grid_map.tscn", null, get_tree().get_root().get_node("login_scene") )
func _on_logout_button_pressed():
global.goto_scene_loading( "res://login_scene/login_scene.tscn" )
# global.goto_scene_loading( "res://login_scene/login_scene.tscn" )
global.change_level( "res://login_scene/login_scene.tscn", null, get_tree().get_root().get_node("game_scene") )
get_tree().paused = false
########

View file

@ -3,7 +3,7 @@
[ext_resource path="res://global.gd" type="Script" id=1]
[ext_resource path="res://background_loader_scene/background_loader.tscn" type="PackedScene" id=2]
[node name="global" type="Node" index="0"]
[node name="global" type="Node"]
pause_mode = 2
script = ExtResource( 1 )

View file

@ -1,64 +1,14 @@
[gd_scene load_steps=3 format=2]
[gd_scene load_steps=2 format=2]
[ext_resource path="res://game_scene/suzanne/suzanne.obj" type="ArrayMesh" id=1]
[sub_resource type="SpatialMaterial" id=2]
render_priority = 0
flags_transparent = false
flags_unshaded = false
flags_vertex_lighting = false
flags_no_depth_test = false
flags_use_point_size = false
flags_world_triplanar = false
flags_fixed_size = false
flags_albedo_tex_force_srgb = true
vertex_color_use_as_albedo = false
vertex_color_is_srgb = false
params_diffuse_mode = 0
params_specular_mode = 0
params_blend_mode = 0
params_cull_mode = 0
params_depth_draw_mode = 0
params_line_width = 1.0
params_point_size = 1.0
params_billboard_mode = 0
params_grow = false
params_use_alpha_scissor = false
albedo_color = Color( 1, 1, 1, 1 )
metallic = 0.0
metallic_specular = 0.0
metallic_texture_channel = 0
roughness = 1.0
roughness_texture_channel = 0
emission_enabled = false
normal_enabled = false
rim_enabled = false
clearcoat_enabled = false
anisotropy_enabled = false
ao_enabled = false
depth_enabled = false
subsurf_scatter_enabled = false
transmission_enabled = false
refraction_enabled = false
detail_enabled = false
uv1_scale = Vector3( 1, 1, 1 )
uv1_offset = Vector3( 0, 0, 0 )
uv1_triplanar = false
uv1_triplanar_sharpness = 1.0
uv2_scale = Vector3( 1, 1, 1 )
uv2_offset = Vector3( 0, 0, 0 )
uv2_triplanar = false
uv2_triplanar_sharpness = 1.0
proximity_fade_enable = false
distance_fade_enable = false
_sections_unfolded = [ "Albedo", "Flags", "Metallic", "Parameters", "Roughness", "UV1" ]
[ext_resource path="res://scenes/Game/Character/Character.tscn" type="PackedScene" id=1]
[node name="character_preview" type="Spatial"]
[node name="camera" type="Camera" parent="." index="0"]
[node name="character" parent="." index="0" instance=ExtResource( 1 )]
transform = Transform( 1, 0, 0, 0, 0.991477, 0.130284, 0, -0.130284, 0.991477, 0, 1.35965, 2.80399 )
[node name="camera" type="Camera" parent="." index="1"]
transform = Transform( -0.999918, 0, 0.0128413, 0, 1, 0, -0.0128413, 0, -0.999918, 0, 0.426006, 5.56602 )
keep_aspect = 1
cull_mask = 1048575
environment = null
@ -66,49 +16,10 @@ h_offset = 0.0
v_offset = 0.0
doppler_tracking = 0
projection = 0
current = true
current = false
fov = 70.0
size = 1.0
near = 0.05
far = 100.0
[node name="character" type="MeshInstance" parent="." index="1"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.869367, 0 )
layers = 1
material_override = null
cast_shadow = 1
extra_cull_margin = 0.0
use_in_baked_light = false
lod_min_distance = 0.0
lod_min_hysteresis = 0.0
lod_max_distance = 0.0
lod_max_hysteresis = 0.0
mesh = ExtResource( 1 )
skeleton = NodePath("..")
material/0 = SubResource( 2 )
_sections_unfolded = [ "material" ]
[node name="omni_light" type="OmniLight" parent="." index="2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.08972, 3.20221 )
layers = 1
light_color = Color( 1, 1, 1, 1 )
light_energy = 1.0
light_indirect_energy = 1.0
light_negative = false
light_specular = 0.5
light_bake_mode = 1
light_cull_mask = -1
shadow_enabled = false
shadow_color = Color( 0, 0, 0, 1 )
shadow_bias = 0.15
shadow_contact = 0.0
shadow_reverse_cull_face = false
editor_only = false
omni_range = 5.0
omni_attenuation = 1.0
omni_shadow_mode = 1
omni_shadow_detail = 1

View file

@ -74,7 +74,7 @@ func update_character_slots():
func _ready():
$viewport/character_preview.show()
character_mesh = $viewport/character_preview/character
character_mesh = $viewport/character_preview/character/MeshInstance
name_input = $h_box_container/character_creation_box/margin_container/v_box_container/name_box/line_edit
update_character_slots()
@ -118,16 +118,16 @@ func update_preview():
if err:
print("Error code when loading player config file: ", err)
if config_file.has_section( str(slot) ):
$viewport/character_preview/character.get_surface_material(0).albedo_color = config_file.get_value( str(slot), "color" )
$viewport/character_preview/character/MeshInstance.get_surface_material(0).set_shader_param("albedo", config_file.get_value( str(slot), "color" ) )
func _on_character_creation_box_gender_value_changed(value):
if value == 1:
global.character_gender = 1
character_mesh.get_surface_material(0).albedo_color = Color( 1.0, 0.25, 0.25, 1.0 )
character_mesh.get_surface_material(0).set_shader_param("albedo", Color( 1.0, 0.25, 0.25, 1.0 ) )
else:
global.character_gender = 0
character_mesh.get_surface_material(0).albedo_color = Color( 0.0, 0.0, 1.0, 1.0 )
character_mesh.get_surface_material(0).set_shader_param("albedo", Color( 0.0, 0.0, 1.0, 1.0 ) )
@ -141,7 +141,7 @@ func _on_character_creation_box_creation_button_pressed():
error_label.text = "You need to choose a character's name."
return
global.character_name = name_input.text
global.character_color = character_mesh.get_surface_material(0).albedo_color
global.character_color = character_mesh.get_surface_material(0).get_shader_param("albedo")
var config_file = ConfigFile.new()
var err = config_file.load( "user://player.cfg" )

View file

@ -12,7 +12,7 @@ resource_local_to_scene = true
flags = 0
viewport_path = NodePath("viewport")
[node name="character_selection_menu" type="Control" index="0"]
[node name="character_selection_menu" type="Control"]
anchor_left = 0.0
anchor_top = 0.0

View file

@ -18,6 +18,7 @@ config/icon="res://icon.png"
[autoload]
global="*res://global.tscn"
character="*res://scenes/Game/Character/Character.tscn"
[display]

View file

@ -2,6 +2,9 @@ extends MarginContainer
signal logout_button_pressed
func _ready():
pause()
func _on_Home_setting_pressed():
$Home.hide()
$Settings.show()
@ -19,7 +22,6 @@ func _on_Home_play_pressed():
play()
func _input(event):
if event.is_action_pressed("ui_test"):
print( "Event: ui_test" )

View file

@ -21,6 +21,7 @@ default_font = SubResource( 1 )
[node name="GUI" type="MarginContainer"]
pause_mode = 2
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 1.0
@ -36,7 +37,7 @@ custom_constants/margin_top = 0
custom_constants/margin_left = 0
custom_constants/margin_bottom = 0
script = ExtResource( 1 )
_sections_unfolded = [ "Margin", "Mouse", "Size Flags", "Theme", "custom_constants" ]
_sections_unfolded = [ "Margin", "Mouse", "Pause", "Size Flags", "Theme", "custom_constants" ]
[node name="HUD" parent="." index="0" instance=ExtResource( 2 )]

View file

@ -52,6 +52,7 @@ size_flags_vertical = 1
texture = ExtResource( 2 )
expand = true
stretch_mode = 7
_sections_unfolded = [ "Visibility" ]
[node name="center_container" type="CenterContainer" parent="." index="1"]

View file

@ -31,7 +31,16 @@ func _ready():
set_info_billboard_position()
#func _enter_tree():
# print("qsdfghjklkjhgfdsqsdfghj")
# if self.get_parent().has_node( "start_position" ):
# self.translation = self.get_parent().get_node( "start_position" ).translation
func update( start_position ):
if start_position:
self.translation = start_position.translation
self.rotation = start_position.rotation
$MeshInstance.get_surface_material(0).set_shader_param( "albedo", global.character_color )
func _process(delta):
process_input(delta)
@ -105,11 +114,11 @@ func process_movement(delta):
obj.apply_impulse( collision_info.position, -collision_info.normal*delta )
if not obj.get_node( "MeshInstance" ).get_surface_material(0).get("albedo_color") == null:
obj.get_node( "MeshInstance" ).get_surface_material(0).albedo_color = Color( 1, 0, 1, 1 )
get_node( "../../GUI/HUD/Jauges/douleur/ProgressBar" ).value += 0.25
if get_node( "../../GUI/HUD/Jauges/douleur/ProgressBar" ).value >= 100:
get_node( "../../GUI/HUD/Jauges/trauma/ProgressBar" ).value += 0.25
if get_node( "../../GUI/HUD/Jauges/trauma/ProgressBar" ).value >= 100:
get_node( "../../GUI/HUD/Jauges/oubli/ProgressBar" ).value += 0.25
get_tree().get_root().get_node( "game_scene/GUI/HUD/Jauges/douleur/ProgressBar" ).value += 0.25
if get_tree().get_root().get_node( "game_scene/GUI/HUD/Jauges/douleur/ProgressBar" ).value >= 100:
get_tree().get_root().get_node( "game_scene/GUI/HUD/Jauges/trauma/ProgressBar" ).value += 0.25
if get_tree().get_root().get_node( "game_scene/GUI/HUD/Jauges/trauma/ProgressBar" ).value >= 100:
get_tree().get_root().get_node( "game_scene/GUI/HUD/Jauges/oubli/ProgressBar" ).value += 0.25
@ -151,5 +160,16 @@ func _input(event):
flashlight.show()
if Input.is_action_pressed( "hide_char" ):
$MeshInstance.visible = not $MeshInstance.visible
if self.visible:
self.hide()
else:
self.show()
func hide():
self.visible = false
$infos_spatial/character_infos_billboard.hide()
func show():
self.visible = true
$infos_spatial/character_infos_billboard.show()

View file

@ -1,75 +1,74 @@
[gd_scene load_steps=6 format=2]
[gd_scene load_steps=8 format=2]
[ext_resource path="res://scenes/Game/Character/Character.gd" type="Script" id=1]
[ext_resource path="res://game_scene/character_infos_billboard.tscn" type="PackedScene" id=2]
[ext_resource path="res://game_scene/suzanne/suzanne.obj" type="ArrayMesh" id=2]
[ext_resource path="res://game_scene/suzanne/suzanne_albedo.png" type="Texture" id=3]
[ext_resource path="res://game_scene/character_infos_billboard.tscn" type="PackedScene" id=4]
[sub_resource type="SphereShape" id=1]
[sub_resource type="Shader" id=2]
radius = 0.897042
code = "shader_type spatial;
render_mode blend_mix,depth_draw_opaque,cull_back,diffuse_burley,specular_schlick_ggx;
uniform vec4 albedo : hint_color;
uniform sampler2D texture_albedo : hint_albedo;
uniform float specular;
uniform float metallic;
uniform float roughness : hint_range(0,1);
uniform float point_size : hint_range(0,128);
uniform sampler2D texture_metallic : hint_white;
uniform vec4 metallic_texture_channel;
uniform sampler2D texture_roughness : hint_white;
uniform vec4 roughness_texture_channel;
uniform vec3 uv1_scale;
uniform vec3 uv1_offset;
uniform vec3 uv2_scale;
uniform vec3 uv2_offset;
[sub_resource type="SphereMesh" id=2]
custom_aabb = AABB( 0, 0, 0, 0, 0, 0 )
radius = 1.0
height = 2.0
radial_segments = 64
rings = 32
is_hemisphere = false
void vertex() {
UV=UV*uv1_scale.xy+uv1_offset.xy;
}
[sub_resource type="SpatialMaterial" id=3]
void fragment() {
vec2 base_uv = UV;
vec4 albedo_tex = texture(texture_albedo,base_uv);
ALBEDO = albedo.rgb * albedo_tex.rgb;
float metallic_tex = dot(texture(texture_metallic,base_uv),metallic_texture_channel);
METALLIC = metallic_tex * metallic;
float roughness_tex = dot(texture(texture_roughness,base_uv),roughness_texture_channel);
ROUGHNESS = roughness_tex * roughness;
SPECULAR = specular;
}
"
[sub_resource type="ShaderMaterial" id=3]
render_priority = 0
flags_transparent = false
flags_unshaded = false
flags_vertex_lighting = false
flags_no_depth_test = false
flags_use_point_size = false
flags_world_triplanar = false
flags_fixed_size = false
flags_albedo_tex_force_srgb = false
vertex_color_use_as_albedo = false
vertex_color_is_srgb = false
params_diffuse_mode = 0
params_specular_mode = 0
params_blend_mode = 0
params_cull_mode = 0
params_depth_draw_mode = 0
params_line_width = 1.0
params_point_size = 1.0
params_billboard_mode = 0
params_grow = false
params_use_alpha_scissor = false
albedo_color = Color( 1, 1, 1, 1 )
metallic = 0.0
metallic_specular = 0.5
metallic_texture_channel = 0
roughness = 0.0
roughness_texture_channel = 0
emission_enabled = false
normal_enabled = false
rim_enabled = false
clearcoat_enabled = false
anisotropy_enabled = false
ao_enabled = false
depth_enabled = false
subsurf_scatter_enabled = false
transmission_enabled = false
refraction_enabled = false
detail_enabled = false
uv1_scale = Vector3( 1, 1, 1 )
uv1_offset = Vector3( 0, 0, 0 )
uv1_triplanar = false
uv1_triplanar_sharpness = 1.0
uv2_scale = Vector3( 1, 1, 1 )
uv2_offset = Vector3( 0, 0, 0 )
uv2_triplanar = false
uv2_triplanar_sharpness = 1.0
proximity_fade_enable = false
distance_fade_enable = false
shader = SubResource( 2 )
shader_param/albedo = Color( 1, 1, 1, 1 )
shader_param/specular = 0.5
shader_param/metallic = 0.0
shader_param/roughness = 0.0
shader_param/point_size = 1.0
shader_param/metallic_texture_channel = Plane( 1, 0, 0, 0 )
shader_param/roughness_texture_channel = Plane( 1, 0, 0, 0 )
shader_param/uv1_scale = Vector3( 1, 1, 1 )
shader_param/uv1_offset = Vector3( 0, 0, 0 )
shader_param/uv2_scale = Vector3( 1, 1, 1 )
shader_param/uv2_offset = Vector3( 0, 0, 0 )
shader_param/texture_albedo = ExtResource( 3 )
_sections_unfolded = [ "shader_param" ]
[sub_resource type="SphereShape" id=4]
radius = 0.520354
[node name="Character" type="KinematicBody"]
transform = Transform( 1, 0, 0, 0, 0.589355, 0, 0, 0, 1, -0.0409546, 1.06519, 6.02408 )
transform = Transform( 0.371345, 0, 0, 0, 0.218854, 0, 0, 0, 0.371345, -0.00167466, -0.475751, 6.02408 )
input_ray_pickable = true
input_capture_on_drag = false
collision_layer = 1
@ -105,17 +104,9 @@ near = 0.05
far = 100.0
_sections_unfolded = [ "Transform" ]
[node name="CollisionShape" type="CollisionShape" parent="." index="1"]
[node name="MeshInstance" type="MeshInstance" parent="." index="1"]
transform = Transform( 0.364654, 0, 0, 0, -2.47558e-008, -0.566346, 0, 0.313738, -1.37139e-008, 0.0505983, 4.32164, 0 )
shape = SubResource( 1 )
disabled = false
_sections_unfolded = [ "Transform" ]
[node name="MeshInstance" type="MeshInstance" parent="." index="2"]
editor/display_folded = true
transform = Transform( 0.281766, 0, 0, 0, 0.491282, 0, 0, 0, 0.26834, 0.0433697, 4.3256, 0 )
transform = Transform( -0.281766, 0, -2.3459e-008, 0, 0.491282, 0, 2.46328e-008, 0, -0.26834, 0.0433697, 4.3256, 4.76837e-007 )
layers = 1
material_override = null
cast_shadow = 1
@ -125,14 +116,14 @@ lod_min_distance = 0.0
lod_min_hysteresis = 0.0
lod_max_distance = 0.0
lod_max_hysteresis = 0.0
mesh = SubResource( 2 )
mesh = ExtResource( 2 )
skeleton = NodePath("..")
material/0 = SubResource( 3 )
_sections_unfolded = [ "material" ]
_sections_unfolded = [ "Transform", "material" ]
[node name="Flashlight" type="SpotLight" parent="MeshInstance" index="0"]
transform = Transform( 1.74358, 0, 0, 0, 0.999973, 0.0124571, 0, -0.00792279, 1.83077, -0.0756186, 0.00765181, -1.31515 )
transform = Transform( -1.74358, -6.59629e-010, 1.52425e-007, 0, 0.999973, 0.0124571, -1.60055e-007, 0.00792279, -1.83077, 0.0756185, 0.00765133, 1.31515 )
layers = 1
light_color = Color( 1, 1, 1, 1 )
light_energy = 2.0
@ -153,10 +144,19 @@ spot_angle = 22.2473
spot_angle_attenuation = 1.0
_sections_unfolded = [ "Light", "Shadow" ]
[node name="infos_spatial" type="Spatial" parent="." index="3"]
[node name="infos_spatial" type="Spatial" parent="." index="2"]
transform = Transform( 0.281766, 0, 0, 0, 0.491282, 0, 0, 0, 0.26834, 0.0433697, 5.31268, 0 )
[node name="character_infos_billboard" parent="infos_spatial" index="0" instance=ExtResource( 2 )]
[node name="character_infos_billboard" parent="infos_spatial" index="0" instance=ExtResource( 4 )]
mouse_default_cursor_shape = 2
_sections_unfolded = [ "Mouse", "Rect", "Size Flags", "Visibility" ]
[node name="collision_shape" type="CollisionShape" parent="." index="3"]
transform = Transform( 0.754381, 0, 0, 0, 0.927224, 0, 0, 0, 0.540596, 0.0499596, 4.35001, -0.0363884 )
shape = SubResource( 4 )
disabled = false

View file

@ -1,18 +1,17 @@
[gd_scene load_steps=43 format=2]
[gd_scene load_steps=42 format=2]
[ext_resource path="res://scenes/Game/Character/Character.tscn" type="PackedScene" id=1]
[ext_resource path="res://assets/Game/Brick08/Bricks08_col.jpg" type="Texture" id=2]
[ext_resource path="res://assets/Game/Brick08/Bricks08_AO.jpg" type="Texture" id=3]
[ext_resource path="res://assets/Game/Brick08/Bricks08_disp.jpg" type="Texture" id=4]
[ext_resource path="res://assets/Game/Brick08/Bricks08_nrm.jpg" type="Texture" id=5]
[ext_resource path="res://assets/Game/Brick08/Bricks08_rgh.jpg" type="Texture" id=6]
[ext_resource path="res://scenes/Game/Box.gd" type="Script" id=7]
[ext_resource path="res://scenes/Game/CubeShaderTest.tscn" type="PackedScene" id=8]
[ext_resource path="res://scenes/Game/firecamp.tscn" type="PackedScene" id=9]
[ext_resource path="res://assets/Game/textures/fire_01.png" type="Texture" id=10]
[ext_resource path="res://assets/Game/textures/fire_02.png" type="Texture" id=11]
[ext_resource path="res://scenes/Game/jukebox/jukebox.tscn" type="PackedScene" id=12]
[ext_resource path="res://scenes/Game/Terrain/gridmaps/GridMaps.tscn" type="PackedScene" id=13]
[ext_resource path="res://assets/Game/Brick08/Bricks08_col.jpg" type="Texture" id=1]
[ext_resource path="res://assets/Game/Brick08/Bricks08_AO.jpg" type="Texture" id=2]
[ext_resource path="res://assets/Game/Brick08/Bricks08_disp.jpg" type="Texture" id=3]
[ext_resource path="res://assets/Game/Brick08/Bricks08_nrm.jpg" type="Texture" id=4]
[ext_resource path="res://assets/Game/Brick08/Bricks08_rgh.jpg" type="Texture" id=5]
[ext_resource path="res://scenes/Game/Box.gd" type="Script" id=6]
[ext_resource path="res://scenes/Game/CubeShaderTest.tscn" type="PackedScene" id=7]
[ext_resource path="res://scenes/Game/firecamp.tscn" type="PackedScene" id=8]
[ext_resource path="res://assets/Game/textures/fire_01.png" type="Texture" id=9]
[ext_resource path="res://assets/Game/textures/fire_02.png" type="Texture" id=10]
[ext_resource path="res://scenes/Game/jukebox/jukebox.tscn" type="PackedScene" id=11]
[ext_resource path="res://scenes/Game/Terrain/gridmaps/GridMaps.tscn" type="PackedScene" id=12]
[sub_resource type="ProceduralSky" id=1]
@ -42,7 +41,7 @@ background_sky_custom_fov = 0.0
background_color = Color( 0, 0, 0, 1 )
background_energy = 1.0
background_canvas_max_layer = 0
ambient_light_color = Color( 0, 0, 0, 1 )
ambient_light_color = Color( 1, 1, 1, 1 )
ambient_light_energy = 1.0
ambient_light_sky_contribution = 1.0
fog_enabled = false
@ -112,7 +111,7 @@ adjustment_enabled = false
adjustment_brightness = 1.0
adjustment_contrast = 1.0
adjustment_saturation = 1.0
_sections_unfolded = [ "Background", "SS Reflections", "SSAO" ]
_sections_unfolded = [ "Ambient Light", "Background", "SS Reflections", "SSAO" ]
[sub_resource type="GDScript" id=3]
@ -158,23 +157,23 @@ params_billboard_mode = 0
params_grow = false
params_use_alpha_scissor = false
albedo_color = Color( 1, 1, 1, 1 )
albedo_texture = ExtResource( 2 )
albedo_texture = ExtResource( 1 )
metallic = 0.0
metallic_specular = 0.0
metallic_texture_channel = 0
roughness = 1.0
roughness_texture = ExtResource( 6 )
roughness_texture = ExtResource( 5 )
roughness_texture_channel = 0
emission_enabled = false
normal_enabled = true
normal_scale = 1.0
normal_texture = ExtResource( 5 )
normal_texture = ExtResource( 4 )
rim_enabled = false
clearcoat_enabled = false
anisotropy_enabled = false
ao_enabled = true
ao_light_affect = 0.0
ao_texture = ExtResource( 3 )
ao_texture = ExtResource( 2 )
ao_on_uv2 = false
ao_texture_channel = 0
depth_enabled = true
@ -182,7 +181,7 @@ depth_scale = 0.05
depth_deep_parallax = true
depth_min_layers = 8
depth_max_layers = 32
depth_texture = ExtResource( 4 )
depth_texture = ExtResource( 3 )
subsurf_scatter_enabled = false
transmission_enabled = false
refraction_enabled = false
@ -230,7 +229,7 @@ particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = 0
albedo_color = Color( 0.390625, 0.390625, 0.390625, 1 )
albedo_texture = ExtResource( 10 )
albedo_texture = ExtResource( 9 )
metallic = 0.0
metallic_specular = 0.5
metallic_texture_channel = 0
@ -296,7 +295,7 @@ particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = 0
albedo_color = Color( 0.390625, 0.390625, 0.390625, 1 )
albedo_texture = ExtResource( 11 )
albedo_texture = ExtResource( 10 )
metallic = 0.0
metallic_specular = 0.5
metallic_texture_channel = 0
@ -307,7 +306,7 @@ emission = Color( 1, 0.886353, 0.617188, 1 )
emission_energy = 1.0
emission_operator = 0
emission_on_uv2 = false
emission_texture = ExtResource( 11 )
emission_texture = ExtResource( 10 )
normal_enabled = false
rim_enabled = false
clearcoat_enabled = false
@ -426,7 +425,7 @@ particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = 0
albedo_color = Color( 1, 1, 1, 1 )
albedo_texture = ExtResource( 10 )
albedo_texture = ExtResource( 9 )
metallic = 0.0
metallic_specular = 0.5
metallic_texture_channel = 0
@ -492,7 +491,7 @@ particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = 0
albedo_color = Color( 1, 1, 1, 1 )
albedo_texture = ExtResource( 11 )
albedo_texture = ExtResource( 10 )
metallic = 0.0
metallic_specular = 0.5
metallic_texture_channel = 0
@ -503,7 +502,7 @@ emission = Color( 1, 0.886353, 0.617188, 1 )
emission_energy = 1.0
emission_operator = 0
emission_on_uv2 = false
emission_texture = ExtResource( 11 )
emission_texture = ExtResource( 10 )
normal_enabled = false
rim_enabled = false
clearcoat_enabled = false
@ -598,7 +597,7 @@ particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = 0
albedo_color = Color( 0.0078125, 0, 1, 1 )
albedo_texture = ExtResource( 10 )
albedo_texture = ExtResource( 9 )
metallic = 0.0
metallic_specular = 0.5
metallic_texture_channel = 0
@ -664,7 +663,7 @@ particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = 0
albedo_color = Color( 0, 0.015625, 1, 1 )
albedo_texture = ExtResource( 11 )
albedo_texture = ExtResource( 10 )
metallic = 0.0
metallic_specular = 0.5
metallic_texture_channel = 0
@ -675,7 +674,7 @@ emission = Color( 1, 0.886353, 0.617188, 1 )
emission_energy = 1.0
emission_operator = 0
emission_on_uv2 = false
emission_texture = ExtResource( 11 )
emission_texture = ExtResource( 10 )
normal_enabled = false
rim_enabled = false
clearcoat_enabled = false
@ -770,7 +769,7 @@ particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = 0
albedo_color = Color( 0.125, 1, 0, 1 )
albedo_texture = ExtResource( 10 )
albedo_texture = ExtResource( 9 )
metallic = 0.0
metallic_specular = 0.5
metallic_texture_channel = 0
@ -836,7 +835,7 @@ particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = 0
albedo_color = Color( 0.078125, 1, 0, 1 )
albedo_texture = ExtResource( 11 )
albedo_texture = ExtResource( 10 )
metallic = 0.0
metallic_specular = 0.5
metallic_texture_channel = 0
@ -847,7 +846,7 @@ emission = Color( 1, 0.886353, 0.617188, 1 )
emission_energy = 1.0
emission_operator = 0
emission_on_uv2 = false
emission_texture = ExtResource( 11 )
emission_texture = ExtResource( 10 )
normal_enabled = false
rim_enabled = false
clearcoat_enabled = false
@ -880,9 +879,7 @@ size = Vector2( 0.4, 0.4 )
_sections_unfolded = [ "Transform" ]
[node name="Character" parent="." index="0" instance=ExtResource( 1 )]
[node name="World" type="Spatial" parent="." index="1"]
[node name="World" type="Spatial" parent="." index="0"]
_sections_unfolded = [ "Transform", "Visibility" ]
@ -1165,7 +1162,7 @@ linear_velocity = Vector3( 0, 0, 0 )
linear_damp = -1.0
angular_velocity = Vector3( 0, 0, 0 )
angular_damp = -1.0
script = ExtResource( 7 )
script = ExtResource( 6 )
_sections_unfolded = [ "Collision" ]
[node name="MeshInstance" type="MeshInstance" parent="World/Box2" index="0"]
@ -1192,13 +1189,14 @@ shape = SubResource( 6 )
disabled = false
_sections_unfolded = [ "Transform" ]
[node name="CubeShaderTest" parent="World" index="7" instance=ExtResource( 8 )]
[node name="CubeShaderTest" parent="World" index="7" instance=ExtResource( 7 )]
editor/display_folded = true
transform = Transform( -0.471909, 0, -0.881647, 0, 1, 0, 0.881647, 0, -0.471909, 4, 2, 3.11353 )
friction = 0.2
bounce = 0.75
[node name="fire_01" parent="World/CubeShaderTest" index="2" instance=ExtResource( 9 )]
[node name="fire_01" parent="World/CubeShaderTest" index="2" instance=ExtResource( 8 )]
transform = Transform( -1.5494, 0, 2.89468, 0, 1, 0, -2.89468, 0, -1.5494, 0, 1.1836, 0 )
visibility_aabb = AABB( -4, -4.04395, -3.96729, 8, 8, 8 )
@ -1206,7 +1204,7 @@ draw_passes = 2
draw_pass_1 = SubResource( 8 )
draw_pass_2 = SubResource( 10 )
[node name="fire_02" parent="World/CubeShaderTest" index="3" instance=ExtResource( 9 )]
[node name="fire_02" parent="World/CubeShaderTest" index="3" instance=ExtResource( 8 )]
transform = Transform( -1.5494, 0, 2.89468, 0, 1, 0, -2.89468, 0, -1.5494, -0.574282, 0.104018, -1.07291 )
visibility_aabb = AABB( -4, -4.04395, -3.96729, 8, 8, 8 )
@ -1215,7 +1213,7 @@ draw_passes = 2
draw_pass_1 = SubResource( 17 )
draw_pass_2 = SubResource( 19 )
[node name="fire_03" parent="World/CubeShaderTest" index="4" instance=ExtResource( 9 )]
[node name="fire_03" parent="World/CubeShaderTest" index="4" instance=ExtResource( 8 )]
transform = Transform( -1.5494, 0, 2.89468, 0, 1, 0, -2.89468, 0, -1.5494, 0.573787, 0.104018, 1.07198 )
visibility_aabb = AABB( -4, -4.04395, -3.96729, 8, 8, 8 )
@ -1224,7 +1222,7 @@ draw_passes = 2
draw_pass_1 = SubResource( 22 )
draw_pass_2 = SubResource( 24 )
[node name="fire_04" parent="World/CubeShaderTest" index="5" instance=ExtResource( 9 )]
[node name="fire_04" parent="World/CubeShaderTest" index="5" instance=ExtResource( 8 )]
transform = Transform( -1.5494, 0, 2.89468, 0, 1, 0, -2.89468, 0, -1.5494, 0.00931859, -1.29484, 0.0174088 )
visibility_aabb = AABB( -4, -4.04395, -3.96729, 8, 8, 8 )
@ -1233,11 +1231,11 @@ draw_passes = 2
draw_pass_1 = SubResource( 27 )
draw_pass_2 = SubResource( 29 )
[node name="jukebox" parent="World" index="8" instance=ExtResource( 12 )]
[node name="jukebox" parent="World" index="8" instance=ExtResource( 11 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -7.67816, 0.386279, 0 )
[node name="GridMaps" parent="World" index="9" instance=ExtResource( 13 )]
[node name="GridMaps" parent="World" index="9" instance=ExtResource( 12 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.66248, 0 )

View file

@ -0,0 +1,32 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://assets/kits/kit_test/kit_test.meshlib" type="MeshLibrary" id=1]
[ext_resource path="res://scenes/GUI/GUI.tscn" type="PackedScene" id=2]
[node name="test_grid_map" type="GridMap" index="0"]
theme = ExtResource( 1 )
cell_size = Vector3( 2, 3, 2 )
cell_octant_size = 8
cell_center_x = true
cell_center_y = true
cell_center_z = true
cell_scale = 1.0
collision_layer = 1
collision_mask = 1
data = {
"cells": PoolIntArray( 0, 0, 3, 1, 0, 3, 2, 0, 1441794, 65533, 0, 1048578, 65534, 0, -1610612733, 65535, 0, 3, 0, 1, 3, 1, 1, 3, 2, 1, 1441794, 65533, 1, 1048578, 65534, 1, 3, 65535, 1, 3, 0, 2, 3, 1, 2, 3, 2, 2, 1441794, 65533, 2, 537919490, 65534, 2, 3, 65535, 2, 3, 0, 3, 655362, 1, 3, 655362, 2, 3, 1441796, 65533, 3, 655364, 65534, 3, 655362, 65535, 3, 655362, 3, 65527, -1609564160, 2, 65528, 1048580, 3, 65528, 1075183618, 0, 65529, 1048580, 1, 65529, 536870913, 2, 65529, 3, 3, 65529, 1441794, 0, 65530, 537919489, 2, 65530, 655364, 3, 65530, 1441794, 0, 65531, 1048577, 3, 65531, 1441792, 0, 65532, -1609564159, 0, 65533, 1048577, 0, 65534, 1074790403, 1, 65534, 2, 2, 65534, 1073741828, 65533, 65534, 1048580, 65534, 65534, 2, 65535, 65534, 1073741826, 0, 65535, 3, 1, 65535, 3, 2, 65535, 1441794, 65533, 65535, 1048578, 65534, 65535, 3, 65535, 65535, 3 )
}
_sections_unfolded = [ "Cell" ]
__meta__ = {
"_editor_clip_": 0,
"_editor_floor_": Vector3( 0, 0, 0 )
}
[node name="start_position" type="Spatial" parent="." index="0"]
transform = Transform( -0.939693, 0, -0.34202, 0, 1, 0, 0.34202, 0, -0.939693, 5.89868, 1.99859, -13 )
[node name="GUI" parent="." index="1" instance=ExtResource( 2 )]

View file

@ -0,0 +1,196 @@
[gd_scene load_steps=12 format=2]
[ext_resource path="res://assets/kits/kit_test/kit_test_1way.obj" type="ArrayMesh" id=1]
[ext_resource path="res://assets/kits/kit_test/kit_test_spatialmaterial.tres" type="Material" id=2]
[ext_resource path="res://assets/kits/kit_test/kit_test_2way.obj" type="ArrayMesh" id=3]
[ext_resource path="res://assets/kits/kit_test/kit_test_3way.obj" type="ArrayMesh" id=4]
[ext_resource path="res://assets/kits/kit_test/kit_test_4way.obj" type="ArrayMesh" id=5]
[ext_resource path="res://assets/kits/kit_test/kit_test_corner.obj" type="ArrayMesh" id=6]
[sub_resource type="ConvexPolygonShape" id=1]
points = PoolVector3Array( 1, 0, 1, -1, 0, 1, 1, 0, -1, -1, 0, -1, 1, 3, -1, -1, 3, -1, 1, 3, 1, -1, 3, 1, 1, 3, -1, 1, 0, -1, -1, 3, -1, -1, 0, -1, -1, 3, 1, -1, 0, 1, 1, 3, 1, 1, 0, 1, 1, 3, 1, 1, 0, 1, 1, 3, -1, 1, 0, -1 )
[sub_resource type="ConvexPolygonShape" id=4]
points = PoolVector3Array( 1, 0, 1, -1, 0, 1, 1, 0, -1, -1, 0, -1, 1, 3, -1, -1, 3, -1, 1, 3, 1, -1, 3, 1, 1, 3, -1, 1, 0, -1, -1, 3, -1, -1, 0, -1, -1, 3, 1, -1, 0, 1, 1, 3, 1, 1, 0, 1 )
[sub_resource type="ConvexPolygonShape" id=7]
points = PoolVector3Array( 1, 0, 1, -1, 0, 1, 1, 0, -1, -1, 0, -1, 1, 3, -1, -1, 3, -1, 1, 3, 1, -1, 3, 1, 1, 3, -1, 1, 0, -1, -1, 3, -1, -1, 0, -1 )
[sub_resource type="ConvexPolygonShape" id=10]
points = PoolVector3Array( 1, 0, 1, -1, 0, 1, 1, 0, -1, -1, 0, -1, 1, 3, -1, -1, 3, -1, 1, 3, 1, -1, 3, 1 )
[sub_resource type="ConvexPolygonShape" id=13]
points = PoolVector3Array( 1, 0, 1, -1, 0, 1, 1, 0, -1, -1, 0, -1, 1, 3, -1, -1, 3, -1, 1, 3, 1, -1, 3, 1, 1, 3, -1, 1, 0, -1, -1, 3, -1, -1, 0, -1, 1, 3, 1, 1, 0, 1, 1, 3, -1, 1, 0, -1 )
[node name="test_grid_map_scene" type="Node"]
[node name="kit_test_1way" type="MeshInstance" parent="." index="0"]
layers = 1
material_override = null
cast_shadow = 1
extra_cull_margin = 0.0
use_in_baked_light = false
lod_min_distance = 0.0
lod_min_hysteresis = 0.0
lod_max_distance = 0.0
lod_max_hysteresis = 0.0
mesh = ExtResource( 1 )
skeleton = NodePath("..")
material/0 = ExtResource( 2 )
_sections_unfolded = [ "material" ]
[node name="static_body" type="StaticBody" parent="kit_test_1way" index="0"]
input_ray_pickable = true
input_capture_on_drag = false
collision_layer = 1
collision_mask = 1
friction = 1.0
bounce = 0.0
constant_linear_velocity = Vector3( 0, 0, 0 )
constant_angular_velocity = Vector3( 0, 0, 0 )
[node name="collision_shape" type="CollisionShape" parent="kit_test_1way/static_body" index="0"]
shape = SubResource( 1 )
disabled = false
[node name="kit_test_2way" type="MeshInstance" parent="." index="1"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, 0 )
layers = 1
material_override = null
cast_shadow = 1
extra_cull_margin = 0.0
use_in_baked_light = false
lod_min_distance = 0.0
lod_min_hysteresis = 0.0
lod_max_distance = 0.0
lod_max_hysteresis = 0.0
mesh = ExtResource( 3 )
skeleton = NodePath("..")
material/0 = ExtResource( 2 )
_sections_unfolded = [ "material" ]
[node name="static_body" type="StaticBody" parent="kit_test_2way" index="0"]
input_ray_pickable = true
input_capture_on_drag = false
collision_layer = 1
collision_mask = 1
friction = 1.0
bounce = 0.0
constant_linear_velocity = Vector3( 0, 0, 0 )
constant_angular_velocity = Vector3( 0, 0, 0 )
[node name="collision_shape" type="CollisionShape" parent="kit_test_2way/static_body" index="0"]
shape = SubResource( 4 )
disabled = false
[node name="kit_test_3way" type="MeshInstance" parent="." index="2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -6, 0, 0 )
layers = 1
material_override = null
cast_shadow = 1
extra_cull_margin = 0.0
use_in_baked_light = false
lod_min_distance = 0.0
lod_min_hysteresis = 0.0
lod_max_distance = 0.0
lod_max_hysteresis = 0.0
mesh = ExtResource( 4 )
skeleton = NodePath("..")
material/0 = ExtResource( 2 )
_sections_unfolded = [ "material" ]
[node name="static_body" type="StaticBody" parent="kit_test_3way" index="0"]
input_ray_pickable = true
input_capture_on_drag = false
collision_layer = 1
collision_mask = 1
friction = 1.0
bounce = 0.0
constant_linear_velocity = Vector3( 0, 0, 0 )
constant_angular_velocity = Vector3( 0, 0, 0 )
[node name="collision_shape" type="CollisionShape" parent="kit_test_3way/static_body" index="0"]
shape = SubResource( 7 )
disabled = false
[node name="kit_test_4way" type="MeshInstance" parent="." index="3"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -9, 0, 0 )
layers = 1
material_override = null
cast_shadow = 1
extra_cull_margin = 0.0
use_in_baked_light = false
lod_min_distance = 0.0
lod_min_hysteresis = 0.0
lod_max_distance = 0.0
lod_max_hysteresis = 0.0
mesh = ExtResource( 5 )
skeleton = NodePath("..")
material/0 = ExtResource( 2 )
_sections_unfolded = [ "material" ]
[node name="static_body" type="StaticBody" parent="kit_test_4way" index="0"]
input_ray_pickable = true
input_capture_on_drag = false
collision_layer = 1
collision_mask = 1
friction = 1.0
bounce = 0.0
constant_linear_velocity = Vector3( 0, 0, 0 )
constant_angular_velocity = Vector3( 0, 0, 0 )
[node name="collision_shape" type="CollisionShape" parent="kit_test_4way/static_body" index="0"]
shape = SubResource( 10 )
disabled = false
[node name="kit_test_corner" type="MeshInstance" parent="." index="4"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -9, 0, 0 )
layers = 1
material_override = null
cast_shadow = 1
extra_cull_margin = 0.0
use_in_baked_light = false
lod_min_distance = 0.0
lod_min_hysteresis = 0.0
lod_max_distance = 0.0
lod_max_hysteresis = 0.0
mesh = ExtResource( 6 )
skeleton = NodePath("..")
material/0 = ExtResource( 2 )
_sections_unfolded = [ "material" ]
[node name="static_body" type="StaticBody" parent="kit_test_corner" index="0"]
input_ray_pickable = true
input_capture_on_drag = false
collision_layer = 1
collision_mask = 1
friction = 1.0
bounce = 0.0
constant_linear_velocity = Vector3( 0, 0, 0 )
constant_angular_velocity = Vector3( 0, 0, 0 )
[node name="collision_shape" type="CollisionShape" parent="kit_test_corner/static_body" index="0"]
shape = SubResource( 13 )
disabled = false

View file

@ -0,0 +1,44 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/kits/kit_test/kit_test_1way.obj" type="ArrayMesh" id=1]
[ext_resource path="res://assets/kits/kit_test/kit_test_spatialmaterial.tres" type="Material" id=2]
[sub_resource type="ConcavePolygonShape" id=1]
data = PoolVector3Array( 1, 0, 1, -1, 0, 1, 1, 0, -1, 1, 0, -1, -1, 0, 1, -1, 0, -1, 1, 3, -1, -1, 3, -1, 1, 3, 1, 1, 3, 1, -1, 3, -1, -1, 3, 1, 1, 3, -1, 1, 0, -1, -1, 3, -1, -1, 3, -1, 1, 0, -1, -1, 0, -1, -1, 3, 1, -1, 0, 1, 1, 3, 1, 1, 3, 1, -1, 0, 1, 1, 0, 1, 1, 3, 1, 1, 0, 1, 1, 3, -1, 1, 3, -1, 1, 0, 1, 1, 0, -1 )
[node name="kit_test_1way" type="Spatial" index="0"]
[node name="mesh_instance" type="MeshInstance" parent="." index="0"]
layers = 1
material_override = null
cast_shadow = 1
extra_cull_margin = 0.0
use_in_baked_light = false
lod_min_distance = 0.0
lod_min_hysteresis = 0.0
lod_max_distance = 0.0
lod_max_hysteresis = 0.0
mesh = ExtResource( 1 )
skeleton = NodePath("..")
material/0 = ExtResource( 2 )
_sections_unfolded = [ "material" ]
[node name="static_body" type="StaticBody" parent="mesh_instance" index="0"]
input_ray_pickable = true
input_capture_on_drag = false
collision_layer = 1
collision_mask = 1
friction = 1.0
bounce = 0.0
constant_linear_velocity = Vector3( 0, 0, 0 )
constant_angular_velocity = Vector3( 0, 0, 0 )
[node name="collision_shape" type="CollisionShape" parent="mesh_instance/static_body" index="0"]
shape = SubResource( 1 )
disabled = false

View file

@ -0,0 +1,44 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/kits/kit_test/kit_test_2way.obj" type="ArrayMesh" id=1]
[ext_resource path="res://assets/kits/kit_test/kit_test_spatialmaterial.tres" type="Material" id=2]
[sub_resource type="ConcavePolygonShape" id=1]
data = PoolVector3Array( 1, 0, 1, -1, 0, 1, 1, 0, -1, 1, 0, -1, -1, 0, 1, -1, 0, -1, 1, 3, -1, -1, 3, -1, 1, 3, 1, 1, 3, 1, -1, 3, -1, -1, 3, 1, 1, 3, -1, 1, 0, -1, -1, 3, -1, -1, 3, -1, 1, 0, -1, -1, 0, -1, -1, 3, 1, -1, 0, 1, 1, 3, 1, 1, 3, 1, -1, 0, 1, 1, 0, 1 )
[node name="kit_test_2way" type="Spatial" index="0"]
[node name="mesh_instance" type="MeshInstance" parent="." index="0"]
layers = 1
material_override = null
cast_shadow = 1
extra_cull_margin = 0.0
use_in_baked_light = false
lod_min_distance = 0.0
lod_min_hysteresis = 0.0
lod_max_distance = 0.0
lod_max_hysteresis = 0.0
mesh = ExtResource( 1 )
skeleton = NodePath("..")
material/0 = ExtResource( 2 )
_sections_unfolded = [ "material" ]
[node name="static_body" type="StaticBody" parent="mesh_instance" index="0"]
input_ray_pickable = true
input_capture_on_drag = false
collision_layer = 1
collision_mask = 1
friction = 1.0
bounce = 0.0
constant_linear_velocity = Vector3( 0, 0, 0 )
constant_angular_velocity = Vector3( 0, 0, 0 )
[node name="collision_shape" type="CollisionShape" parent="mesh_instance/static_body" index="0"]
shape = SubResource( 1 )
disabled = false

View file

@ -0,0 +1,44 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/kits/kit_test/kit_test_3way.obj" type="ArrayMesh" id=1]
[ext_resource path="res://assets/kits/kit_test/kit_test_spatialmaterial.tres" type="Material" id=2]
[sub_resource type="ConcavePolygonShape" id=1]
data = PoolVector3Array( 1, 0, 1, -1, 0, 1, 1, 0, -1, 1, 0, -1, -1, 0, 1, -1, 0, -1, 1, 3, -1, -1, 3, -1, 1, 3, 1, 1, 3, 1, -1, 3, -1, -1, 3, 1, 1, 3, -1, 1, 0, -1, -1, 3, -1, -1, 3, -1, 1, 0, -1, -1, 0, -1 )
[node name="kit_test_3way" type="Spatial" index="0"]
[node name="mesh_instance" type="MeshInstance" parent="." index="0"]
layers = 1
material_override = null
cast_shadow = 1
extra_cull_margin = 0.0
use_in_baked_light = false
lod_min_distance = 0.0
lod_min_hysteresis = 0.0
lod_max_distance = 0.0
lod_max_hysteresis = 0.0
mesh = ExtResource( 1 )
skeleton = NodePath("..")
material/0 = ExtResource( 2 )
_sections_unfolded = [ "material" ]
[node name="static_body" type="StaticBody" parent="mesh_instance" index="0"]
input_ray_pickable = true
input_capture_on_drag = false
collision_layer = 1
collision_mask = 1
friction = 1.0
bounce = 0.0
constant_linear_velocity = Vector3( 0, 0, 0 )
constant_angular_velocity = Vector3( 0, 0, 0 )
[node name="collision_shape" type="CollisionShape" parent="mesh_instance/static_body" index="0"]
shape = SubResource( 1 )
disabled = false

View file

@ -0,0 +1,44 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/kits/kit_test/kit_test_4way.obj" type="ArrayMesh" id=1]
[ext_resource path="res://assets/kits/kit_test/kit_test_spatialmaterial.tres" type="Material" id=2]
[sub_resource type="ConcavePolygonShape" id=1]
data = PoolVector3Array( 1, 0, 1, -1, 0, 1, 1, 0, -1, 1, 0, -1, -1, 0, 1, -1, 0, -1, 1, 3, -1, -1, 3, -1, 1, 3, 1, 1, 3, 1, -1, 3, -1, -1, 3, 1 )
[node name="kit_test_4way" type="Spatial" index="0"]
[node name="mesh_instance" type="MeshInstance" parent="." index="0"]
layers = 1
material_override = null
cast_shadow = 1
extra_cull_margin = 0.0
use_in_baked_light = false
lod_min_distance = 0.0
lod_min_hysteresis = 0.0
lod_max_distance = 0.0
lod_max_hysteresis = 0.0
mesh = ExtResource( 1 )
skeleton = NodePath("..")
material/0 = ExtResource( 2 )
_sections_unfolded = [ "material" ]
[node name="static_body" type="StaticBody" parent="mesh_instance" index="0"]
input_ray_pickable = true
input_capture_on_drag = false
collision_layer = 1
collision_mask = 1
friction = 1.0
bounce = 0.0
constant_linear_velocity = Vector3( 0, 0, 0 )
constant_angular_velocity = Vector3( 0, 0, 0 )
[node name="collision_shape" type="CollisionShape" parent="mesh_instance/static_body" index="0"]
shape = SubResource( 1 )
disabled = false

View file

@ -0,0 +1,44 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/kits/kit_test/kit_test_corner.obj" type="ArrayMesh" id=1]
[ext_resource path="res://assets/kits/kit_test/kit_test_spatialmaterial.tres" type="Material" id=2]
[sub_resource type="ConcavePolygonShape" id=1]
data = PoolVector3Array( 1, 0, 1, -1, 0, 1, 1, 0, -1, 1, 0, -1, -1, 0, 1, -1, 0, -1, 1, 3, -1, -1, 3, -1, 1, 3, 1, 1, 3, 1, -1, 3, -1, -1, 3, 1, 1, 3, -1, 1, 0, -1, -1, 3, -1, -1, 3, -1, 1, 0, -1, -1, 0, -1, 1, 3, 1, 1, 0, 1, 1, 3, -1, 1, 3, -1, 1, 0, 1, 1, 0, -1 )
[node name="kit_test_corner" type="Spatial" index="0"]
[node name="mesh_instance" type="MeshInstance" parent="." index="0"]
layers = 1
material_override = null
cast_shadow = 1
extra_cull_margin = 0.0
use_in_baked_light = false
lod_min_distance = 0.0
lod_min_hysteresis = 0.0
lod_max_distance = 0.0
lod_max_hysteresis = 0.0
mesh = ExtResource( 1 )
skeleton = NodePath("..")
material/0 = ExtResource( 2 )
_sections_unfolded = [ "material" ]
[node name="static_body" type="StaticBody" parent="mesh_instance" index="0"]
input_ray_pickable = true
input_capture_on_drag = false
collision_layer = 1
collision_mask = 1
friction = 1.0
bounce = 0.0
constant_linear_velocity = Vector3( 0, 0, 0 )
constant_angular_velocity = Vector3( 0, 0, 0 )
[node name="collision_shape" type="CollisionShape" parent="mesh_instance/static_body" index="0"]
shape = SubResource( 1 )
disabled = false

34
test_scene/test_scene.gd Normal file
View file

@ -0,0 +1,34 @@
extends Node
signal logout_button_pressed
const WINDOW_TITLE_INPUT = "GUI/Settings/Menus/TabContainer/Test/ScrollContainer/VBoxContainer/TitleBox/Title"
func _ready():
change_title()
get_tree().get_root().connect("size_changed", self, "on_window_size_changed")
character.get_node( "MeshInstance" ).get_surface_material(0).set_shader_param( "albedo", global.character_color )
self.connect( "logout_button_pressed", global, "_on_logout_button_pressed" )
func _process(delta):
pass
func on_window_size_changed():
change_title()
func change_title():
var title_node = get_node( WINDOW_TITLE_INPUT )
var title = "Khanat"
if title_node and not title_node.text.strip_edges() == "":
title = title_node.text.strip_edges()
title += " (" + String(OS.get_window_size().x) + "x" + String(OS.get_window_size().y) + ")"
OS.set_window_title( title )
func _on_GUI_logout_button_pressed():
emit_signal( "logout_button_pressed" )
# global.goto_scene_loading( "res://login_scene/login_scene.tscn" )

157
test_scene/test_scene.tscn Normal file
View file

@ -0,0 +1,157 @@
[gd_scene load_steps=8 format=2]
[ext_resource path="res://test_scene/test_scene.gd" type="Script" id=1]
[ext_resource path="res://test_scene/kit_test/kit_test_4way.tscn" type="PackedScene" id=2]
[ext_resource path="res://test_scene/kit_test/kit_test_3way.tscn" type="PackedScene" id=3]
[ext_resource path="res://test_scene/kit_test/kit_test_corner.tscn" type="PackedScene" id=4]
[ext_resource path="res://test_scene/kit_test/kit_test_2way.tscn" type="PackedScene" id=5]
[ext_resource path="res://test_scene/kit_test/kit_test_1way.tscn" type="PackedScene" id=6]
[ext_resource path="res://scenes/GUI/GUI.tscn" type="PackedScene" id=7]
[node name="test_scene" type="Node"]
script = ExtResource( 1 )
[node name="terrain" type="Spatial" parent="." index="0"]
editor/display_folded = true
[node name="kit_test_4way" parent="terrain" index="0" instance=ExtResource( 2 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, -1, -1 )
[node name="kit_test_4way3" parent="terrain" index="1" instance=ExtResource( 2 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, -1, -3 )
[node name="kit_test_4way4" parent="terrain" index="2" instance=ExtResource( 2 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3, -1, -3 )
[node name="kit_test_4way5" parent="terrain" index="3" instance=ExtResource( 2 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3, -1, -1 )
[node name="kit_test_4way6" parent="terrain" index="4" instance=ExtResource( 2 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3, -1, 1 )
[node name="kit_test_4way2" parent="terrain" index="5" instance=ExtResource( 2 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, -1, 1 )
[node name="kit_test_3way" parent="terrain" index="6" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, -1, -5 )
[node name="kit_test_3way2" parent="terrain" index="7" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3, -1, -5 )
[node name="kit_test_3way3" parent="terrain" index="8" instance=ExtResource( 3 )]
transform = Transform( -4.37114e-008, 0, -1, 0, 1, 0, 1, 0, -4.37114e-008, 5, -1, -3 )
[node name="kit_test_3way5" parent="terrain" index="9" instance=ExtResource( 3 )]
transform = Transform( -4.37114e-008, 0, -1, 0, 1, 0, 1, 0, -4.37114e-008, 5, -1, 1 )
[node name="kit_test_3way6" parent="terrain" index="10" instance=ExtResource( 3 )]
transform = Transform( -1, 0, 8.74228e-008, 0, 1, 0, -8.74228e-008, 0, -1, 3, -1, 3 )
[node name="kit_test_3way7" parent="terrain" index="11" instance=ExtResource( 3 )]
transform = Transform( -1, 0, 8.74228e-008, 0, 1, 0, -8.74228e-008, 0, -1, 1, -1, 3 )
[node name="kit_test_3way8" parent="terrain" index="12" instance=ExtResource( 3 )]
transform = Transform( 1.31134e-007, 0, 1, 0, 1, 0, -1, 0, 1.31134e-007, -1, -1, 1 )
[node name="kit_test_3way9" parent="terrain" index="13" instance=ExtResource( 3 )]
transform = Transform( 1.31134e-007, 0, 1, 0, 1, 0, -1, 0, 1.31134e-007, -1, -1, -1 )
[node name="kit_test_3way10" parent="terrain" index="14" instance=ExtResource( 3 )]
transform = Transform( 1.31134e-007, 0, 1, 0, 1, 0, -1, 0, 1.31134e-007, -1, -1, -3 )
[node name="kit_test_corner" parent="terrain" index="15" instance=ExtResource( 4 )]
transform = Transform( -1, 0, -8.74228e-008, 0, 1, 0, 8.74228e-008, 0, -1, -1, -1, 3 )
[node name="kit_test_corner2" parent="terrain" index="16" instance=ExtResource( 4 )]
transform = Transform( -4.37114e-008, 0, 1, 0, 1, 0, -1, 0, -4.37114e-008, -1, -1, -5 )
[node name="kit_test_corner3" parent="terrain" index="17" instance=ExtResource( 4 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 5, -1, -5 )
[node name="kit_test_corner4" parent="terrain" index="18" instance=ExtResource( 4 )]
transform = Transform( -4.37114e-008, 0, -1, 0, 1, 0, 1, 0, -4.37114e-008, 5, -1, 3 )
[node name="kit_test_2way" parent="terrain" index="19" instance=ExtResource( 5 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 7, -1, -1 )
[node name="kit_test_2way2" parent="terrain" index="20" instance=ExtResource( 5 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 9, -1, -1 )
[node name="kit_test_2way3" parent="terrain" index="21" instance=ExtResource( 5 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 11, -1, -1 )
[node name="kit_test_4way7" parent="terrain" index="22" instance=ExtResource( 2 )]
transform = Transform( -4.37114e-008, 0, -1, 0, 1, 0, 1, 0, -4.37114e-008, 5, -1, -1 )
[node name="kit_test_corner5" parent="terrain" index="23" instance=ExtResource( 4 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 13, -1, -1 )
[node name="kit_test_2way4" parent="terrain" index="24" instance=ExtResource( 5 )]
transform = Transform( -4.37114e-008, 0, -1, 0, 1, 0, 1, 0, -4.37114e-008, 13, -1, 1 )
[node name="kit_test_2way5" parent="terrain" index="25" instance=ExtResource( 5 )]
transform = Transform( -4.37114e-008, 0, -1, 0, 1, 0, 1, 0, -4.37114e-008, 13, -1, 3 )
[node name="kit_test_2way6" parent="terrain" index="26" instance=ExtResource( 5 )]
transform = Transform( -4.37114e-008, 0, -1, 0, 1, 0, 1, 0, -4.37114e-008, 13, -1, 5 )
[node name="kit_test_corner6" parent="terrain" index="27" instance=ExtResource( 4 )]
transform = Transform( -4.37114e-008, 0, -1, 0, 1, 0, 1, 0, -4.37114e-008, 13, -1, 6 )
[node name="kit_test_4way8" parent="terrain" index="28" instance=ExtResource( 2 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 11, -1, 6 )
[node name="kit_test_1way" parent="terrain" index="29" instance=ExtResource( 6 )]
transform = Transform( -4.37114e-008, 0, 1, 0, 1, 0, -1, 0, -4.37114e-008, 11, -1, 4 )
[node name="kit_test_1way2" parent="terrain" index="30" instance=ExtResource( 6 )]
transform = Transform( -1, 0, -8.74228e-008, 0, 1, 0, 8.74228e-008, 0, -1, 9, -1, 6 )
[node name="kit_test_1way3" parent="terrain" index="31" instance=ExtResource( 6 )]
transform = Transform( 1.31134e-007, 0, -1, 0, 1, 0, 1, 0, 1.31134e-007, 11, -1, 8 )
[node name="start_position" type="Spatial" parent="." index="1"]
transform = Transform( -4.37114e-008, 0, -1, 0, 1, 0, 1, 0, -4.37114e-008, 0, -0.410381, -1 )
_sections_unfolded = [ "Transform" ]
[node name="GUI" parent="." index="2" instance=ExtResource( 7 )]
pause_mode = 2
_sections_unfolded = [ "Margin", "Mouse", "Pause", "Size Flags", "Theme", "custom_constants" ]