Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(100)  |  Call(25)  |  Derive(28)  |  Import(47)

src/h/a/HackathonF2011-HEAD/src/GameState.py   HackathonF2011(Download)
 
from State import State
from Actor import Actor
from Player import Player
from Vector2 import Vector2
	def __init__(self, main):
		# transition from another state
		State.__init__(self,main)
		self.loadPlayer()
		self.hud = Actor(IMG_HUD,-1)
		self.hud2 = Actor(IMG_HUD2)
		self.health = 7
		self.hudHearts = []
		self.hudHeartsHalf = Actor(IMG_HEART2,-1)
		self.hudSlot = [None]*3
		self.wl = WorldLoader('new.world')	
		self.background = TerrainLayer("0_0.map")
		self.currentMap = "0_0.map"
		for i in range(0,3):
			self.hudSlot[i] = Actor(IMG_SLOT,-1)

src/h/a/HackathonF2011-HEAD/src/TitleState.py   HackathonF2011(Download)
import util
import sys
from Actor import Actor
from pygame.locals import *
from GameState import GameState
	def __init__(self, main):
		# transition from another state
		State.__init__(self,main)
		self.titleScreen = Actor(IMG_TITLE_SCREEN)
		self.btnStart = Actor(IMG_LABEL_START)
		self.btnStart2 = Actor(IMG_LABEL_START2)

src/p/y/pythia-0.8.1.11/opal/inventory/__init__.py   pythia(Download)
def actor(**kwds):
    from Actor import Actor
    return Actor(**kwds)
 
 

src/p/y/pythia-0.8.1.11/opal/components/Registrar.py   pythia(Download)
 
 
from Actor import Actor
 
 
class Registrar(Actor):

src/p/y/pythia-0.8.1.11/opal/components/GenericActor.py   pythia(Download)
 
 
from Actor import Actor
 
 
class GenericActor(Actor):

src/f/o/fortunehunter-HEAD/MAFH2/Hero.py   fortunehunter(Download)
from Actor import Actor
from Items import get_item
 
#########################################################################
#Hero class - represents the player in battle and holds all of their data
#########################################################################
class Hero(Actor):

src/f/o/fortunehunter-HEAD/MAFH2/Enemy.py   fortunehunter(Download)
 
import pygame
from Actor import Actor
from Spritesheet import Spritesheet
ENEMY = {
class Enemy(Actor):
    def __init__(self, id):
        Actor.__init__(self)
        #id = 'a'
        self.weakness=None

src/f/o/fortunehunter-HEAD/MAFH.activity/Hero.py   fortunehunter(Download)
from Actor import Actor
from Items import get_item
 
#######################################################################
#Hero class - represents the player in battle and holds all of their data
##########################################################################
class Hero(Actor):

src/f/o/fortunehunter-HEAD/MAFH.activity/Enemy.py   fortunehunter(Download)
 
import pygame
from Actor import Actor
ENEMY = {
    '1':{'name':_('Wizard Adept'),'img':"concept_wizard.gif",'hp':20,'att':2,'weak':'special'},
class Enemy(Actor):
    def __init__(self, id):
        Actor.__init__(self)
 
        self.weakness=None

src/u/l/UlDunAd-HEAD/src/Enemy.py   UlDunAd(Download)
from Texture import *
import os
from Actor import Actor
 
import random
 
from Command import *
 
class Enemy(Actor):

  1 | 2 | 3  Next