def serialize(self): return 'ANIM_HITBOX(%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)\n' % ( '$01' if self.enabled else '$00', uintasm8(self.damages), intasm16(self.base_h), intasm16(self.base_v), intasm16(self.force_h), intasm16(self.force_v), intasm8(self.left), intasm8(self.right), intasm8(self.top), intasm8(self.bottom) )
def serialize(self): return 'ANIM_SPRITE%s(%s, %s, %s, %s)\n' % ('_FOREGROUND' if self.foreground else '',intasm8(self.y), self.tile, uintasm8(self.attr), intasm8(self.x))
def serialize(self): return 'ANIM_HURTBOX(%s, %s, %s, %s)\n' % (intasm8(self.left), intasm8(self.right), intasm8(self.top), intasm8(self.bottom))