Example #1
0
    def __init__ (self, pos_init, world, tileid, player, bullet, Lchunk, global_DL):
        #self.world = world
        self.global_DL = global_DL
        self.Lchunk = Lchunk
        self.bullet = bullet
        self.player = player
        self.sangre_angle = randint(0,360)
        self.id_sangre = randint(51,58)
        self.tileid = tileid
        self.pos_init = pos_init
        #self.create_player()
        self.touch = False
        self.mode_normal = True
        self.world = world
        self.create_player()
        self.damage = 0.0
        if self.tileid == 16:

            self.arma = armas(randint(1,3), self.bullet, self.body, self.world, self.global_DL)
        else:
            self.arma = None
Example #2
0
    def __init__(self, pos_init, world, tileid, player, bullet, Lchunk,
                 global_DL):
        #self.world = world
        self.global_DL = global_DL
        self.Lchunk = Lchunk
        self.bullet = bullet
        self.player = player
        self.sangre_angle = randint(0, 360)
        self.id_sangre = randint(51, 58)
        self.tileid = tileid
        self.pos_init = pos_init
        #self.create_player()
        self.touch = False
        self.mode_normal = True
        self.world = world
        self.create_player()
        self.damage = 0.0
        if self.tileid == 16:

            self.arma = armas(randint(1, 3), self.bullet, self.body,
                              self.world, self.global_DL)
        else:
            self.arma = None
Example #3
0
 def create_player(self):
     pos = [self.pos_init[0],self.pos_init[1]]
     self.body = components(self.create_box(pos), self, 1, self.world,self.global_DL, False)
     self.arma = armas(3, self.bullet, self.body, self.world, self.global_DL)