-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup incongruences between versions
- Loading branch information
Showing
4 changed files
with
33 additions
and
123 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,24 @@ | ||
extends Node | ||
|
||
var combat_arena = preload("res://combat/CombatArena.tscn").instance() | ||
<<<<<<< HEAD | ||
var local_map = preload("res://local_map/map.tscn").instance() | ||
var party = preload("res://Party.tscn").instance() | ||
======= | ||
>>>>>>> fa807e1... add local map and transition from it to combat | ||
|
||
onready var transition = $Overlays/TransitionColor | ||
onready var local_map = get_node("local_map") | ||
|
||
<<<<<<< HEAD | ||
|
||
|
||
func _ready(): | ||
#enter_battle("res://combat/battlers/formations/PorcupineFormation001.tscn") | ||
pass | ||
======= | ||
func _ready(): | ||
#enter_battle("res://combat/battlers/formations/PorcupineFormation001.tscn") | ||
#enter_battle() | ||
local_map.visible = true | ||
>>>>>>> fa807e1... add local map and transition from it to combat | ||
|
||
|
||
func enter_battle(formation_name : String): | ||
""" | ||
Plays the combat transition animation and initializes the combat scene | ||
""" | ||
remove_child(get_node("local_map")) | ||
add_child(combat_arena) | ||
yield(transition.fade_to_color(), "completed") | ||
<<<<<<< HEAD | ||
var formation: Formation = load(formation_name).instance() | ||
combat_arena.initialize(formation, party) | ||
======= | ||
local_map.visible = false | ||
add_child(combat_arena) | ||
>>>>>>> fa807e1... add local map and transition from it to combat | ||
yield(get_tree().create_timer(0.8), "timeout") | ||
combat_arena.initialize() | ||
combat_arena.initialize() | ||
yield(transition.fade_from_color(), "completed") | ||
combat_arena.battle_start() |
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
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
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