Exemplo n.º 1
0
	def __init__(self, layer, vel_x, vel_y):
		TextEntity.__init__(self, None, layer, char = '*')
		#self.setPos(self.pos_x, s.pos_y)
		self.vel_x = vel_x
		self.vel_y = vel_y
		self.visible = True
		self.liveTimer = Timer()
		self.liveTimer.start()
		self.name = 'Fuzzie'
Exemplo n.º 2
0
 def __init__(self, layer, vel_x, vel_y):
     TextEntity.__init__(self, None, layer, char='*')
     #self.setPos(self.pos_x, s.pos_y)
     self.vel_x = vel_x
     self.vel_y = vel_y
     self.visible = True
     self.liveTimer = Timer()
     self.liveTimer.start()
     self.name = 'Fuzzie'
Exemplo n.º 3
0
	def __init__(self, owner, layer, vel_x, vel_y):
		TextEntity.__init__(self, owner, layer, char = '+')
		self.setPos(owner.pos_x, owner.pos_y)
		self.setOldPos(owner.pos_x, owner.pos_y)
		self.resistance_x = 0
		self.resistance_y = 0
		self.vel_x = vel_x
		self.vel_y = vel_y
		self.visible = True
		self.liveTimer = Timer()
		self.liveTimer.start()
		self.name = 'Bullet'
Exemplo n.º 4
0
 def __init__(self, owner, layer, vel_x, vel_y):
     TextEntity.__init__(self, owner, layer, char='+')
     self.setPos(owner.pos_x, owner.pos_y)
     self.setOldPos(owner.pos_x, owner.pos_y)
     self.resistance_x = 0
     self.resistance_y = 0
     self.vel_x = vel_x
     self.vel_y = vel_y
     self.visible = True
     self.liveTimer = Timer()
     self.liveTimer.start()
     self.name = 'Bullet'
Exemplo n.º 5
0
	def __init__(self):
		TextEntity.__init__(self, self, 0)
		self.rateOfFire = 250
		self.shooting = False
		self.shootingTime = Timer().start()
		self.fire_x = 0
		self.fire_y = 0
		self.fire_vel = 50
		self.name = 'Player'

		self.moveRate = 50
		self.moving = False
		self.moveTime = Timer().start()
		self.move_vel = 7

		self.vel_y_max = 10
		self.vel_x_max = 10
		self.resistance_x = 35.0
		self.resistance_y = 35.0

		self.levelMax = 20
		self.levelCur = 0 
		self.levelFuzzieEx = 5 #Chance of a fuzzie spawning during the time (20% chance)
Exemplo n.º 6
0
    def __init__(self):
        TextEntity.__init__(self, self, 0)
        self.rateOfFire = 250
        self.shooting = False
        self.shootingTime = Timer().start()
        self.fire_x = 0
        self.fire_y = 0
        self.fire_vel = 50
        self.name = 'Player'

        self.moveRate = 50
        self.moving = False
        self.moveTime = Timer().start()
        self.move_vel = 7

        self.vel_y_max = 10
        self.vel_x_max = 10
        self.resistance_x = 35.0
        self.resistance_y = 35.0

        self.levelMax = 20
        self.levelCur = 0
        self.levelFuzzieEx = 5  #Chance of a fuzzie spawning during the time (20% chance)