19 lines
604 B
GDScript
19 lines
604 B
GDScript
extends Node
|
|
|
|
@onready var canvas_layer: CanvasLayer = $"."
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready() -> void:
|
|
GameData.player_team.add_pokemon(PokemonInstance.create(Pokedex.get_pokemon("pikachu"), 5))
|
|
GameData.player_team.add_pokemon(PokemonInstance.create(Pokedex.get_pokemon("pikachu"), 15))
|
|
|
|
var pc := PCScreen.new()
|
|
canvas_layer.add_child(pc)
|
|
pc.setup(GameData.player_team, GameData.player_storage)
|
|
pc.closed.connect(pc.queue_free)
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta: float) -> void:
|
|
pass
|