title of window now displays version
This commit is contained in:
parent
067b24b87c
commit
00d435f8d0
@ -93,8 +93,7 @@ def main():
|
|||||||
|
|
||||||
# The following defines all of the options in the various different menus.
|
# The following defines all of the options in the various different menus.
|
||||||
|
|
||||||
main_menu = Menu(
|
main_menu = Menu('Pocket Friends Dev Menu')
|
||||||
'Pocket Friends Dev Menu {0}\nGame Version {1}'.format(dev_version, pocket_friends.game_files.game.version))
|
|
||||||
main_menu.add_option(Menu.Option('Start Game', start_game))
|
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('Button Test', run_button_test))
|
||||||
main_menu.add_option(Menu.Option('Restart Dev Menu', quit_with_error))
|
main_menu.add_option(Menu.Option('Restart Dev Menu', quit_with_error))
|
||||||
|
@ -5,10 +5,11 @@ from collections import deque
|
|||||||
import importlib.util
|
import importlib.util
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
from pathlib import Path
|
||||||
|
import pocket_friends
|
||||||
import pygame
|
import pygame
|
||||||
from pygame.locals import *
|
from pygame.locals import *
|
||||||
from ..hardware.gpio_handler import Constants, GPIOHandler
|
from ..hardware.gpio_handler import Constants, GPIOHandler
|
||||||
from pathlib import Path
|
|
||||||
|
|
||||||
# FPS for the entire game to run at.
|
# FPS for the entire game to run at.
|
||||||
game_fps = 16
|
game_fps = 16
|
||||||
@ -140,7 +141,7 @@ def game():
|
|||||||
surface = pygame.Surface((rendered_size, rendered_size))
|
surface = pygame.Surface((rendered_size, rendered_size))
|
||||||
|
|
||||||
# Only really useful for PCs. Does nothing on the Raspberry Pi.
|
# 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()
|
clock = pygame.time.Clock()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user