This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Read Custom Animations | |
import re | |
import binascii | |
anim_1 = (r'fire_0_anim.txt') | |
#repr of anim_1 " '16,\n17,\n18,\n19,\n20,\n21,\n22,\n23,\n24,\n25,\n26,\n27,\n28' " | |
with open(anim_1, 'rb') as anim_1_: | |
anim_1_read = anim_1_.read() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import zlib | |
import base64 | |
import json | |
import sys | |
def flip_entity(entity): | |
# translation tables | |
newX = [-3,-2, 0, 2,3,2,0,-2] |