Skip to content

Instantly share code, notes, and snippets.

@henriiquecampos
Created October 26, 2019 22:06
Show Gist options
  • Save henriiquecampos/514bc810eac51604f391fa1c8fae576a to your computer and use it in GitHub Desktop.
Save henriiquecampos/514bc810eac51604f391fa1c8fae576a to your computer and use it in GitHub Desktop.
extends Node2D
var carta_ataque = 1
var carta_defesa = 2
func _ready():
sistema_de_ataque()
func sistema_de_ataque():
print($c1.ataque)
# if "$c" + str(carta_ataque) + ".ataque" == "$c" + str(carta_defesa) + ".defesa":
# print("CARTAS EMPATARAM")
# if "$c" + str(carta_ataque) + ".ataque" > "$c" + str(carta_defesa) + ".defesa":
# print("ATAQUE VENCEU")
# else:
# print("DEFESA VENCEU")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment