Mercurial > nagslang
comparison nagslang/game_object.py @ 332:ffefb93127c5
laser gun
author | Adrianna Pińska <adrianna.pinska@gmail.com> |
---|---|
date | Fri, 06 Sep 2013 03:10:04 +0200 |
parents | 5030ef2718ae |
children | 3dd32686dbc3 |
comparison
equal
deleted
inserted
replaced
331:5030ef2718ae | 332:ffefb93127c5 |
---|---|
407 def __init__(self, space, position): | 407 def __init__(self, space, position): |
408 body = make_body(None, None, position) | 408 body = make_body(None, None, position) |
409 self.shape = pymunk.Circle(body, 20) | 409 self.shape = pymunk.Circle(body, 20) |
410 super(Gun, self).__init__( | 410 super(Gun, self).__init__( |
411 space, 'gun', self.shape, | 411 space, 'gun', self.shape, |
412 render.ImageRenderer(resources.get_image('objects', 'bullet.png')), | 412 render.ImageRenderer(resources.get_image('objects', 'gun.png')), |
413 ) | 413 ) |
414 | 414 |
415 | 415 |
416 class ClawAttack(GameObject): | 416 class ClawAttack(GameObject): |
417 def __init__(self, space, position, vector, source_collision_type): | 417 def __init__(self, space, position, vector, source_collision_type): |