How to get the "String form" of Items

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

How to get the "String form" of Items

Post by davisdude »

I see it in the No-Game screen code, but I was wondering: How would you get the string representation of a picture or sound? (I'm trying to do it for a sound, so that would be great). Thanks!
I tried to find a link for reference, but currently the bitbucket is down! :o
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
User avatar
master both
Party member
Posts: 262
Joined: Tue Nov 08, 2011 12:39 am
Location: Chile

Re: How to get the "String form" of Items

Post by master both »

Are you talking about these? They are files encoded in Base-64, which are decoded with this function. I don't know if it can work with sound files, but you could try, here I found a base64 encoder.
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: How to get the "String form" of Items

Post by davisdude »

Thanks! That's what I was looking for. :)
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests