Code Search for Developers
 
 
  

summaryscreen.py from Thousand Parsec at Krugle


Show summaryscreen.py syntax highlighted

import pygame, states, math, numeric, utility, constants, weapons

from ocempgui.object import BaseObject

class SummaryScreen (BaseObject, pygame.sprite.Sprite):
    font = None
    
    def __init__ (self, manager, font_path='./fonts/'):
        BaseObject.__init__(self)
        pygame.sprite.Sprite.__init__(self)
        
        if SummaryScreen.font == None:
            # Bitstream Vera Sans Mono
            SummaryScreen.font = pygame.font.Font(font_path+'VeraMoBd.ttf', 12)
            
        # Basically a duplication of damage animation - damage animation should probably be derived from this
        self.manager = manager
        
    def update (self, ticks):
        pass





See more files for this project here

Thousand Parsec

Thousand Parsec is a framework for turn based 4 X\'s game (eXplore, eXpand, eXploit, eXterminate). Designed for long games, supporting massive universes and has an easily expanded tech tree.

Project homepage: http://sourceforge.net/projects/thousandparsec
Programming language(s): C++,Python
License: other

  __init__.py
  basicentity.py
  damageanimation.py
  laserblast.py
  message.py
  summaryscreen.py