Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

DragonRuby Game Toolkit

An intuitive 2D game engine. Fast, xplat, tiny, hot loaded. · By DragonRuby

Sprite Sheets and Documentation

A topic by stuffwot created Apr 30, 2019 Views: 253 Replies: 1
Viewing posts 1 to 2

Is there sprite sheet support or will I need to export each frame of animation into its own file?

Is there documentation for the API? It would be nice to see all the options for rendering a sprite for example.

Thanks,

Ketan

Developer

When drawing from a sprite, you can supply a source rectangle, to draw only a subset of it. That subset can be scaled and rotated as if it were the entire sprite. We don’t have a formal means of defining a full atlas at the moment, but as long as you know the rectangle you need from the spritemap, you can use a single image for all your animation.

Right now we are building small games to show you the API in use, but while this is nice in some ways, it’s completely annoying in others, so we’ll be writing formal documentation soon so everyone can reach for what works best for them.   :)