Return to repo list

heart-of-gold

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

commit 48468d775d2ea6733da8f819f0340f64a70f06ef
parent cb4e6dc17228c869da82218481edacf7a5d486c6
Author: Erik Letson <hmagellan@hmagellan.com>
Date:   Wed, 12 May 2021 16:11:10 -0500

spelling correction and remove unused method in game

Diffstat:
Msrc/base.py | 2+-
Msrc/game.py | 14--------------
2 files changed, 1 insertion(+), 15 deletions(-)

diff --git a/src/base.py b/src/base.py @@ -148,7 +148,7 @@ class BaseEntity(entity.Entity): # Section 3 - Various Base Mode UI Element Classes # #################################################### -class BasePauseButton(entity.Enttiy): +class BasePauseButton(entity.Entity): """ Parent class for the buttons that appear in the pause menu in base mode. diff --git a/src/game.py b/src/game.py @@ -104,20 +104,6 @@ class Game(object): self.scene_manager.load_still_scene_from_file(data) self.camera.load_camera_surface((SCREEN_WIDTH, SCREEN_HEIGHT)) - def lose_control(self, time = -1, followup_mode = None): - """ - Switch to no-control mode for a set period of time. If - time is a negative number, automatic followup will not - occur in the update loop, thus locking the game in - No_Control mode. - """ - if followup_mode != None: - self.return_control_mode = followup_mode - else: - self.return_control_mode = self.control_mode - self.control_mode = CTRL_MODES.No_Control - self.no_control_timer = time - def shift_frames(self): """ Shift to the next frame using the PyGame Clock object.