Skip to content

Commit 27b2a14

Browse files
committed
update gui and demo image
1 parent d500b3b commit 27b2a14

File tree

5 files changed

+2916
-2890
lines changed

5 files changed

+2916
-2890
lines changed

assets/tilemap.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@ generators:
2020
persistence: 0.5
2121
lacunarity: 2
2222
aliases:
23+
# Available tiles:
24+
# 1_extended
25+
# 2_extended
26+
# 3_extended
27+
# blocks
28+
# buildings
29+
# dirt
30+
# flooring
31+
# grass
32+
# objects
33+
# plants
34+
# rock
35+
# sand
36+
# snow
37+
# water
2338
curse: 4_extended
2439
steps:
2540
- height*curse:

docs/assets/img/demo.png

-29 Bytes
Loading

scenes/Gui.gd

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
extends Control
22

3-
onready var seeed = $Yaml/Stack/Seed
3+
onready var seeed = $Yaml/Stack/Settings/Seed
4+
onready var variance = $Yaml/Stack/Settings/Variance
45
onready var textbox = $Yaml/Stack/Config
56
onready var error_label = $Yaml/Stack/Box/Error
6-
onready var load_button = $Yaml/Stack/Box/Button
7+
onready var generate_button = $Yaml/Stack/Box/Button
78
onready var zoom_slider = $Zoom/Stack/Slider
89
onready var texture_stack = $Noise/Stack
910
onready var texture_box = $Box
@@ -12,11 +13,9 @@ onready var tilegen = preload("res://assets/scripts/tilegen.gd").new()
1213
signal loaded
1314
signal zoom
1415

15-
# TODO add zoom in and out buttons
16-
1716
# Called when the node enters the scene tree for the first time.
1817
func _ready():
19-
load_button.connect("pressed", self, "_pressed")
18+
generate_button.connect("pressed", self, "_pressed")
2019
zoom_slider.connect("value_changed", self, "_value_changed")
2120

2221

@@ -30,6 +29,7 @@ func _value_changed(value):
3029

3130
func load_config():
3231
var sed = seeed.text
32+
print(sed)
3333
if sed != "":
3434
if int(sed) != 0:
3535
sed = int(sed)

0 commit comments

Comments
 (0)