Changeset 153


Ignore:
Timestamp:
03/03/2012 01:55:52 PM (3 years ago)
Author:
jelinson
Message:

polished dimensions

Location:
src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/dimensions.py

    r72 r153  
    11'''
    22Created on Feb 10, 2012
     3
    34Store dimension constants
    45
     
    67'''
    78
    8 ICON_SIZE = 80
    9 MENU_H = 680
    10 MENU_W = 500
     9# image sizes
     10IMG_SM = 40
     11IMG_MED = 80
     12ICON_SIZE = IMG_MED
    1113
     14# main menu
    1215MAIN_MENU_H = 500
    1316MAIN_MENU_W = 300
    1417MAIN_SHIFT = 80
    1518
     19# game menu
     20GAME_MENU_H = 680
     21GAME_MENU_W = 500
    1622
    17 # for stat window
    18 STAT_SHIFT = 75
    19 STAT_ICON_SIZE = 40
     23# menu entry
     24ENTRY_H = 100
     25ENTRY_W = 460
     26ENTRY_SHIFT = 120
     27
     28# stat window
    2029STAT_H = 300
    2130STAT_W = 400
     31STAT_SHIFT = 75
     32STAT_ICON_SIZE = IMG_SM
    2233
    23 # for image sizes
    24 IMG_SM = 40
    25 IMG_MED = 80
    26 
    27 # for creating the menu
    28 ENTRY_SHIFT = 120
    29 ENTRY_W = 460
    30 ENTRY_H = 100
    31 
    32 BUTTON_SHIFT = 169
     34# buttons
    3335BUTTON_H = 50
    3436BUTTON_W = 160
    3537BUTTON_TEXT = 29
     38BUTTON_SHIFT = 169
    3639
     40# map
    3741MAP_H = 100
    3842MAP_W = 100
    3943
     44# screen dimension
     45ORIG_SCREEN_H = 792
     46ORIG_SCREEN_W = 1080
     47
     48# global variables as the screen changes sizes
     49global SCREEN_H
    4050global SCREEN_W
     51SCREEN_H = 600
    4152SCREEN_W = 1080
    42 global SCREEN_H
    43 #SCREEN_H = 792
    44 # Erin's Computer
    45 SCREEN_H = 600
    46 #SCREEN_W = 1366
    47 #SCREEN_H = 768
    4853
    49 ORIG_SCREEN_W = 1080
    50 ORIG_SCREEN_H = 792
  • src/pygame2exe.py

    r60 r153  
    5656 
    5757        #Version of program
    58         self.project_version = "0.1"
     58        self.project_version = "3.1"
    5959 
    6060        #License of the program
     
    6767 
    6868        #Description
    69         self.project_description = "TechTrek Prototype"
     69        self.project_description = "TechTrek Alpha Release"
    7070 
    7171        #Icon file (None will use pygame default icon)
  • src/turnMenu.py

    r150 r153  
    3636        buildIcon.addImage(Image((120,10),40,40,buildArt))
    3737        buildIcon.addImage(Image((345,10),40,40,buildArt))
    38         buildIcon.addRectangle(Rectangle((0,0),MENU_W,MENU_H,BLUE))
    39         buildIcon.addText(Text((0,17),typesLUT[researchType].upper(),42,WHITE,MENU_W,True,0))
     38        buildIcon.addRectangle(Rectangle((0,0),GAME_MENU_W,GAME_MENU_H,BLUE))
     39        buildIcon.addText(Text((0,17),typesLUT[researchType].upper(),42,WHITE,GAME_MENU_W,True,0))
    4040        buildMenu.addEntry(buildIcon)
    4141        buildables = self.calculateBuildables(state)
     
    107107       
    108108    def decrementSpinner(self):
    109         """
     109        """
    110110            decrements the spinner and returns an updated window
    111111           
Note: See TracChangeset for help on using the changeset viewer.