fucking signals, how do they work

This commit is contained in:
Zoe 2022-05-04 14:10:28 +02:00
parent bcd4a1b031
commit 9d9348faca
6 changed files with 10 additions and 16 deletions

View file

@ -4,6 +4,3 @@
[node name="StateServer" type="Node"]
script = ExtResource( 1 )
xsize = 14
ysize = 14
zsize = 14

Binary file not shown.

View file

@ -1,7 +1,5 @@
extends Node
var server = preload("res://native/StateServer.tscn").instance()
onready var server = $StateServer
func _ready():
add_child(server)
server.generate_world()
server.generate_world(1024,1024,512)

View file

@ -1,6 +1,7 @@
[gd_scene load_steps=4 format=2]
[gd_scene load_steps=5 format=2]
[ext_resource path="res://world/terrain/terrain.tres" type="TileSet" id=1]
[ext_resource path="res://native/StateServer.tscn" type="PackedScene" id=2]
[ext_resource path="res://world/worldcam.gd" type="Script" id=3]
[ext_resource path="res://world/StateApi.gd" type="Script" id=5]
@ -9,6 +10,8 @@
[node name="StateApi" type="Node" parent="."]
script = ExtResource( 5 )
[node name="StateServer" parent="StateApi" instance=ExtResource( 2 )]
[node name="TileMap" type="TileMap" parent="."]
position = Vector2( -2, 0 )
mode = 1