Skip to content

Commit 76d43cf

Browse files
committed
[3DP] Convert SCN to TSCN
1 parent 97f9632 commit 76d43cf

18 files changed

+5444
-9
lines changed

3d/platformer/bullet.scn

-3.99 KB
Binary file not shown.

3d/platformer/bullet.tscn

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
[gd_scene load_steps=10 format=2]
2+
3+
[ext_resource path="res://bullet.gd" type="Script" id=1]
4+
5+
[sub_resource type="SpatialMaterial" id=1]
6+
flags_transparent = true
7+
flags_unshaded = true
8+
vertex_color_use_as_albedo = true
9+
vertex_color_is_srgb = true
10+
params_blend_mode = 1
11+
albedo_color = Color( 0.822, 0.795804, 0.513098, 1 )
12+
13+
[sub_resource type="ArrayMesh" id=2]
14+
resource_name = "Sphere.001"
15+
surfaces/0 = {
16+
"aabb": AABB( -0.951057, -1, -0.951057, 1.90211, 2, 1.90211 ),
17+
"array_data": PoolByteArray( 155, 187, 241, 52, 0, 0, 0, 60, 135, 36, 0, 0, 179, 184, 120, 58, 0, 0, 0, 60, 176, 98, 0, 0, 166, 182, 120, 58, 166, 182, 0, 60, 200, 98, 200, 0, 97, 185, 241, 52, 97, 185, 0, 60, 171, 36, 171, 0, 155, 187, 241, 180, 0, 0, 0, 60, 135, 220, 0, 0, 97, 185, 241, 180, 97, 185, 0, 60, 171, 220, 171, 0, 179, 184, 120, 186, 0, 0, 0, 60, 176, 158, 0, 0, 166, 182, 120, 186, 166, 182, 0, 60, 200, 158, 200, 0, 0, 0, 241, 52, 155, 187, 0, 60, 0, 36, 135, 0, 0, 0, 241, 180, 155, 187, 0, 60, 0, 220, 135, 0, 0, 0, 120, 186, 179, 184, 0, 60, 0, 158, 176, 0, 0, 0, 120, 58, 179, 184, 0, 60, 0, 98, 176, 0, 97, 57, 241, 52, 97, 185, 0, 60, 85, 36, 171, 0, 97, 57, 241, 180, 97, 185, 0, 60, 85, 220, 171, 0, 166, 54, 120, 186, 166, 182, 0, 60, 56, 158, 200, 0, 166, 54, 120, 58, 166, 182, 0, 60, 56, 98, 200, 0, 155, 59, 241, 52, 0, 0, 0, 60, 121, 36, 0, 0, 155, 59, 241, 180, 0, 0, 0, 60, 121, 220, 0, 0, 179, 56, 120, 186, 0, 0, 0, 60, 80, 158, 0, 0, 179, 56, 120, 58, 0, 0, 0, 60, 80, 98, 0, 0, 97, 57, 241, 52, 97, 57, 0, 60, 85, 36, 85, 0, 97, 57, 241, 180, 97, 57, 0, 60, 85, 220, 85, 0, 166, 54, 120, 186, 166, 54, 0, 60, 56, 158, 56, 0, 166, 54, 120, 58, 166, 54, 0, 60, 56, 98, 56, 0, 0, 0, 241, 52, 155, 59, 0, 60, 0, 36, 121, 0, 0, 0, 241, 180, 155, 59, 0, 60, 0, 220, 121, 0, 0, 0, 120, 186, 179, 56, 0, 60, 0, 158, 80, 0, 0, 0, 120, 58, 179, 56, 0, 60, 0, 98, 80, 0, 97, 185, 241, 52, 97, 57, 0, 60, 171, 36, 85, 0, 97, 185, 241, 180, 97, 57, 0, 60, 171, 220, 85, 0, 166, 182, 120, 186, 166, 54, 0, 60, 200, 158, 56, 0, 166, 182, 120, 58, 166, 54, 0, 60, 200, 98, 56, 0, 0, 0, 0, 60, 0, 0, 0, 60, 0, 127, 0, 0, 0, 0, 0, 188, 0, 0, 0, 60, 0, 130, 0, 0 ),
18+
"array_index_data": PoolByteArray( 0, 0, 2, 0, 1, 0, 0, 0, 3, 0, 2, 0, 4, 0, 3, 0, 0, 0, 4, 0, 5, 0, 3, 0, 6, 0, 5, 0, 4, 0, 6, 0, 7, 0, 5, 0, 5, 0, 8, 0, 3, 0, 5, 0, 9, 0, 8, 0, 7, 0, 9, 0, 5, 0, 7, 0, 10, 0, 9, 0, 3, 0, 11, 0, 2, 0, 3, 0, 8, 0, 11, 0, 9, 0, 12, 0, 8, 0, 9, 0, 13, 0, 12, 0, 10, 0, 13, 0, 9, 0, 10, 0, 14, 0, 13, 0, 8, 0, 15, 0, 11, 0, 8, 0, 12, 0, 15, 0, 13, 0, 16, 0, 12, 0, 13, 0, 17, 0, 16, 0, 14, 0, 17, 0, 13, 0, 14, 0, 18, 0, 17, 0, 12, 0, 19, 0, 15, 0, 12, 0, 16, 0, 19, 0, 17, 0, 20, 0, 16, 0, 17, 0, 21, 0, 20, 0, 18, 0, 21, 0, 17, 0, 18, 0, 22, 0, 21, 0, 16, 0, 23, 0, 19, 0, 16, 0, 20, 0, 23, 0, 21, 0, 24, 0, 20, 0, 21, 0, 25, 0, 24, 0, 22, 0, 25, 0, 21, 0, 22, 0, 26, 0, 25, 0, 20, 0, 27, 0, 23, 0, 20, 0, 24, 0, 27, 0, 25, 0, 28, 0, 24, 0, 25, 0, 29, 0, 28, 0, 26, 0, 29, 0, 25, 0, 26, 0, 30, 0, 29, 0, 24, 0, 31, 0, 27, 0, 24, 0, 28, 0, 31, 0, 1, 0, 2, 0, 32, 0, 33, 0, 7, 0, 6, 0, 2, 0, 11, 0, 32, 0, 33, 0, 10, 0, 7, 0, 11, 0, 15, 0, 32, 0, 33, 0, 14, 0, 10, 0, 15, 0, 19, 0, 32, 0, 33, 0, 18, 0, 14, 0, 19, 0, 23, 0, 32, 0, 33, 0, 22, 0, 18, 0, 23, 0, 27, 0, 32, 0, 33, 0, 26, 0, 22, 0, 27, 0, 31, 0, 32, 0, 33, 0, 30, 0, 26, 0, 29, 0, 0, 0, 28, 0, 29, 0, 4, 0, 0, 0, 30, 0, 4, 0, 29, 0, 30, 0, 6, 0, 4, 0, 32, 0, 31, 0, 1, 0, 33, 0, 6, 0, 30, 0, 1, 0, 28, 0, 0, 0, 1, 0, 31, 0, 28, 0 ),
19+
"blend_shape_data": [ ],
20+
"format": 98051,
21+
"index_count": 192,
22+
"material": SubResource( 1 ),
23+
"primitive": 4,
24+
"skeleton_aabb": [ ],
25+
"vertex_count": 34
26+
}
27+
28+
[sub_resource type="SpatialMaterial" id=6]
29+
albedo_color = Color( 0.7, 0.7, 0.7, 1 )
30+
metallic = 0.1
31+
roughness = 0.0
32+
emission_enabled = true
33+
emission = Color( 1, 0.884824, 0.513098, 1 )
34+
emission_energy = 3.71
35+
emission_operator = 0
36+
emission_on_uv2 = false
37+
38+
[sub_resource type="Animation" id=3]
39+
resource_name = "life"
40+
length = 2.0
41+
tracks/0/type = "value"
42+
tracks/0/path = NodePath("Sphere:visible")
43+
tracks/0/interp = 1
44+
tracks/0/loop_wrap = true
45+
tracks/0/imported = false
46+
tracks/0/enabled = true
47+
tracks/0/keys = {
48+
"times": PoolRealArray( 0, 1.5 ),
49+
"transitions": PoolRealArray( 1, 1 ),
50+
"update": 1,
51+
"values": [ true, false ]
52+
}
53+
tracks/1/type = "value"
54+
tracks/1/path = NodePath("Particles:emitting")
55+
tracks/1/interp = 1
56+
tracks/1/loop_wrap = true
57+
tracks/1/imported = false
58+
tracks/1/enabled = true
59+
tracks/1/keys = {
60+
"times": PoolRealArray( 0, 1.5 ),
61+
"transitions": PoolRealArray( 1, 1 ),
62+
"update": 1,
63+
"values": [ true, false ]
64+
}
65+
tracks/2/type = "method"
66+
tracks/2/path = NodePath(".:")
67+
tracks/2/interp = 1
68+
tracks/2/loop_wrap = true
69+
tracks/2/imported = false
70+
tracks/2/enabled = true
71+
tracks/2/keys = {
72+
"times": PoolRealArray( 2 ),
73+
"transitions": PoolRealArray( 1 ),
74+
"values": [ {
75+
"args": [ ],
76+
"method": "queue_free"
77+
} ]
78+
}
79+
80+
[sub_resource type="Gradient" id=8]
81+
colors = PoolColorArray( 1, 1, 1, 1, 1, 1, 1, 0 )
82+
83+
[sub_resource type="GradientTexture" id=9]
84+
gradient = SubResource( 8 )
85+
86+
[sub_resource type="ParticlesMaterial" id=7]
87+
spread = 0.0
88+
gravity = Vector3( 0, 0, 0 )
89+
scale = 0.3
90+
color_ramp = SubResource( 9 )
91+
92+
[sub_resource type="SphereShape" id=5]
93+
radius = 0.27
94+
95+
[node name="Bullet" type="RigidBody"]
96+
mass = 0.4
97+
script = ExtResource( 1 )
98+
__meta__ = {
99+
"__editor_plugin_screen__": "3D"
100+
}
101+
102+
[node name="Sphere" type="MeshInstance" parent="."]
103+
transform = Transform( 0.24972, 0, 0, 0, 0.24972, 0, 0, 0, 0.24972, 0.00159812, 0.0110106, 0.0045104 )
104+
mesh = SubResource( 2 )
105+
skeleton = NodePath("..:")
106+
material/0 = SubResource( 6 )
107+
108+
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
109+
root_node = NodePath("..:")
110+
autoplay = "life"
111+
anims/life = SubResource( 3 )
112+
113+
[node name="Particles" type="Particles" parent="."]
114+
amount = 16
115+
lifetime = 0.4
116+
fixed_fps = 60
117+
fract_delta = false
118+
local_coords = false
119+
process_material = SubResource( 7 )
120+
draw_pass_1 = SubResource( 2 )
121+
122+
[node name="CollisionShape" type="CollisionShape" parent="."]
123+
shape = SubResource( 5 )

