import pygame
from random import randint, choice
from GameObject import GameObject
from constants import lanes

# ----------------------------------------------
# Apple
class Apple(GameObject):
  def __init__(self):
    super(Apple, self).__init__(0, 0, 'images/apple.png')
    self.dx = 0
    self.dy = (randint(0, 200) / 100) + 1
    self.reset()

  def move(self):
    super.move
    if self.y > 500:
      self.reset()

  def reset(self):
    self.x = choice(lanes)
    self.y = -64

import pygame
from random import randint, choice
from GameObject import GameObject
from constants import lanes

# ----------------------------------------------
# Apple
class Apple(GameObject):
  def __init__(self):
    super(Apple, self).__init__(0, 0, 'images/apple.png')
    self.dx = 0
    self.dy = (randint(0, 200) / 100) + 1
    self.reset()

  def move(self):
    super.move
    if self.y > 500:
      self.reset()

  def reset(self):
    self.x = choice(lanes)
    self.y = -64

# ---------------------------------------------- # Apple