<filename>Game/duckhunt/game/gun.py
import os, sys
import pygame

class Gun(object):
    def __init__(self, registry):
        self.registry = registry
        self.rounds = 3
        self.mousePos = (0,0) # Starting postion
        self.mouseImg = pygame.image.load(os.path.join('media', 'crosshairs.png'))

    def render(self):
        surface = self.registry.get('surface')
        #surface.blit(self.mouseImg, self.mousePos)

    def reloadIt(self):
        self.rounds = 3

    def moveCrossHairs(self, pos):
        xOffset = self.mouseImg.get_width() / 2
        yOffset = self.mouseImg.get_height() / 2
        x, y = pos
        self.mousePos = (x - xOffset), (y - yOffset)

    def shoot(self):
        if self.rounds <= 0:
            return False

        self.registry.get('soundHandler').enqueue('blast')
        self.rounds = self.rounds - 1
        return True

<filename>Game/duckhunt/game/gun.py
import os, sys
import pygame

class Gun(object):
    def __init__(self, registry):
        self.registry = registry
        self.rounds = 3
        self.mousePos = (0,0) # Starting postion
        self.mouseImg = pygame.image.load(os.path.join('media', 'crosshairs.png'))

    def render(self):
        surface = self.registry.get('surface')
        #surface.blit(self.mouseImg, self.mousePos)

    def reloadIt(self):
        self.rounds = 3

    def moveCrossHairs(self, pos):
        xOffset = self.mouseImg.get_width() / 2
        yOffset = self.mouseImg.get_height() / 2
        x, y = pos
        self.mousePos = (x - xOffset), (y - yOffset)

    def shoot(self):
        if self.rounds <= 0:
            return False

        self.registry.get('soundHandler').enqueue('blast')
        self.rounds = self.rounds - 1
        return True

# Starting postion #surface.blit(self.mouseImg, self.mousePos)