(sprito.py) Space char is no longer hardcoded to transparency.

This commit is contained in:
KikooDX 2020-04-12 18:24:32 +02:00
parent f63b1af088
commit fef264bf75
1 changed files with 1 additions and 2 deletions

View File

@ -7,8 +7,6 @@ class SpriteIndexed:
self.data = data
def _get_data(self, index: int, pallet: dict):
value = self.data[index]
if value == " ":
return None
return pallet[value]
def draw(self, x: int, y: int, pallet: dict) -> None:
i = 0
@ -71,6 +69,7 @@ C_PURPLE = (255,0,255)
C_CYAN = (0,255,255)
#standard pallets
PALLET_STR = {
' ': None,
'd': C_BLACK,
'w': C_WHITE,
'r': C_RED,