-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|559|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Generators


 
Jayenkai
Created : 12 October 2016
Edited : 12 October 2016
System : Cross Platform
Language : Blitz Max

2D Balls

Generates Spritesheets from textures to make 2D Balls

Fairly complicated and messy, but this is how to take a standard 2D texture...



..And turn it into a nice little rolling ball sprite.



.. Using only 2D techniques.

Downloadable here

It is a bit "Jay Code" though, so tread carefully!

Code is in BlitzMax, but should be reasonably easy enough to convert to other languages.


 

Comments