title of window now displays version

This commit is contained in:
Nick Dyer 2021-05-29 22:40:41 -04:00
parent 067b24b87c
commit 00d435f8d0
2 changed files with 4 additions and 4 deletions

View File

@ -93,8 +93,7 @@ def main():
# The following defines all of the options in the various different menus.
main_menu = Menu(
'Pocket Friends Dev Menu {0}\nGame Version {1}'.format(dev_version, pocket_friends.game_files.game.version))
main_menu = Menu('Pocket Friends Dev Menu')
main_menu.add_option(Menu.Option('Start Game', start_game))
main_menu.add_option(Menu.Option('Button Test', run_button_test))
main_menu.add_option(Menu.Option('Restart Dev Menu', quit_with_error))

View File

@ -5,10 +5,11 @@ from collections import deque
import importlib.util
import json
import os
from pathlib import Path
import pocket_friends
import pygame
from pygame.locals import *
from ..hardware.gpio_handler import Constants, GPIOHandler
from pathlib import Path
# FPS for the entire game to run at.
game_fps = 16
@ -140,7 +141,7 @@ def game():
surface = pygame.Surface((rendered_size, rendered_size))
# Only really useful for PCs. Does nothing on the Raspberry Pi.
pygame.display.set_caption('Pocket Friends')
pygame.display.set_caption('Pocket Friends {0}'.format(pocket_friends.__version__))
clock = pygame.time.Clock()