Return to repo list

heart-of-gold

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

commit 129e2ac273da8bb62cfd8f51bafeb6b263d4e222
parent b91d511cc86d48e5c2a1750ce355c7fce93c20d7
Author: Erik Letson <hmagellan@hmagellan.com>
Date:   Sat, 14 Nov 2020 23:47:07 -0600

Camera now snapping correctly

Diffstat:
Msrc/camera.py | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/camera.py b/src/camera.py @@ -74,8 +74,7 @@ class GameCamera(subsystem.GameSubsystem): appears centered to that position in relation to the game screen. """ - # TODO: Work here - self.camera_surface_offset = position + self.camera_surface_offset = ((SCREEN_WIDTH / 2) - position[0], (SCREEN_HEIGHT / 2) - position[1]) def update_camera(self, surface = None): """