2014-02-23 00:28:19 +01:00
|
|
|
|
|
|
|
extends Node2D
|
|
|
|
|
2014-09-06 06:42:59 +02:00
|
|
|
#member variables here, example:
|
|
|
|
#var a=2
|
|
|
|
#var b="textvar"
|
2014-02-23 00:28:19 +01:00
|
|
|
|
|
|
|
func _ready():
|
2014-09-06 06:42:59 +02:00
|
|
|
#Initalization here
|
2014-02-23 00:28:19 +01:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func _on_princess_body_enter( body ):
|
|
|
|
#the name of this editor-generated callback is unfortunate
|
2015-04-20 01:50:55 +02:00
|
|
|
if (body.get_name()=="player"):
|
|
|
|
get_node("youwin").show()
|