3d/platformer/coin.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ var taken = false
77

88
func _on_coin_body_enter(body):
99
if not taken and body is preload("res://player.gd"):
10-
get_node("anim").play("take")
10+
get_node("Animation").play("take")
1111
taken = true

3d/platformer/coin.scn

-4.73 KB
Binary file not shown.

3d/platformer/coin.tscn

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
[gd_scene load_steps=14 format=2]
2+
3+
[ext_resource path="res://coin.gd" type="Script" id=1]
4+
[ext_resource path="res://sound_coin.wav" type="AudioStream" id=2]
5+
[ext_resource path="res://shine.png" type="Texture" id=3]
6+
7+
[sub_resource type="SpatialMaterial" id=1]
8+
albedo_color = Color( 1, 0.837686, 0, 1 )
9+
metallic = 0.86
10+
roughness = 0.0
11+
emission_enabled = true
12+
emission = Color( 0.219922, 0.109961, 0, 1 )
13+
emission_energy = 1.71
14+
emission_operator = 0
15+
emission_on_uv2 = false
16+
17+
[sub_resource type="ArrayMesh" id=2]
18+
resource_name = "Circle"
19+
surfaces/0 = {
20+
"aabb": AABB( -1, -0.191052, -1, 2, 0.407182, 2.64929 ),
21+
"array_data": PoolByteArray( 0, 184, 29, 178, 237, 186, 0, 60, 0, 130, 0, 0, 0, 0, 29, 178, 255, 187, 0, 60, 0, 130, 0, 0, 255, 55, 29, 178, 237, 186, 0, 60, 0, 130, 0, 0, 237, 58, 29, 178, 0, 184, 0, 60, 0, 130, 0, 0, 237, 186, 29, 178, 255, 183, 0, 60, 0, 130, 0, 0, 0, 60, 29, 178, 0, 0, 0, 60, 0, 130, 0, 0, 0, 188, 29, 178, 0, 0, 0, 60, 0, 130, 0, 0, 0, 60, 29, 178, 49, 57, 0, 60, 0, 130, 0, 0, 0, 188, 29, 178, 49, 57, 0, 60, 0, 130, 0, 0, 237, 58, 29, 178, 152, 60, 0, 60, 0, 130, 0, 0, 237, 186, 29, 178, 152, 60, 0, 60, 0, 130, 0, 0, 0, 56, 29, 178, 15, 62, 0, 60, 0, 130, 0, 0, 0, 184, 29, 178, 15, 62, 0, 60, 0, 130, 0, 0, 0, 0, 29, 178, 152, 62, 0, 60, 0, 130, 0, 0, 255, 55, 234, 50, 237, 186, 0, 60, 0, 127, 0, 0, 0, 0, 234, 50, 255, 187, 0, 60, 0, 127, 0, 0, 0, 184, 234, 50, 237, 186, 0, 60, 0, 127, 0, 0, 237, 58, 234, 50, 0, 184, 0, 60, 0, 127, 0, 0, 237, 186, 234, 50, 255, 183, 0, 60, 0, 127, 0, 0, 0, 60, 234, 50, 0, 0, 0, 60, 0, 127, 0, 0, 0, 188, 234, 50, 0, 0, 0, 60, 0, 127, 0, 0, 0, 60, 234, 50, 49, 57, 0, 60, 0, 127, 0, 0, 0, 188, 234, 50, 49, 57, 0, 60, 0, 127, 0, 0, 237, 58, 234, 50, 152, 60, 0, 60, 0, 127, 0, 0, 237, 186, 234, 50, 152, 60, 0, 60, 0, 127, 0, 0, 0, 56, 234, 50, 15, 62, 0, 60, 0, 127, 0, 0, 0, 184, 234, 50, 15, 62, 0, 60, 0, 127, 0, 0, 0, 0, 234, 50, 152, 62, 0, 60, 0, 127, 0, 0, 0, 0, 29, 178, 152, 62, 0, 60, 0, 0, 126, 0, 0, 0, 234, 50, 152, 62, 0, 60, 0, 0, 126, 0, 0, 184, 234, 50, 15, 62, 0, 60, 193, 0, 109, 0, 0, 184, 29, 178, 15, 62, 0, 60, 193, 0, 109, 0, 0, 0, 29, 178, 255, 187, 0, 60, 0, 0, 129, 0, 0, 0, 234, 50, 255, 187, 0, 60, 0, 0, 129, 0, 255, 55, 234, 50, 237, 186, 0, 60, 63, 0, 147, 0, 255, 55, 29, 178, 237, 186, 0, 60, 63, 0, 147, 0, 237, 186, 234, 50, 152, 60, 0, 60, 147, 0, 63, 0, 237, 186, 29, 178, 152, 60, 0, 60, 147, 0, 63, 0, 237, 58, 234, 50, 0, 184, 0, 60, 109, 0, 193, 0, 237, 58, 29, 178, 0, 184, 0, 60, 109, 0, 193, 0, 0, 188, 234, 50, 49, 57, 0, 60, 131, 0, 16, 0, 0, 188, 29, 178, 49, 57, 0, 60, 131, 0, 16, 0, 0, 60, 234, 50, 0, 0, 0, 60, 125, 0, 240, 0, 0, 60, 29, 178, 0, 0, 0, 60, 125, 0, 240, 0, 0, 60, 29, 178, 49, 57, 0, 60, 125, 0, 16, 0, 0, 60, 234, 50, 49, 57, 0, 60, 125, 0, 16, 0, 237, 58, 234, 50, 152, 60, 0, 60, 109, 0, 63, 0, 237, 58, 29, 178, 152, 60, 0, 60, 109, 0, 63, 0, 0, 188, 29, 178, 0, 0, 0, 60, 131, 0, 240, 0, 0, 188, 234, 50, 0, 0, 0, 60, 131, 0, 240, 0, 237, 186, 234, 50, 255, 183, 0, 60, 147, 0, 193, 0, 237, 186, 29, 178, 255, 183, 0, 60, 147, 0, 193, 0, 0, 56, 234, 50, 15, 62, 0, 60, 63, 0, 109, 0, 0, 56, 29, 178, 15, 62, 0, 60, 63, 0, 109, 0, 0, 184, 234, 50, 237, 186, 0, 60, 193, 0, 147, 0, 0, 184, 29, 178, 237, 186, 0, 60, 193, 0, 147, 0 ),
22+
"array_index_data": PoolByteArray( 0, 0, 2, 0, 1, 0, 0, 0, 3, 0, 2, 0, 0, 0, 4, 0, 3, 0, 3, 0, 4, 0, 5, 0, 5, 0, 4, 0, 6, 0, 5, 0, 6, 0, 7, 0, 7, 0, 6, 0, 8, 0, 7, 0, 8, 0, 9, 0, 9, 0, 8, 0, 10, 0, 9, 0, 10, 0, 11, 0, 11, 0, 10, 0, 12, 0, 11, 0, 12, 0, 13, 0, 14, 0, 16, 0, 15, 0, 14, 0, 17, 0, 16, 0, 16, 0, 17, 0, 18, 0, 18, 0, 17, 0, 19, 0, 18, 0, 19, 0, 20, 0, 20, 0, 19, 0, 21, 0, 20, 0, 21, 0, 22, 0, 22, 0, 21, 0, 23, 0, 22, 0, 23, 0, 24, 0, 24, 0, 23, 0, 25, 0, 24, 0, 25, 0, 26, 0, 26, 0, 25, 0, 27, 0, 28, 0, 30, 0, 29, 0, 28, 0, 31, 0, 30, 0, 32, 0, 34, 0, 33, 0, 32, 0, 35, 0, 34, 0, 31, 0, 36, 0, 30, 0, 31, 0, 37, 0, 36, 0, 35, 0, 38, 0, 34, 0, 35, 0, 39, 0, 38, 0, 37, 0, 40, 0, 36, 0, 37, 0, 41, 0, 40, 0, 39, 0, 42, 0, 38, 0, 39, 0, 43, 0, 42, 0, 44, 0, 46, 0, 45, 0, 44, 0, 47, 0, 46, 0, 48, 0, 50, 0, 49, 0, 48, 0, 51, 0, 50, 0, 47, 0, 52, 0, 46, 0, 47, 0, 53, 0, 52, 0, 44, 0, 42, 0, 43, 0, 44, 0, 45, 0, 42, 0, 51, 0, 54, 0, 50, 0, 51, 0, 55, 0, 54, 0, 53, 0, 29, 0, 52, 0, 53, 0, 28, 0, 29, 0, 41, 0, 49, 0, 40, 0, 41, 0, 48, 0, 49, 0, 55, 0, 33, 0, 54, 0, 55, 0, 32, 0, 33, 0 ),
23+
"blend_shape_data": [ ],
24+
"format": 98051,
25+
"index_count": 156,
26+
"material": SubResource( 1 ),
27+
"primitive": 4,
28+
"skeleton_aabb": [ ],
29+
"vertex_count": 56
30+
}
31+
32+
[sub_resource type="Animation" id=3]
33+
resource_name = "spin"
34+
length = 2.0
35+
loop = true
36+
tracks/0/type = "value"
37+
tracks/0/path = NodePath("Circle:rotation_degrees")
38+
tracks/0/interp = 1
39+
tracks/0/loop_wrap = true
40+
tracks/0/imported = false
41+
tracks/0/enabled = true
42+
tracks/0/keys = {
43+
"times": PoolRealArray( 0, 2 ),
44+
"transitions": PoolRealArray( 1, 1 ),
45+
"update": 0,
46+
"values": [ Vector3( -90, 0, 0 ), Vector3( -90, 0, -360 ) ]
47+
}
48+
49+
[sub_resource type="Animation" id=4]
50+
resource_name = "take"
51+
tracks/0/type = "value"
52+
tracks/0/path = NodePath("Circle:visible")
53+
tracks/0/interp = 1
54+
tracks/0/loop_wrap = true
55+
tracks/0/imported = false
56+
tracks/0/enabled = true
57+
tracks/0/keys = {
58+
"times": PoolRealArray( 0 ),
59+
"transitions": PoolRealArray( 1 ),
60+
"update": 1,
61+
"values": [ false ]
62+
}
63+
tracks/1/type = "value"
64+
tracks/1/path = NodePath("Particles:emitting")
65+
tracks/1/interp = 1
66+
tracks/1/loop_wrap = true
67+
tracks/1/imported = false
68+
tracks/1/enabled = true
69+
tracks/1/keys = {
70+
"times": PoolRealArray( 0 ),
71+
"transitions": PoolRealArray( 1 ),
72+
"update": 1,
73+
"values": [ true ]
74+
}
75+
tracks/2/type = "value"
76+
tracks/2/path = NodePath("Sound:playing")
77+
tracks/2/interp = 1
78+
tracks/2/loop_wrap = true
79+
tracks/2/imported = false
80+
tracks/2/enabled = true
81+
tracks/2/keys = {
82+
"times": PoolRealArray( 0 ),
83+
"transitions": PoolRealArray( 1 ),
84+
"update": 1,
85+
"values": [ true ]
86+
}
87+
88+
[sub_resource type="SphereShape" id=7]
89+
radius = 0.312546
90+
91+
[sub_resource type="Gradient" id=8]
92+
colors = PoolColorArray( 1, 1, 1, 1, 1, 1, 1, 0 )
93+
94+
[sub_resource type="GradientTexture" id=9]
95+
gradient = SubResource( 8 )
96+
97+
[sub_resource type="ParticlesMaterial" id=10]
98+
emission_shape = 2
99+
emission_box_extents = Vector3( 0.3, 0.3, 0.3 )
100+
initial_velocity = 5.51
101+
scale = 0.1
102+
color_ramp = SubResource( 9 )
103+
104+
[sub_resource type="SpatialMaterial" id=11]
105+
flags_transparent = true
106+
flags_unshaded = true
107+
vertex_color_use_as_albedo = true
108+
vertex_color_is_srgb = true
109+
params_blend_mode = 1
110+
params_billboard_mode = 3
111+
particles_anim_h_frames = 1
112+
particles_anim_v_frames = 1
113+
particles_anim_loop = false
114+
albedo_color = Color( 1, 1, 0.759137, 1 )
115+
albedo_texture = ExtResource( 3 )
116+
117+
[sub_resource type="QuadMesh" id=12]
118+
material = SubResource( 11 )
119+
120+
[node name="Coin" type="Area"]
121+
input_ray_pickable = false
122+
script = ExtResource( 1 )
123+
__meta__ = {
124+
"__editor_plugin_screen__": "3D"
125+
}
126+
127+
[node name="Circle" type="MeshInstance" parent="."]
128+
transform = Transform( 0.2, 0, 0, 0, -3.25841e-08, 0.2, 0, -0.2, -3.25841e-08, 0.00550658, 0.532125, 0.000651598 )
129+
layers = 2
130+
mesh = SubResource( 2 )
131+
skeleton = NodePath("..:")
132+
material/0 = null
133+
134+
[node name="Animation" type="AnimationPlayer" parent="."]
135+
root_node = NodePath("..:")
136+
autoplay = "spin"
137+
anims/spin = SubResource( 3 )
138+
anims/take = SubResource( 4 )
139+
140+
[node name="CollisionShape" type="CollisionShape" parent="."]
141+
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00894194, 0.575859, 0.0193955 )
142+
shape = SubResource( 7 )
143+
144+
[node name="VisibilityEnabler" type="VisibilityEnabler" parent="."]
145+
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0321827, 0.57887, 0.0268312 )
146+
aabb = AABB( -0.29109, -0.328186, -0.295852, 0.582181, 0.656373, 0.591703 )
147+
freeze_bodies = false
148+
149+
[node name="Sound" type="AudioStreamPlayer3D" parent="."]
150+
stream = ExtResource( 2 )
151+
152+
[node name="Particles" type="Particles" parent="."]
153+
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.000732422, 0.542954, 0 )
154+
emitting = false
155+
one_shot = true
156+
explosiveness = 1.0
157+
visibility_aabb = AABB( -4.12919, -4, -4, 8.25837, 8, 8 )
158+
process_material = SubResource( 10 )
159+
draw_pass_1 = SubResource( 12 )
160+
[connection signal="body_entered" from="." to="." method="_on_coin_body_enter"]

