# -*- coding: utf-8 -*-
"""
Created on Fri May 28 17:22:40 2021

@author: betul
"""
import pygame
#Phone is used as our enemy
class Phone(pygame.sprite.Sprite):
	def __init__(self, x, y):
		pygame.sprite.Sprite.__init__(self)
		self.image = pygame.image.load('img/phone.png')
		self.rect = self.image.get_rect()
		self.rect.x = x
		self.rect.y = y
		self.move_direction = 1
		self.move_counter = 0

	def update(self):
		self.rect.x += self.move_direction
		self.move_counter += 1
		if abs(self.move_counter) > 3:
			self.move_direction *= -1
			self.move_counter *= -1
d25d02a233cf8e1f0bbdcce3fc5e229aa3ae82ce
<mask token>


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

<mask token>


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

    def update(self):
        self.rect.x += self.move_direction
        self.move_counter += 1
        if abs(self.move_counter) > 3:
            self.move_direction *= -1
            self.move_counter *= -1

<mask token>


class Phone(pygame.sprite.Sprite):

    def __init__(self, x, y):
        pygame.sprite.Sprite.__init__(self)
        self.image = pygame.image.load('img/phone.png')
        self.rect = self.image.get_rect()
        self.rect.x = x
        self.rect.y = y
        self.move_direction = 1
        self.move_counter = 0

    def update(self):
        self.rect.x += self.move_direction
        self.move_counter += 1
        if abs(self.move_counter) > 3:
            self.move_direction *= -1
            self.move_counter *= -1

<mask token>
import pygame


class Phone(pygame.sprite.Sprite):

    def __init__(self, x, y):
        pygame.sprite.Sprite.__init__(self)
        self.image = pygame.image.load('img/phone.png')
        self.rect = self.image.get_rect()
        self.rect.x = x
        self.rect.y = y
        self.move_direction = 1
        self.move_counter = 0

    def update(self):
        self.rect.x += self.move_direction
        self.move_counter += 1
        if abs(self.move_counter) > 3:
            self.move_direction *= -1
            self.move_counter *= -1

# -*- coding: utf-8 -*-
"""
Created on Fri May 28 17:22:40 2021

@author: betul
"""
import pygame
#Phone is used as our enemy
class Phone(pygame.sprite.Sprite):
	def __init__(self, x, y):
		pygame.sprite.Sprite.__init__(self)
		self.image = pygame.image.load('img/phone.png')
		self.rect = self.image.get_rect()
		self.rect.x = x
		self.rect.y = y
		self.move_direction = 1
		self.move_counter = 0

	def update(self):
		self.rect.x += self.move_direction
		self.move_counter += 1
		if abs(self.move_counter) > 3:
			self.move_direction *= -1
			self.move_counter *= -1