summaryrefslogtreecommitdiff
path: root/game/battle.rpy
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-08-16 10:02:39 -0300
committerJesusaves <cpntb1@ymail.com>2021-08-16 10:02:39 -0300
commit8ebf5750decf897810c9ee162ab2d46511ee7b88 (patch)
tree0a3e40cc0d6d490335cfaba1ec32d53732e3e6c4 /game/battle.rpy
parente4196a25099b8d033ad3c0b12dba478886d512cc (diff)
downloadclient-8ebf5750decf897810c9ee162ab2d46511ee7b88.tar.gz
client-8ebf5750decf897810c9ee162ab2d46511ee7b88.tar.bz2
client-8ebf5750decf897810c9ee162ab2d46511ee7b88.tar.xz
client-8ebf5750decf897810c9ee162ab2d46511ee7b88.zip
It looks fugly, but animate actions from the party and enemy members
Diffstat (limited to 'game/battle.rpy')
-rw-r--r--game/battle.rpy31
1 files changed, 31 insertions, 0 deletions
diff --git a/game/battle.rpy b/game/battle.rpy
index 4be9dd5..3d13134 100644
--- a/game/battle.rpy
+++ b/game/battle.rpy
@@ -27,7 +27,35 @@ init python:
return ERR_JSONDECODER
return bt
+ def bt_anim(e0, e1, st):
+ global czoom_p1, czoom_p2, czoom_p3, czoom_p4
+ global czoom_e1, czoom_e2, czoom_e3
+ if e0 == "party":
+ if e1 == 0:
+ czoom_p1 = copy.copy(st)
+ elif e1 == 1:
+ czoom_p2 = copy.copy(st)
+ elif e1 == 2:
+ czoom_p3 = copy.copy(st)
+ elif e1 == 3:
+ czoom_p4 = copy.copy(st)
+ else:
+ stdout("Invalid party source: %d" % e1)
+ elif entry[0] == "enemy":
+ if e1 == 0:
+ czoom_e1 = copy.copy(st)
+ elif e1 == 1:
+ czoom_e2 = copy.copy(st)
+ elif e1 == 2:
+ czoom_e3 = copy.copy(st)
+ else:
+ stdout("Invalid enemy source: %d" % e1)
+
def bt_handlelog(entry):
+ ## Animate action caster
+ bt_anim(entry[0], entry[1], czoom_on)
+
+ ## Execute actions
if entry[2] in [SPH_NONE, SPH_PIERCE, SPH_ASSAULT, SPH_HEAL]:
## Play audio (WIP)
## FIXME: Play -2 versions as well, randomly
@@ -52,6 +80,9 @@ init python:
renpy.pause(2.0)
renpy.hide("summon", layer="overlay")
#renpy.with_statement(Dissolve(1.0))
+
+ ## De-Animate action caster
+ bt_anim(entry[0], entry[1], czoom_dd)
return
label combat: