#-*- coding: UTF-8 -*- import pygame import os import sys import random from flyingObject import FlyingObject from award import Award class Bee(FlyingObject,Award): def __init__(self,screen,image): x = random.randint(0,screen.get_rect()[2]-60) y = -50 super(Bee,self).__init__(screen,x,y,image) self.awardType = random.randint(0,1) self.index = True def outOfBounds(self): return self.y < 715 def step(self): if self.x + self.width > 480: self.x += 3 else: self.x -= 3 self.y += 3 def getType(self): return self.awardType