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

All Samples(51)  |  Call(0)  |  Derive(43)  |  Import(8)

src/p/y/pygame-fenix-HEAD/examples/invaders/invaders.py   pygame-fenix(Download)
"""
from fenix.program import Program
from fenix.process import Process 
from pygame.locals import *
from fenix.locals import *
 
 
class Game(Process):
class Player(Process):
	""" The player object simply takes input and reacts accordingly. """
	def begin(self, game):
		self.x, self.y = 400, 500
		self.graph = game.g_player
class Enemy(Process):
	""" The basic enemy process """
	def begin(self, game, x):
		self.x = x
		self.y = 150
class Bullet(Process):
	""" Bullets move up and collide with any enemy. """
	def begin(self, game, player):
		self.x, self.y = player.x, player.y
		self.graph = game.g_bullet

src/p/y/pygame-fenix-HEAD/examples/process_interaction.py   pygame-fenix(Download)
 
from fenix.program import Program
from fenix.process import Process
 
 
class Game(Process):
class Guy(Process):
    """ Our player process """
    def begin(self, x, y):
 
        # Initialise some things
class Other_guy(Process):
    """ The process we'll be comparing with """
    def begin(self, x, y):
 
        # Initialise some things

src/p/y/pygame-fenix-HEAD/examples/size_angle_alpha.py   pygame-fenix(Download)
 
from fenix.program import Program
from fenix.process import Process
 
 
class Game(Process):
class Box(Process):
    """ Little box rotatey thing """
    def begin(self):
 
        # Initialise some things

src/p/y/pygame-fenix-HEAD/examples/basic2.py   pygame-fenix(Download)
 
from fenix.program import Program
from fenix.process import Process
 
 
class Game(Process):
class Guy(Process):
    """ Our player process """
    def begin(self, x, y):
 
        # Initialise some things

src/p/y/pygame-fenix-HEAD/examples/basic.py   pygame-fenix(Download)
 
from fenix.program import Program
from fenix.process import Process
 
 
class Game(Process):
class Guy(Process):
    """ Our player process """
    def begin(self):
 
        # Initialise some things

src/p/y/pygame-fenix-HEAD/examples/text.py   pygame-fenix(Download)
 
from fenix.program import Program
from fenix.process import Process
from fenix.locals import *
 
 
class Game(Process):

src/s/c/scavenger-HEAD/main.py   scavenger(Download)
from fenix.locals import *
from fenix.program import Program
from fenix.process import Process
 
from consts import *
class Game(Process):
 
	media = None
	text_fps = None
 
class Title_screen(Process):
 
	wait = 0
	phase = 0
 
class Tutorial_message2(Process):			
	def begin(self, game):
		self.graph = game.media.gfx_tutorial_messages[2]
		self.x = 600
		self.y = 190
class Tutorial_message3(Process):			
	def begin(self, game):
		self.graph = game.media.gfx_tutorial_messages[3]
		self.x = 200
		self.y = 230

src/s/c/scavenger-HEAD/particles.py   scavenger(Download)
 
from fenix.program import Program
from fenix.process import Process
from fenix.locals import *
 
class Particles(Process):
 
	draw_layer = None
	persist_layer = None
	particles = []