mirror of
https://github.com/tonytins/citylimits.git
synced 2025-03-22 23:32:19 +00:00
36 lines
1 KiB
GDScript
36 lines
1 KiB
GDScript
extends Node2D
|
|
|
|
#------------------------------------------
|
|
# Signaux
|
|
#------------------------------------------
|
|
|
|
#------------------------------------------
|
|
# Exports
|
|
#------------------------------------------
|
|
|
|
#------------------------------------------
|
|
# Variables publiques
|
|
#------------------------------------------
|
|
|
|
#------------------------------------------
|
|
# Variables privées
|
|
#------------------------------------------
|
|
|
|
#------------------------------------------
|
|
# Fonctions Godot redéfinies
|
|
#------------------------------------------
|
|
|
|
func _process(_delta:float) -> void:
|
|
if Input.is_action_just_released("ui_accept"):
|
|
var new_tree:Node2D = preload("res://examples/simple_ai_logic/env/tree.tscn").instantiate()
|
|
new_tree.global_position = get_global_mouse_position()
|
|
$Trees.add_child(new_tree)
|
|
|
|
#------------------------------------------
|
|
# Fonctions publiques
|
|
#------------------------------------------
|
|
|
|
#------------------------------------------
|
|
# Fonctions privées
|
|
#------------------------------------------
|
|
|