import pygame, random, math

class Tick(pygame.sprite.Sprite):

    image = None

    def __init__(self):
        pygame.sprite.Sprite.__init__(self)

        if Tick.image is None:
            Tick.image = pygame.image.load("tick.png")
        self.image = Tick.image
        self.x = random.randint(0,24)
        self.y = 0
    
        self.rect = self.image.get_rect()
        self.rect.topleft = (self.x*25, self.y*25)
        
    def move(self,game_map):
       
        r = random.randint(0,2)
        self.y +=1
        self.rect.topleft = (self.x*25, self.y*25)

        if self.y == 27:
            return
        if r == 1 and self.y <26:
            game_map[self.y][self.x] = 1
        
            
    def dead(self):

        self.y = 100
        self.rect.topleft = (self.x*25, self.y*25)

        
    def offscreen(self):
        if self.y >28:
            return True
        else:
            return False

f6c4acb3448ed1acec8bbb601225b99babef7f4b
<mask token>


class Tick(pygame.sprite.Sprite):
    <mask token>

    def __init__(self):
        pygame.sprite.Sprite.__init__(self)
        if Tick.image is None:
            Tick.image = pygame.image.load('tick.png')
        self.image = Tick.image
        self.x = random.randint(0, 24)
        self.y = 0
        self.rect = self.image.get_rect()
        self.rect.topleft = self.x * 25, self.y * 25
    <mask token>

    def dead(self):
        self.y = 100
        self.rect.topleft = self.x * 25, self.y * 25

    def offscreen(self):
        if self.y > 28:
            return True
        else:
            return False

<mask token>


class Tick(pygame.sprite.Sprite):
    <mask token>

    def __init__(self):
        pygame.sprite.Sprite.__init__(self)
        if Tick.image is None:
            Tick.image = pygame.image.load('tick.png')
        self.image = Tick.image
        self.x = random.randint(0, 24)
        self.y = 0
        self.rect = self.image.get_rect()
        self.rect.topleft = self.x * 25, self.y * 25

    def move(self, game_map):
        r = random.randint(0, 2)
        self.y += 1
        self.rect.topleft = self.x * 25, self.y * 25
        if self.y == 27:
            return
        if r == 1 and self.y < 26:
            game_map[self.y][self.x] = 1

    def dead(self):
        self.y = 100
        self.rect.topleft = self.x * 25, self.y * 25

    def offscreen(self):
        if self.y > 28:
            return True
        else:
            return False

<mask token>


class Tick(pygame.sprite.Sprite):
    image = None

    def __init__(self):
        pygame.sprite.Sprite.__init__(self)
        if Tick.image is None:
            Tick.image = pygame.image.load('tick.png')
        self.image = Tick.image
        self.x = random.randint(0, 24)
        self.y = 0
        self.rect = self.image.get_rect()
        self.rect.topleft = self.x * 25, self.y * 25

    def move(self, game_map):
        r = random.randint(0, 2)
        self.y += 1
        self.rect.topleft = self.x * 25, self.y * 25
        if self.y == 27:
            return
        if r == 1 and self.y < 26:
            game_map[self.y][self.x] = 1

    def dead(self):
        self.y = 100
        self.rect.topleft = self.x * 25, self.y * 25

    def offscreen(self):
        if self.y > 28:
            return True
        else:
            return False

import pygame, random, math


class Tick(pygame.sprite.Sprite):
    image = None

    def __init__(self):
        pygame.sprite.Sprite.__init__(self)
        if Tick.image is None:
            Tick.image = pygame.image.load('tick.png')
        self.image = Tick.image
        self.x = random.randint(0, 24)
        self.y = 0
        self.rect = self.image.get_rect()
        self.rect.topleft = self.x * 25, self.y * 25

    def move(self, game_map):
        r = random.randint(0, 2)
        self.y += 1
        self.rect.topleft = self.x * 25, self.y * 25
        if self.y == 27:
            return
        if r == 1 and self.y < 26:
            game_map[self.y][self.x] = 1

    def dead(self):
        self.y = 100
        self.rect.topleft = self.x * 25, self.y * 25

    def offscreen(self):
        if self.y > 28:
            return True
        else:
            return False

import pygame, random, math

class Tick(pygame.sprite.Sprite):

    image = None

    def __init__(self):
        pygame.sprite.Sprite.__init__(self)

        if Tick.image is None:
            Tick.image = pygame.image.load("tick.png")
        self.image = Tick.image
        self.x = random.randint(0,24)
        self.y = 0
    
        self.rect = self.image.get_rect()
        self.rect.topleft = (self.x*25, self.y*25)
        
    def move(self,game_map):
       
        r = random.randint(0,2)
        self.y +=1
        self.rect.topleft = (self.x*25, self.y*25)

        if self.y == 27:
            return
        if r == 1 and self.y <26:
            game_map[self.y][self.x] = 1
        
            
    def dead(self):

        self.y = 100
        self.rect.topleft = (self.x*25, self.y*25)

        
    def offscreen(self):
        if self.y >28:
            return True
        else:
            return False
