Basics of mall level

This commit is contained in:
Rob Kelly 2025-01-01 15:42:52 -07:00
parent 9d730a6730
commit a05e3e2976
9 changed files with 956 additions and 4 deletions

BIN
asset_dev/levels/mall.blend (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,728 @@
{
"asset":{
"generator":"Khronos glTF Blender I/O v4.2.60",
"version":"2.0"
},
"scene":0,
"scenes":[
{
"name":"Scene",
"nodes":[
0,
1,
2,
3
]
}
],
"nodes":[
{
"mesh":0,
"name":"Geometry"
},
{
"name":"Origin",
"rotation":[
0,
1,
0,
0
]
},
{
"mesh":1,
"name":"Fountain",
"translation":[
0,
1,
0
]
},
{
"mesh":2,
"name":"FountainWater",
"translation":[
0,
0.5,
0
]
}
],
"materials":[
{
"doubleSided":true,
"name":"MallFloor",
"pbrMetallicRoughness":{
"baseColorFactor":[
0.37290316820144653,
0.8002911806106567,
0.1968839168548584,
1
],
"metallicFactor":0,
"roughnessFactor":0.5
}
},
{
"doubleSided":true,
"name":"MallStorefrontWall",
"pbrMetallicRoughness":{
"baseColorFactor":[
0.7833530902862549,
0.743090033531189,
0.3785495460033417,
1
],
"metallicFactor":0,
"roughnessFactor":0.5
}
},
{
"doubleSided":true,
"name":"MallOtherWall",
"pbrMetallicRoughness":{
"baseColorFactor":[
0.5049755573272705,
0.4796982407569885,
0.4796982407569885,
1
],
"metallicFactor":0,
"roughnessFactor":0.5
}
},
{
"doubleSided":true,
"name":"MallCeiling",
"pbrMetallicRoughness":{
"baseColorFactor":[
1,
0.2704524099826813,
0.2704524099826813,
1
],
"metallicFactor":0,
"roughnessFactor":0.5
}
},
{
"doubleSided":true,
"name":"MallDome",
"pbrMetallicRoughness":{
"baseColorFactor":[
0.015895012766122818,
0.800614058971405,
0.7241971492767334,
1
],
"metallicFactor":0,
"roughnessFactor":0.5
}
},
{
"doubleSided":true,
"name":"MallCatwalk",
"pbrMetallicRoughness":{
"baseColorFactor":[
0.7324724793434143,
0.17093542218208313,
0.8004578351974487,
1
],
"metallicFactor":0,
"roughnessFactor":0.5
}
},
{
"doubleSided":true,
"name":"Fountain",
"pbrMetallicRoughness":{
"baseColorFactor":[
0.800000011920929,
0.800000011920929,
0.800000011920929,
1
],
"metallicFactor":0,
"roughnessFactor":0.5
}
},
{
"doubleSided":true,
"name":"Water",
"pbrMetallicRoughness":{
"baseColorFactor":[
0,
0.00015084154438227415,
0.8002434968948364,
1
],
"metallicFactor":0,
"roughnessFactor":0.5
}
}
],
"meshes":[
{
"name":"Geometry.Mesh",
"primitives":[
{
"attributes":{
"POSITION":0,
"NORMAL":1,
"TEXCOORD_0":2
},
"indices":3,
"material":0
},
{
"attributes":{
"POSITION":4,
"NORMAL":5,
"TEXCOORD_0":6
},
"indices":7,
"material":1
},
{
"attributes":{
"POSITION":8,
"NORMAL":9,
"TEXCOORD_0":10
},
"indices":11,
"material":2
},
{
"attributes":{
"POSITION":12,
"NORMAL":13,
"TEXCOORD_0":14
},
"indices":15,
"material":3
},
{
"attributes":{
"POSITION":16,
"NORMAL":17,
"TEXCOORD_0":18
},
"indices":19,
"material":4
},
{
"attributes":{
"POSITION":20,
"NORMAL":21,
"TEXCOORD_0":22
},
"indices":23,
"material":5
}
]
},
{
"name":"Fountain.Mesh",
"primitives":[
{
"attributes":{
"POSITION":24,
"NORMAL":25,
"TEXCOORD_0":26
},
"indices":27,
"material":6
}
]
},
{
"name":"FountainWater.Mesh",
"primitives":[
{
"attributes":{
"POSITION":28,
"NORMAL":29,
"TEXCOORD_0":30
},
"indices":31,
"material":7
}
]
}
],
"accessors":[
{
"bufferView":0,
"componentType":5126,
"count":92,
"max":[
65,
22,
130
],
"min":[
-65,
0,
-130
],
"type":"VEC3"
},
{
"bufferView":1,
"componentType":5126,
"count":92,
"type":"VEC3"
},
{
"bufferView":2,
"componentType":5126,
"count":92,
"type":"VEC2"
},
{
"bufferView":3,
"componentType":5123,
"count":204,
"type":"SCALAR"
},
{
"bufferView":4,
"componentType":5126,
"count":238,
"max":[
65,
32.025001525878906,
123.66582489013672
],
"min":[
-65,
0,
-123.66582489013672
],
"type":"VEC3"
},
{
"bufferView":5,
"componentType":5126,
"count":238,
"type":"VEC3"
},
{
"bufferView":6,
"componentType":5126,
"count":238,
"type":"VEC2"
},
{
"bufferView":7,
"componentType":5123,
"count":396,
"type":"SCALAR"
},
{
"bufferView":8,
"componentType":5126,
"count":126,
"max":[
65,
42,
130
],
"min":[
-65,
0,
-130
],
"type":"VEC3"
},
{
"bufferView":9,
"componentType":5126,
"count":126,
"type":"VEC3"
},
{
"bufferView":10,
"componentType":5126,
"count":126,
"type":"VEC2"
},
{
"bufferView":11,
"componentType":5123,
"count":234,
"type":"SCALAR"
},
{
"bufferView":12,
"componentType":5126,
"count":108,
"max":[
65,
42,
130
],
"min":[
-65,
9.75,
-130
],
"type":"VEC3"
},
{
"bufferView":13,
"componentType":5126,
"count":108,
"type":"VEC3"
},
{
"bufferView":14,
"componentType":5126,
"count":108,
"type":"VEC2"
},
{
"bufferView":15,
"componentType":5123,
"count":228,
"type":"SCALAR"
},
{
"bufferView":16,
"componentType":5126,
"count":142,
"max":[
38,
80,
37.999996185302734
],
"min":[
-38,
42,
-37.999996185302734
],
"type":"VEC3"
},
{
"bufferView":17,
"componentType":5126,
"count":142,
"type":"VEC3"
},
{
"bufferView":18,
"componentType":5126,
"count":142,
"type":"VEC2"
},
{
"bufferView":19,
"componentType":5123,
"count":144,
"type":"SCALAR"
},
{
"bufferView":20,
"componentType":5126,
"count":120,
"max":[
40,
22,
40.5
],
"min":[
-40,
21,
-40.5
],
"type":"VEC3"
},
{
"bufferView":21,
"componentType":5126,
"count":120,
"type":"VEC3"
},
{
"bufferView":22,
"componentType":5126,
"count":120,
"type":"VEC2"
},
{
"bufferView":23,
"componentType":5123,
"count":270,
"type":"SCALAR"
},
{
"bufferView":24,
"componentType":5126,
"count":1344,
"max":[
20.556293487548828,
2.5298473834991455,
20.556293487548828
],
"min":[
-20.556293487548828,
-1,
-20.556293487548828
],
"type":"VEC3"
},
{
"bufferView":25,
"componentType":5126,
"count":1344,
"type":"VEC3"
},
{
"bufferView":26,
"componentType":5126,
"count":1344,
"type":"VEC2"
},
{
"bufferView":27,
"componentType":5123,
"count":2100,
"type":"SCALAR"
},
{
"bufferView":28,
"componentType":5126,
"count":192,
"max":[
19.063644409179688,
1.5,
19.22129249572754
],
"min":[
-19,
-5.5,
-19
],
"type":"VEC3"
},
{
"bufferView":29,
"componentType":5126,
"count":192,
"type":"VEC3"
},
{
"bufferView":30,
"componentType":5126,
"count":192,
"type":"VEC2"
},
{
"bufferView":31,
"componentType":5123,
"count":360,
"type":"SCALAR"
}
],
"bufferViews":[
{
"buffer":0,
"byteLength":1104,
"byteOffset":0,
"target":34962
},
{
"buffer":0,
"byteLength":1104,
"byteOffset":1104,
"target":34962
},
{
"buffer":0,
"byteLength":736,
"byteOffset":2208,
"target":34962
},
{
"buffer":0,
"byteLength":408,
"byteOffset":2944,
"target":34963
},
{
"buffer":0,
"byteLength":2856,
"byteOffset":3352,
"target":34962
},
{
"buffer":0,
"byteLength":2856,
"byteOffset":6208,
"target":34962
},
{
"buffer":0,
"byteLength":1904,
"byteOffset":9064,
"target":34962
},
{
"buffer":0,
"byteLength":792,
"byteOffset":10968,
"target":34963
},
{
"buffer":0,
"byteLength":1512,
"byteOffset":11760,
"target":34962
},
{
"buffer":0,
"byteLength":1512,
"byteOffset":13272,
"target":34962
},
{
"buffer":0,
"byteLength":1008,
"byteOffset":14784,
"target":34962
},
{
"buffer":0,
"byteLength":468,
"byteOffset":15792,
"target":34963
},
{
"buffer":0,
"byteLength":1296,
"byteOffset":16260,
"target":34962
},
{
"buffer":0,
"byteLength":1296,
"byteOffset":17556,
"target":34962
},
{
"buffer":0,
"byteLength":864,
"byteOffset":18852,
"target":34962
},
{
"buffer":0,
"byteLength":456,
"byteOffset":19716,
"target":34963
},
{
"buffer":0,
"byteLength":1704,
"byteOffset":20172,
"target":34962
},
{
"buffer":0,
"byteLength":1704,
"byteOffset":21876,
"target":34962
},
{
"buffer":0,
"byteLength":1136,
"byteOffset":23580,
"target":34962
},
{
"buffer":0,
"byteLength":288,
"byteOffset":24716,
"target":34963
},
{
"buffer":0,
"byteLength":1440,
"byteOffset":25004,
"target":34962
},
{
"buffer":0,
"byteLength":1440,
"byteOffset":26444,
"target":34962
},
{
"buffer":0,
"byteLength":960,
"byteOffset":27884,
"target":34962
},
{
"buffer":0,
"byteLength":540,
"byteOffset":28844,
"target":34963
},
{
"buffer":0,
"byteLength":16128,
"byteOffset":29384,
"target":34962
},
{
"buffer":0,
"byteLength":16128,
"byteOffset":45512,
"target":34962
},
{
"buffer":0,
"byteLength":10752,
"byteOffset":61640,
"target":34962
},
{
"buffer":0,
"byteLength":4200,
"byteOffset":72392,
"target":34963
},
{
"buffer":0,
"byteLength":2304,
"byteOffset":76592,
"target":34962
},
{
"buffer":0,
"byteLength":2304,
"byteOffset":78896,
"target":34962
},
{
"buffer":0,
"byteLength":1536,
"byteOffset":81200,
"target":34962
},
{
"buffer":0,
"byteLength":720,
"byteOffset":82736,
"target":34963
}
],
"buffers":[
{
"byteLength":83456,
"uri":"mall.bin"
}
]
}

View File

@ -0,0 +1,36 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://1x7alivn27ef"
path="res://.godot/imported/mall.gltf-de9e241c02ee8b7f4ac1317b5b5fa9bb.scn"
[deps]
source_file="res://levels/mall/geometry/mall.gltf"
dest_files=["res://.godot/imported/mall.gltf-de9e241c02ee8b7f4ac1317b5b5fa9bb.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/apply_root_scale=true
nodes/root_scale=1.0
nodes/import_as_skeleton_bones=false
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
animation/import_rest_as_RESET=false
import_script/path=""
_subresources={}
gltf/naming_version=1
gltf/embedded_image_handling=1

9
levels/mall/mall.tres Normal file
View File

@ -0,0 +1,9 @@
[gd_resource type="Resource" script_class="Level" load_steps=3 format=3 uid="uid://3odongr8qm8e"]
[ext_resource type="PackedScene" uid="uid://ciqd8r8yt00y0" path="res://levels/mall/mall.tscn" id="1_2cp8o"]
[ext_resource type="Script" path="res://src/world/level/level.gd" id="2_wmp72"]
[resource]
script = ExtResource("2_wmp72")
scene = ExtResource("1_2cp8o")
level_name = "Forbidden Mall"

175
levels/mall/mall.tscn Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,10 +1,11 @@
[gd_scene load_steps=5 format=3 uid="uid://cdtdvka0bssgy"]
[gd_scene load_steps=6 format=3 uid="uid://cdtdvka0bssgy"]
[ext_resource type="Script" path="res://src/world/level/level_catalog.gd" id="1_wjjeu"]
[ext_resource type="Resource" uid="uid://chewry1b1a28j" path="res://levels/debug_level/debug_island.tres" id="3_3eqbc"]
[ext_resource type="Script" path="res://src/world/level/level.gd" id="3_8lfqu"]
[ext_resource type="Resource" uid="uid://cfsy1nlfo4inx" path="res://levels/oneill/oneill.tres" id="4_8547s"]
[ext_resource type="Resource" uid="uid://3odongr8qm8e" path="res://levels/mall/mall.tres" id="5_htd21"]
[node name="LevelCatalog" type="Node"]
script = ExtResource("1_wjjeu")
levels = Array[ExtResource("3_8lfqu")]([ExtResource("3_3eqbc"), ExtResource("4_8547s")])
levels = Array[ExtResource("3_8lfqu")]([ExtResource("3_3eqbc"), ExtResource("4_8547s"), ExtResource("5_htd21")])

View File

@ -2,8 +2,8 @@
[ext_resource type="Script" path="res://src/world/world.gd" id="1_ybjyx"]
[ext_resource type="Script" path="res://src/player/world_player.gd" id="2_e743i"]
[ext_resource type="PackedScene" uid="uid://bm2o3mex10v11" path="res://levels/debug_level/debug_level.tscn" id="2_hn84b"]
[ext_resource type="Script" path="res://src/ui/world_ui.gd" id="2_imewa"]
[ext_resource type="PackedScene" uid="uid://ciqd8r8yt00y0" path="res://levels/mall/mall.tscn" id="2_u4xvm"]
[ext_resource type="Resource" uid="uid://crock3revdn73" path="res://src/player/debug_player.tres" id="3_pyw81"]
[ext_resource type="Resource" uid="uid://c1pnqsddvey3m" path="res://src/equipment/clubs/drivers/debug_driver.tres" id="5_28hal"]
[ext_resource type="Script" path="res://src/world/play_manager/round_robin_manager.gd" id="5_h6mje"]
@ -167,7 +167,7 @@ _data = {
[node name="World" type="Node" groups=["WorldGroup"]]
script = ExtResource("1_ybjyx")
initial_level = ExtResource("2_hn84b")
initial_level = ExtResource("2_u4xvm")
manager = SubResource("Resource_rdjhi")
[node name="Level" type="Node3D" parent="."]