Skip to content

Commit c5c5fed

Browse files
committed
Update 3D platformer
1 parent f34e61e commit c5c5fed

File tree

6 files changed

+174
-120
lines changed

6 files changed

+174
-120
lines changed

3d/platformer/default_env.tres

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[gd_resource type="Environment" load_steps=3 format=2]
2+
3+
[ext_resource path="res://stage/panorama.png" type="Texture" id=1]
4+
5+
[sub_resource type="PanoramaSky" id=1]
6+
radiance_size = 1
7+
panorama = ExtResource( 1 )
8+
9+
[resource]
10+
background_mode = 2
11+
background_sky = SubResource( 1 )
12+
tonemap_mode = 2

3d/platformer/project.godot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,4 @@ multithread/thread_rid_pool_prealloc=60
143143

144144
quality/intended_usage/framebuffer_allocation=3
145145
quality/filters/msaa=2
146+
environment/default_environment="res://default_env.tres"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[gd_resource type="ArrayMesh" load_steps=4 format=2]
2+
3+
[ext_resource path="res://stage/texturemr.png" type="Texture" id=1]
4+
[ext_resource path="res://stage/texture.png" type="Texture" id=2]
5+
6+
[sub_resource type="SpatialMaterial" id=1]
7+
albedo_texture = ExtResource( 2 )
8+
metallic = 0.51
9+
metallic_texture = ExtResource( 1 )
10+
roughness = 0.2
11+
roughness_texture = ExtResource( 1 )
12+
13+
[resource]
14+
surfaces/0 = {
15+
"aabb": AABB( -1, -1, -1, 2, 0, 2 ),
16+
"array_data": PoolByteArray( 0, 188, 0, 188, 0, 60, 0, 60, 0, 127, 0, 0, 7, 58, 236, 51, 0, 60, 0, 188, 0, 60, 0, 60, 0, 127, 0, 0, 0, 60, 236, 51, 0, 60, 0, 188, 0, 188, 0, 60, 0, 127, 0, 0, 0, 60, 239, 17, 0, 188, 0, 188, 0, 188, 0, 60, 0, 127, 0, 0, 7, 58, 239, 17 ),
17+
"array_index_data": PoolByteArray( 0, 0, 2, 0, 1, 0, 0, 0, 3, 0, 2, 0 ),
18+
"blend_shape_data": [ ],
19+
"format": 98067,
20+
"index_count": 6,
21+
"material": SubResource( 1 ),
22+
"primitive": 4,
23+
"skeleton_aabb": [ ],
24+
"vertex_count": 4
25+
}

3d/platformer/stage/stage.tscn

Lines changed: 92 additions & 62 deletions
Large diffs are not rendered by default.

3d/platformer/stage/tiles.tres

Lines changed: 42 additions & 55 deletions
Large diffs are not rendered by default.

3d/platformer/stage/tiles.tscn

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
[ext_resource path="res://stage/texture.png" type="Texture" id=1]
44

5-
65
[sub_resource type="SpatialMaterial" id=1]
76
params_diffuse_mode = 1
87
roughness = 0.0
@@ -385,12 +384,12 @@ material/0 = SubResource( 3 )
385384

386385
[node name="FloorCornerCol" type="StaticBody" parent="FloorCorner"]
387386

388-
[node name="flooredge" type="MeshInstance" parent="."]
387+
[node name="FloorEdge" type="MeshInstance" parent="."]
389388
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 1, 0 )
390389
mesh = SubResource( 17 )
391390
material/0 = SubResource( 3 )
392391

393-
[node name="FloorEdgeCol" type="StaticBody" parent="flooredge"]
392+
[node name="FloorEdgeCol" type="StaticBody" parent="FloorEdge"]
394393

395394
[node name="Floor" type="MeshInstance" parent="."]
396395
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 7, 1, 0 )

0 commit comments

Comments
 (0)