(sprito.py) Space char is no longer hardcoded to transparency.
This commit is contained in:
parent
f63b1af088
commit
fef264bf75
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue