Beispiel #1
0
    def __init__(self, pos, ang):
        Robot.nrobots += 1
        filename = 'r{0:02d}.png'.format(Robot.nrobots)
        steps = 360
        RotatedImage.__init__(self, filename=filename, steps=steps)
        if size != 30:
            self.stretch(size=(size, size))

        self.turr = Turret(pos, 0)

        self.setpos(pos)
        self.set_rotation(ang)
Beispiel #2
0
    def __init__(self, pos, ang):
        Tank.ntanks += 1
        filename = 't{0:02d}.png'.format(Tank.ntanks)
        steps = 360
        RotatedImage.__init__(self, filename=filename, steps=steps)
        if size != 30:
            self.stretch(size=(size, size))

        self.turr = Turret(pos, 0)

        self.setpos(pos)
        self.set_rotation(ang)
Beispiel #3
0
 def __init__(self, pos, ang):
     filename = 'turret.png'
     steps = 360
     RotatedImage.__init__(self, filename=filename, steps=steps)
Beispiel #4
0
 def kill(self):
     self.turr.kill()
     RotatedImage.kill(self)
Beispiel #5
0
 def __init__(self, pos, ang):
     filename = 'turret.png'
     steps = 360
     RotatedImage.__init__(self, filename=filename, steps=steps)
Beispiel #6
0
 def kill(self):
     self.turr.kill()
     RotatedImage.kill(self)