Files
Corupture/scene/world.tscn
Eric 7c81a2229e refactored cell world building
#8 included resources into cell data
2024-02-06 07:39:44 -06:00

83 lines
2.6 KiB
Plaintext

[gd_scene load_steps=8 format=3 uid="uid://m0us5xqa3gnk"]
[ext_resource type="Script" path="res://scripts/world.gd" id="1_yf6q1"]
[ext_resource type="TileSet" uid="uid://d1sh6dy2w10b0" path="res://data/scifi_tileset.tres" id="2_sa7dm"]
[ext_resource type="Script" path="res://scripts/window.gd" id="3_bfjot"]
[ext_resource type="Script" path="res://scripts/building_manager.gd" id="4_61js3"]
[ext_resource type="Texture2D" uid="uid://n806c03hgaq1" path="res://assets/scifi_tilesheet@2.png" id="5_qhth7"]
[sub_resource type="AtlasTexture" id="AtlasTexture_m3qlj"]
atlas = ExtResource("5_qhth7")
region = Rect2(640, 768, 128, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_oqxqp"]
atlas = ExtResource("5_qhth7")
region = Rect2(640, 384, 128, 128)
[node name="world" type="Node2D"]
script = ExtResource("1_yf6q1")
[node name="world_grid" type="TileMap" parent="."]
tile_set = ExtResource("2_sa7dm")
format = 2
layer_0/name = "ground"
layer_1/name = "corruption"
layer_1/tile_data = PackedInt32Array()
layer_2/name = "cursor"
layer_2/tile_data = PackedInt32Array()
layer_3/name = "environment"
layer_3/tile_data = PackedInt32Array()
layer_4/name = "buildings"
layer_4/tile_data = PackedInt32Array()
[node name="Camera2D" type="Camera2D" parent="."]
zoom = Vector2(0.3, 0.3)
drag_horizontal_enabled = true
drag_vertical_enabled = true
script = ExtResource("3_bfjot")
[node name="BuildingManager" type="Node2D" parent="."]
script = ExtResource("4_61js3")
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="GUI" type="Control" parent="CanvasLayer"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 1
[node name="ResourceContainer" type="PanelContainer" parent="CanvasLayer/GUI"]
layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -128.0
offset_bottom = 128.0
grow_horizontal = 0
[node name="GridContainer" type="GridContainer" parent="CanvasLayer/GUI/ResourceContainer"]
layout_mode = 2
columns = 2
[node name="GemTexture" type="TextureRect" parent="CanvasLayer/GUI/ResourceContainer/GridContainer"]
layout_mode = 2
texture = SubResource("AtlasTexture_m3qlj")
expand_mode = 3
[node name="GemLabel" type="Label" parent="CanvasLayer/GUI/ResourceContainer/GridContainer"]
layout_mode = 2
text = "100000"
[node name="CarbonTexture" type="TextureRect" parent="CanvasLayer/GUI/ResourceContainer/GridContainer"]
layout_mode = 2
texture = SubResource("AtlasTexture_oqxqp")
expand_mode = 3
[node name="CarbonLabel" type="Label" parent="CanvasLayer/GUI/ResourceContainer/GridContainer"]
layout_mode = 2
text = "100"