Compare commits
No commits in common. "e70e0052306b33db7a4f28a942bdc2d5262087d4" and "7cead8f3848dd50c3158b5aeaf5dbcd58dffd8c9" have entirely different histories.
e70e005230
...
7cead8f384
|
@ -15,6 +15,5 @@ func _ready():
|
||||||
|
|
||||||
func select_hover(node):
|
func select_hover(node):
|
||||||
game.selected_card = id
|
game.selected_card = id
|
||||||
game.selected_modifier = $Card.frame
|
|
||||||
$AudioCardSelect.play()
|
$AudioCardSelect.play()
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
extends Node
|
extends Node
|
||||||
|
|
||||||
var selected_card = null
|
var selected_card = null
|
||||||
var selected_modifier = 0
|
|
||||||
var difficulty = 0
|
var difficulty = 0
|
||||||
var last_diff = 0
|
var last_diff = 0
|
||||||
var mob_preloads = [
|
var mob_preloads = [
|
||||||
|
@ -13,17 +12,6 @@ var mob_preloads = [
|
||||||
var mob_timers = [.0, .0, .0, .0]
|
var mob_timers = [.0, .0, .0, .0]
|
||||||
var mob_threshold = [5, 7, 10, 7]
|
var mob_threshold = [5, 7, 10, 7]
|
||||||
|
|
||||||
var spells = [
|
|
||||||
"ricochet",
|
|
||||||
"big_magic",
|
|
||||||
"explode",
|
|
||||||
"fireball",
|
|
||||||
"freeze",
|
|
||||||
"poison",
|
|
||||||
"quick_magic",
|
|
||||||
"rapidfire",
|
|
||||||
]
|
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
Global.playing = true
|
Global.playing = true
|
||||||
Global.play_time = 55.0
|
Global.play_time = 55.0
|
||||||
|
@ -66,6 +54,5 @@ func _physics_process(delta):
|
||||||
|
|
||||||
func select_card():
|
func select_card():
|
||||||
if selected_card != null:
|
if selected_card != null:
|
||||||
$"../Center/SpellHolder".add_modifier(spells[selected_modifier])
|
|
||||||
Global.playing = true
|
Global.playing = true
|
||||||
$UIWrapper/UI/Cards.visible = false
|
$UIWrapper/UI/Cards.visible = false
|
||||||
|
|
Loading…
Reference in New Issue