Delete tile.py

This commit is contained in:
Egor Deev 2022-03-02 17:12:04 +07:00 committed by GitHub
parent 82c0587d6d
commit 5f49ecb3ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,11 +0,0 @@
import pygame
from data import *
# КЛАСС ОТВЕЧАЕТ ЗА ОТРИСОВКУ ОДНОГО СПРАЙТА КАРТЫ В ВЫБРАННОЙ ПОЗИЦИИ
class Tile(pygame.sprite.Sprite):
def __init__(self, pos, groups):
super().__init__(groups)
self.image = pygame.image.load("../data/textures/earth/rock.png").convert_alpha() # ЗАГРУЗКА
self.rect = self.image.get_rect(topleft=pos) # ОТРИСОВКА
self.hitbox = self.rect.inflate(0, -10) # РАЗМЕР ХИТБОКСА