mirror of
https://github.com/EDeev/pixel_gamble.git
synced 2026-06-15 11:01:03 +03:00
Delete tile.py
This commit is contained in:
parent
82c0587d6d
commit
5f49ecb3ab
1 changed files with 0 additions and 11 deletions
11
code/tile.py
11
code/tile.py
|
|
@ -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) # РАЗМЕР ХИТБОКСА
|
|
||||||
Loading…
Add table
Reference in a new issue