Return to repo list

heart-of-gold

Tactical RPG written in python, using pygame.
Return to HMagellan.com

commit e099989e6e2f07494e18cc8004328cd5b43e1aa8
parent d2188deb7890a246879e3b04267679748c1131e9
Author: Erik Letson <hmagellan@hmagellan.com>
Date:   Tue, 29 Dec 2020 16:08:15 -0600

Added intro graphic

Diffstat:
Msrc/turn.py | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/turn.py b/src/turn.py @@ -79,7 +79,7 @@ class TurnManager(manager.Manager): nab.set_position(((SCREEN_WIDTH // 8), (SCREEN_HEIGHT // 10) + (((SCREEN_HEIGHT // 14) - 4)) * b)) self.action_buttons.append(nab) self.shift_turns() - self.intro_timer = 300 + self.intro_timer = 70 self.intro_left_decal = sheets["battle_intro_decal_1"].sprites[(0, 0)] self.intro_left_decal_topleft = (-1920, 460) self.intro_right_decal = sheets["battle_intro_decal_1"].sprites[(0, 1)] @@ -217,9 +217,9 @@ class TurnManager(manager.Manager): """ if self.intro_timer > 0: self.intro_timer -= 1 - if self.intro_timer > 100: - self.left_intro_decal_topleft = (self.left_intro_decal_topleft[0] + 7, self.left_intro_decal_topleft[1]) - self.right_intro_decal_topleft = (self.right_intro_decal_topleft[0] - 7, self.right_intro_decal_topleft[1]) + if self.intro_timer > 36: + self.intro_left_decal_topleft = (self.intro_left_decal_topleft[0] + 40, self.intro_left_decal_topleft[1]) + self.intro_right_decal_topleft = (self.intro_right_decal_topleft[0] - 40, self.intro_right_decal_topleft[1]) else: self.game.control_mode = CTRL_MODES.Turn_Normal @@ -327,8 +327,8 @@ class TurnManager(manager.Manager): self.stat_screen.update(surface) elif self.game.control_mode == CTRL_MODES.Battle_Intro: self.play_battle_intro() - surface.blit(self.left_intro_decal, self.left_intro_decal_topleft) - surface.blit(self.right_intro_decal, self.right_intro_decal_topleft) + surface.blit(self.intro_left_decal, self.intro_left_decal_topleft) + surface.blit(self.intro_right_decal, self.intro_right_decal_topleft) ############################# # Section 2 - Turn Entities #