summaryrefslogtreecommitdiffstats
path: root/Rock.tscn
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-09-14 23:45:34 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-09-15 09:24:03 -0400
commit22cb5141ed37ccffcc41d4b13cf1d5db39dfdaa8 (patch)
tree4b6debd3146574944d66075a9392ae621b32dd52 /Rock.tscn
parent7a8c54f63230b61429f293f9a86200d0c1541f59 (diff)
downloadgame_jam49-22cb5141ed37ccffcc41d4b13cf1d5db39dfdaa8.tar.gz
game_jam49-22cb5141ed37ccffcc41d4b13cf1d5db39dfdaa8.zip
Prototype procedurally generated world with rocks
Diffstat (limited to 'Rock.tscn')
-rw-r--r--Rock.tscn38
1 files changed, 38 insertions, 0 deletions
diff --git a/Rock.tscn b/Rock.tscn
new file mode 100644
index 0000000..4ae8397
--- /dev/null
+++ b/Rock.tscn
@@ -0,0 +1,38 @@
+[gd_scene load_steps=7 format=2]
+
+[sub_resource type="ConvexPolygonShape" id=2]
+points = PoolVector3Array( 2.5, -5, 2.5, 2.5, -5, -2.5, -2.5, -5, -2.5, -2.5, -5, 2.5, 0, 5, 2.5, 0, 5, -2.5 )
+
+[sub_resource type="PrismMesh" id=1]
+size = Vector3( 5, 10, 5 )
+
+[sub_resource type="OpenSimplexNoise" id=3]
+octaves = 4
+period = 32.0
+
+[sub_resource type="NoiseTexture" id=4]
+noise = SubResource( 3 )
+
+[sub_resource type="NoiseTexture" id=5]
+seamless = true
+as_normalmap = true
+bump_strength = 32.0
+noise = SubResource( 3 )
+
+[sub_resource type="SpatialMaterial" id=6]
+albedo_color = Color( 0.231373, 0.231373, 0.231373, 1 )
+albedo_texture = SubResource( 4 )
+normal_enabled = true
+normal_scale = 1.0
+normal_texture = SubResource( 5 )
+
+[node name="Rock" type="StaticBody"]
+collision_layer = 8
+collision_mask = 0
+
+[node name="CollisionShape" type="CollisionShape" parent="."]
+shape = SubResource( 2 )
+
+[node name="MeshInstance" type="MeshInstance" parent="."]
+mesh = SubResource( 1 )
+material/0 = SubResource( 6 )