initial commit

This commit is contained in:
2023-09-13 03:04:01 +03:00
commit 22482cc9b2
58 changed files with 2051448 additions and 0 deletions

35
godot/entries/main.gd Normal file
View File

@@ -0,0 +1,35 @@
extends Spatial
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
var delay = 0.5
var existing = false
func _process(delta):
delay -= delta
if delay < 0:
if !existing:
create_ch()
delay = 10.0
existing = true
else:
destroy_ch()
delay = 3.0
existing = false
var char_id = -1
func create_ch():
char_id = Character.create_character(0)
func destroy_ch():
print(char_id)
Character.destroy_character(char_id)
char_id = -1