I pressed the down arrow and then shot. the game crashed. Log below:
BAD DIRECTION
Traceback (most recent call last):
File "C:\Users\Chris Spooner\Documents\Game Programming\GammaRay\Game.py", line 70, in
chars += [player.shoot()]
File "C:\Users\Chris Spooner\Documents\Game Programming\GammaRay\Player.py", line 124, in shoot
return Laser(self.lastdir, [-25,0], [self.rect.centerx-50,self.rect.centery])
File "C:\Users\Chris Spooner\Documents\Game Programming\GammaRay\Laser.py", line 34, in init
self.rad = (self.rect.height/2 + self.rect.width/2)/2
AttributeError: 'Laser' object has no attribute 'rect'
I pressed the down arrow and then shot. the game crashed. Log below:
BAD DIRECTION Traceback (most recent call last): File "C:\Users\Chris Spooner\Documents\Game Programming\GammaRay\Game.py", line 70, in
chars += [player.shoot()]
File "C:\Users\Chris Spooner\Documents\Game Programming\GammaRay\Player.py", line 124, in shoot
return Laser(self.lastdir, [-25,0], [self.rect.centerx-50,self.rect.centery])
File "C:\Users\Chris Spooner\Documents\Game Programming\GammaRay\Laser.py", line 34, in init
self.rad = (self.rect.height/2 + self.rect.width/2)/2
AttributeError: 'Laser' object has no attribute 'rect'
Version pulled on 5/3/2022 at 10:15am