General discussion about LÖVE, Lua, game development, puns, and unicorns.
3 posts • Page 1 of 1
I was wondering if it was possible to grab color/pixel information from an image and use that data. More specifically I was hoping I could automate platform creation by marking an image with certain colors (say, red for platform edges), analyzing the image through some love/shader feature or some utility that could convert it to xml, and then converting that data into usable table information for platform detection.
- Inner party member
- Posts: 3650
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
And an ImageData object can be obtained from an Image via https://love2d.org/wiki/%28Image%29:getData, if you already have an Image object.
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!