Beispiel #1
0
 def loadResouce(self, imagePath):
     self.imageObj = pygame.image.load(getFilePath(imagePath))
Beispiel #2
0
 def loadResouce(self):
     self.arrowImgRight = pygame.image.load(getFilePath("arrow.png"))
Beispiel #3
0
 def loadResouce(self, imagePath):
     self.imageObj = pygame.image.load(getFilePath(imagePath))
Beispiel #4
0
 def loadResource(self):
     self.headMark = pygame.image.load(getFilePath("separators.png"))
Beispiel #5
0
# -*- coding: utf-8 -*
# Filename: settings.py

__author__ = 'Piratf'

from util import getFilePath
import pygame

UNDEFINED = -1
WINDOW_WIDTH = 400
WINDOW_HEIGHT = 600

# 字体
pygame.font.init()
FONT_CINDY_AFTERNOON25 = pygame.font.Font(getFilePath("CindyAfternoonTea.ttf"), 25)
FONT_KQ25 = pygame.font.Font(getFilePath("Mf_Kings_Queens.ttf"), 25)
FONT_SYS_NONE = pygame.font.SysFont("simhei", 25)
FONT_CHILD30 = pygame.font.Font(getFilePath("Child.ttf"), 30)
FONT_CHILD20 = pygame.font.Font(getFilePath("Child.ttf"), 20)

# 主菜单
MENU_TEXTS = [u"发起新游戏", u"匹配", u"游戏规则", u"退出"]
MENU_FONTS = FONT_CINDY_AFTERNOON25

# set 实现的 枚举类型
class Enum(set):
    def __getattr__(self, name):
        if name in self:
            return name
        raise AttributeError
Beispiel #6
0
 def loadResouce(self):
     self.arrowImgRight = pygame.image.load(getFilePath("arrow.png"))