18 lines
302 B
GDScript3
18 lines
302 B
GDScript3
|
extends Node2D
|
||
|
|
||
|
# class member variables go here, for example:
|
||
|
# var a = 2
|
||
|
# var b = "textvar"
|
||
|
|
||
|
func _ready():
|
||
|
# Called every time the node is added to the scene.
|
||
|
# Initialization here
|
||
|
pass
|
||
|
|
||
|
func is_eatable():
|
||
|
return true
|
||
|
|
||
|
func eat(eater):
|
||
|
eater.turd_count += 1
|
||
|
eater.strength += 1
|
||
|
queue_free()
|