3d/platformer/default_bus_layout.tres

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,3 @@ bus/2/volume_db = 0.0
4040
bus/2/send = "Master"
4141
bus/2/effect/0/effect = SubResource( 3 )
4242
bus/2/effect/0/enabled = true
43-

3d/platformer/enemy.scn

-22.6 KB
Binary file not shown.

3d/platformer/enemy.tscn

Lines changed: 644 additions & 0 deletions
Large diffs are not rendered by default.

3d/platformer/player.gd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func _physics_process(delta):
7676
var hspeed = hv.length() # Horizontal speed
7777

7878
var dir = Vector3() # Where does the player intend to walk to
79-
var cam_xform = get_node("target/camera").get_global_transform()
79+
var cam_xform = get_node("Target/Camera").get_global_transform()
8080

8181
if Input.is_action_pressed("move_forward"):
8282
dir += -cam_xform.basis[2]
@@ -128,7 +128,7 @@ func _physics_process(delta):
128128
if not jumping and jump_attempt:
129129
vv = 7.0
130130
jumping = true
131-
get_node("sound_jump").play()
131+
get_node("SoundJump").play()
132132
else:
133133
if vv > 0:
134134
anim = ANIM_AIR_UP
@@ -164,12 +164,12 @@ func _physics_process(delta):
164164

165165
if shoot_attempt and not prev_shoot:
166166
shoot_blend = SHOOT_TIME
167-
var bullet = preload("res://bullet.scn").instance()
168-
bullet.set_transform(get_node("Armature/bullet").get_global_transform().orthonormalized())
167+
var bullet = preload("res://bullet.tscn").instance()
168+
bullet.set_transform(get_node("Armature/Bullet").get_global_transform().orthonormalized())
169169
get_parent().add_child(bullet)
170-
bullet.set_linear_velocity(get_node("Armature/bullet").get_global_transform().basis[2].normalized() * 20)
170+
bullet.set_linear_velocity(get_node("Armature/Bullet").get_global_transform().basis[2].normalized() * 20)
171171
bullet.add_collision_exception_with(self) # Add it to bullet
172-
get_node("sound_shoot").play()
172+
get_node("SoundShoot").play()
173173

174174
prev_shoot = shoot_attempt
175175

3d/platformer/player.scn

-67.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)