Changeset 554:400f52d4279d for nagslang


Ignore:
Timestamp:
Sep 7, 2013, 8:03:00 PM (7 years ago)
Author:
Adrianna Pińska <adrianna.pinska@…>
Branch:
default
Message:

whitespace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/enemies.py

    r553 r554  
    304304        return [("name", "string"), ("position", "coordinates"),
    305305                ("attack_range", "distance")]
    306                
     306
    307307
    308308class Queen(RunAndGunAlien):
     
    316316    spawn_class = ChargingAlien
    317317    spawn_class_args = (200,)
    318    
     318
    319319    def __init__(self, space, world, position, attack_range=100):
    320320        super(Queen, self).__init__(space, world, position, attack_range)
    321321        self.add_timer('spawn', self.spawn_time)
    322        
     322
    323323    def spawn(self, result):
    324324        if not self.check_timer('spawn'):
    325325            self.start_timer('spawn', self.spawn_time)
    326326            for i in range(self.spawn_size):
    327                 result.add += (self.spawn_class(self.get_space(), 
    328                 self.world, self.physicser.position, 
     327                result.add += (self.spawn_class(self.get_space(),
     328                self.world, self.physicser.position,
    329329                *self.spawn_class_args),)
    330                
     330
    331331    def attack(self, result):
    332332        self.ranged_attack(300, ACID_SPEED, ACID_DAMAGE, 'acid', 1, result)
Note: See TracChangeset for help on using the changeset viewer.