Search found 6382 matches

by Robin
Wed Mar 23, 2016 11:34 pm
Forum: Support and Development
Topic: I don't understand classes
Replies: 9
Views: 1209

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.
by Robin
Mon Mar 21, 2016 2:25 pm
Forum: Support and Development
Topic: request. IMAGE instead of USERDATA
Replies: 10
Views: 1804

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
by Robin
Thu Mar 17, 2016 1:24 pm
Forum: General
Topic: Your must-have LÖVE libraries for new projects
Replies: 11
Views: 2754

Re: Your must-have LÖVE libraries for new projects

ivan wrote:robin's ser is not bad too, but it's probably overkill in most cases
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.
by Robin
Mon Feb 29, 2016 10:24 am
Forum: Support and Development
Topic: Save a map
Replies: 6
Views: 871

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.
by Robin
Mon Feb 29, 2016 7:07 am
Forum: Support and Development
Topic: Distributing your games (making a .love file)
Replies: 269
Views: 119713

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".
by Robin
Mon Feb 29, 2016 6:45 am
Forum: Support and Development
Topic: Save a map
Replies: 6
Views: 871

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
by Robin
Sat Feb 27, 2016 9:55 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 312
Views: 104225

Re: Share a Shader!

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!
I get a black screen as well. :(
by Robin
Sat Feb 27, 2016 4:25 pm
Forum: Support and Development
Topic: Problem with video
Replies: 10
Views: 905

Re: Problem with video

Huh, it plays fine for me. If you play the video in your standard videoplayer, does it work normally?
by Robin
Sat Feb 27, 2016 2:51 pm
Forum: Support and Development
Topic: Problem with video
Replies: 10
Views: 905

Re: Problem with video

Could you upload the .love (so zip your main.lua with your myvideo.ogv)?
by Robin
Sat Feb 27, 2016 9:39 am
Forum: Games and Creations
Topic: Energize! - A Snake Inspired Puzzle Game
Replies: 15
Views: 3346

Re: Energize! - A Snake Inspired Puzzle Game

Interesting concept, fun game play, great level names, nicely polished. I like it. :D