made screen size constant
This commit is contained in:
parent
1fef87e1c3
commit
6debf73267
@ -40,17 +40,17 @@ def game(windowed=False):
|
||||
# The game is normally rendered at 80 pixels and upscaled from there. If changing displays, change the
|
||||
# screen_size to reflect what the resolution of the new display is.
|
||||
|
||||
pygame.display.set_caption('Pocket Friends {0}'.format(pocket_friends.__version__))
|
||||
# Hide the cursor for the Pi display.
|
||||
pygame.mouse.set_visible(False)
|
||||
|
||||
if windowed:
|
||||
screen_size = 480
|
||||
else:
|
||||
screen_size = 240
|
||||
window = pygame.display.set_mode((screen_size, screen_size))
|
||||
#surface = surface_modules.get(starting_surface).Surface((game_res, game_res), resources_dir, game_fps)
|
||||
surface = pygame.Surface((game_res, game_res))
|
||||
surface.fill((255, 0, 0))
|
||||
|
||||
# Add an icon to the pygame window.
|
||||
pygame.display.set_caption('Pocket Friends {0}'.format(pocket_friends.__version__))
|
||||
icon = pygame.image.load(resources_dir + '/icon/icon.png').convert_alpha()
|
||||
pygame.display.set_icon(icon)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user