145 lines
3.8 KiB
Plaintext
145 lines
3.8 KiB
Plaintext
[gd_scene load_steps=11 format=2]
|
|
|
|
[ext_resource path="res://scenes/AdaptiveWorldStream.gd" type="Script" id=1]
|
|
[ext_resource path="res://entities/Player3D.tscn" type="PackedScene" id=2]
|
|
[ext_resource path="res://scenes/World.gd" type="Script" id=3]
|
|
[ext_resource path="res://scenes/StreamContainer.gd" type="Script" id=4]
|
|
|
|
[sub_resource type="CylinderMesh" id=3]
|
|
top_radius = 0.5
|
|
bottom_radius = 0.5
|
|
height = 0.1
|
|
radial_segments = 6
|
|
rings = 1
|
|
|
|
[sub_resource type="SpatialMaterial" id=4]
|
|
render_priority = 1
|
|
flags_transparent = true
|
|
albedo_color = Color( 1, 1, 1, 0.407843 )
|
|
roughness = 0.0
|
|
|
|
[sub_resource type="OpenSimplexNoise" id=5]
|
|
period = 15.0
|
|
|
|
[sub_resource type="NoiseTexture" id=6]
|
|
flags = 3
|
|
width = 100
|
|
height = 100
|
|
noise = SubResource( 5 )
|
|
|
|
[sub_resource type="CubeMesh" id=1]
|
|
|
|
[sub_resource type="SpatialMaterial" id=2]
|
|
params_blend_mode = 3
|
|
albedo_color = Color( 1, 1, 1, 0.156863 )
|
|
|
|
[node name="AdaptiveWorldStream" type="Spatial"]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="TileHighlight" type="MeshInstance" parent="."]
|
|
transform = Transform( -1.62921e-07, 0, 1, 0, 1, 0, -1, 0, -1.62921e-07, 0, 0.2, 0 )
|
|
cast_shadow = 0
|
|
mesh = SubResource( 3 )
|
|
material/0 = SubResource( 4 )
|
|
|
|
[node name="Player" parent="." instance=ExtResource( 2 )]
|
|
|
|
[node name="World" type="Spatial" parent="."]
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="Control" type="Control" parent="."]
|
|
margin_right = 40.0
|
|
margin_bottom = 40.0
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="Control"]
|
|
margin_right = 40.0
|
|
margin_bottom = 40.0
|
|
|
|
[node name="WorldMapRect" type="TextureRect" parent="Control/HBoxContainer"]
|
|
margin_right = 100.0
|
|
margin_bottom = 100.0
|
|
rect_min_size = Vector2( 100, 100 )
|
|
texture = SubResource( 6 )
|
|
expand = true
|
|
|
|
[node name="GenerateWorldButton" type="Button" parent="Control/HBoxContainer"]
|
|
margin_left = 104.0
|
|
margin_right = 175.0
|
|
margin_bottom = 100.0
|
|
text = "Generate"
|
|
|
|
[node name="Label" type="Label" parent="Control/HBoxContainer"]
|
|
margin_left = 179.0
|
|
margin_top = 43.0
|
|
margin_right = 202.0
|
|
margin_bottom = 57.0
|
|
rect_pivot_offset = Vector2( -335, -33 )
|
|
text = "Tile"
|
|
|
|
[node name="tile_label" type="Label" parent="Control/HBoxContainer"]
|
|
margin_left = 206.0
|
|
margin_top = 43.0
|
|
margin_right = 226.0
|
|
margin_bottom = 57.0
|
|
text = "0,0"
|
|
|
|
[node name="Label2" type="Label" parent="Control/HBoxContainer"]
|
|
margin_left = 230.0
|
|
margin_top = 43.0
|
|
margin_right = 296.0
|
|
margin_bottom = 57.0
|
|
text = "Tile Offset"
|
|
|
|
[node name="tile_offset_label" type="Label" parent="Control/HBoxContainer"]
|
|
margin_left = 300.0
|
|
margin_top = 43.0
|
|
margin_right = 320.0
|
|
margin_bottom = 57.0
|
|
text = "0,0"
|
|
|
|
[node name="Label3" type="Label" parent="Control/HBoxContainer"]
|
|
margin_left = 324.0
|
|
margin_top = 43.0
|
|
margin_right = 363.0
|
|
margin_bottom = 57.0
|
|
text = "#Tiles"
|
|
|
|
[node name="num_tiles_label" type="Label" parent="Control/HBoxContainer"]
|
|
margin_left = 367.0
|
|
margin_top = 43.0
|
|
margin_right = 375.0
|
|
margin_bottom = 57.0
|
|
text = "0"
|
|
|
|
[node name="Label5" type="Label" parent="Control/HBoxContainer"]
|
|
margin_left = 379.0
|
|
margin_top = 43.0
|
|
margin_right = 428.0
|
|
margin_bottom = 57.0
|
|
text = "#Active"
|
|
|
|
[node name="num_active_tiles_label" type="Label" parent="Control/HBoxContainer"]
|
|
margin_left = 432.0
|
|
margin_top = 43.0
|
|
margin_right = 440.0
|
|
margin_bottom = 57.0
|
|
text = "0"
|
|
|
|
[node name="StreamContainer" type="Spatial" parent="."]
|
|
script = ExtResource( 4 )
|
|
world_rect = Rect2( 0, 0, 20, 20 )
|
|
|
|
[node name="ActiveTiles" type="Spatial" parent="StreamContainer"]
|
|
|
|
[node name="Bounds" type="MeshInstance" parent="StreamContainer"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0 )
|
|
visible = false
|
|
mesh = SubResource( 1 )
|
|
skeleton = NodePath("../..")
|
|
material/0 = SubResource( 2 )
|
|
|
|
[connection signal="world_generated" from="World" to="." method="_on_World_world_generated"]
|
|
[connection signal="pressed" from="Control/HBoxContainer/GenerateWorldButton" to="." method="_on_GenerateWorldButton_pressed"]
|
|
|
|
[editable path="Player"]
|