| 123456789101112131415161718192021222324252627 |
- #-*- coding: UTF-8 -*-
- import pygame
- import tkinter
- import os
- import sys
- import random
- from flyingObject import FlyingObject
- from enemy import Enemy
- class Airplane(FlyingObject,Enemy):
- def __init__(self,screen,image):
- x = random.randint(0,screen,image)
- y = -40
- super(Airplane,self).__init__(screen,x,y,image)
- def getScore(self):
- return 5
- def outOfBounds(self):
- return self.y < 715
- def step(self):
- self.y += 3
-
-
|