Created
October 26, 2019 22:06
-
-
Save henriiquecampos/514bc810eac51604f391fa1c8fae576a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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