yoyoberenguer / magicspritesheet Goto Github PK
View Code? Open in Web Editor NEWLoad and add special effect to sprite sheet
License: MIT License
Load and add special effect to sprite sheet
License: MIT License
Loading a sprites with different width and height is not implemented
Code exposed :
if self.gl.input_format_24bit.get() == 1:
try:
sprites = sprite_sheet_fs8(filename, chunk_=int(width), rows_=int(rows), columns_=int(columns))
except Exception as error:
messagebox.showerror(
"Error", "Fail to open spritesheet %s\nError code : %s" % (filename, error))
return
else:
try:
sprites = sprite_sheet_per_pixel(filename, chunk_=int(width), rows_=int(rows),
columns_=int(columns))
except Exception as error:
messagebox.showerror(
"Error", "Fail to open spritesheet %s\nError code : %s" % (filename, error))
return
SpriteSheet studio version 1.0.0-alpha
Loading a spritesheet with the correct attributes (columns, rows , width and height) is failing with error code :
Code failing to load the spritesheet:
file Spritesheet.pyx
method cpdef sprite_sheet(str file_, int chunk_, int rows_, int columns_)
try:
surface = pygame.image.load(file_)
buffer_ = surface.get_view('2')
w, h = surface.get_size()
source_array = numpy.frombuffer(buffer_, dtype=uint8).reshape((h, w, 3))
except Exception as e:
raise ValueError("Cannot load spritesheet %s.\n"
"Invalid file format or bitsize incompatible\nError %s\n"
"This version is compatible with 24-bit spritesheet without layer alpha" % (file_, e))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.