mirror of
https://git.kittycat.homes/zoe/codename-routes.git
synced 2024-08-15 03:18:26 +00:00
fucking signals, how do they work
This commit is contained in:
parent
bcd4a1b031
commit
9d9348faca
6 changed files with 10 additions and 16 deletions
|
@ -4,6 +4,3 @@
|
|||
|
||||
[node name="StateServer" type="Node"]
|
||||
script = ExtResource( 1 )
|
||||
xsize = 14
|
||||
ysize = 14
|
||||
zsize = 14
|
||||
|
|
Binary file not shown.
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue