Search found 6382 matches
- Wed Mar 23, 2016 11:34 pm
- Forum: Support and Development
- Topic: I don't understand classes
- Replies: 9
- Views: 3645
Re: I don't understand classes
Okay, so could you upload a recent attempt of yours to use classes? Then we can walk you through it step by step. If you help us help you, I promise it won't be hard.
- Mon Mar 21, 2016 2:25 pm
- Forum: Support and Development
- Topic: request. IMAGE instead of USERDATA
- Replies: 10
- Views: 8101
Re: request. IMAGE instead of USERDATA
You can use this function for that:
Code: Select all
function realType(obj)
return obj.type and obj:type() or type(obj)
end
- Thu Mar 17, 2016 1:24 pm
- Forum: General
- Topic: Your must-have LÖVE libraries for new projects
- Replies: 11
- Views: 10536
Re: Your must-have LÖVE libraries for new projects
Unless you want to save human-readable stuff, my newer library bitser is better. It's superfast, produces smaller files, is safe to use from untrusted sources and supports saving and loading class instances.ivan wrote:robin's ser is not bad too, but it's probably overkill in most cases
- Mon Feb 29, 2016 10:24 am
- Forum: Support and Development
- Topic: Save a map
- Replies: 6
- Views: 4286
Re: Save a map
There isn't really a tutorial yet, but I don't know if it needs one. The snippet I gave above really has all you need.
- Mon Feb 29, 2016 7:07 am
- Forum: Support and Development
- Topic: Distributing your games (making a .love file)
- Replies: 278
- Views: 941241
Re: Distributing your games (making a .love file)
As the error message says, you probably zipped the folder "test" instead of its contents. So in the .zip, there is no main.lua at the top level, just a folder called "test".
- Mon Feb 29, 2016 6:45 am
- Forum: Support and Development
- Topic: Save a map
- Replies: 6
- Views: 4286
Re: Save a map
You could use bitser for example, like this:
Code: Select all
local bitser = require "bitser"
...
function SaveGame(filename)
bitser.dumpLoveFile(filename, map)
end
function LoadGame(filename)
map = bitser.loadLoveFile(filename)
end
- Sat Feb 27, 2016 9:55 pm
- Forum: Support and Development
- Topic: Share a Shader!
- Replies: 328
- Views: 531756
Re: Share a Shader!
I get a black screen as well.binaryeye wrote:I've attached a .love. If anyone could run it and let me know what happens, I'd appreciate it. There should be a white circle in the center of the screen. Thanks!
- Sat Feb 27, 2016 4:25 pm
- Forum: Support and Development
- Topic: Problem with video
- Replies: 10
- Views: 4124
Re: Problem with video
Huh, it plays fine for me. If you play the video in your standard videoplayer, does it work normally?
- Sat Feb 27, 2016 2:51 pm
- Forum: Support and Development
- Topic: Problem with video
- Replies: 10
- Views: 4124
Re: Problem with video
Could you upload the .love (so zip your main.lua with your myvideo.ogv)?
- Sat Feb 27, 2016 9:39 am
- Forum: Games and Creations
- Topic: Energize! - A Snake Inspired Puzzle Game
- Replies: 15
- Views: 15419
Re: Energize! - A Snake Inspired Puzzle Game
Interesting concept, fun game play, great level names, nicely polished. I like it.