Search found 395 matches

by Kingdaro
Tue Apr 19, 2016 12:58 am
Forum: General
Topic: Another Lua-based language implementation
Replies: 18
Views: 9735

Re: Another Lua language implementation

And another post for an issue about the result of looped expressions, like for, while, and repeat. Opinions on this would be great as well. https://github.com/Kingdaro/lunascript/issues/1
by Kingdaro
Tue Apr 19, 2016 12:57 am
Forum: General
Topic: Another Lua-based language implementation
Replies: 18
Views: 9735

Another Lua-based language implementation

I've decided to put this on hold, but the repository is here for anyone still interested. So I wanted to see if I could address a few of Lua's shortcomings using a different language implementation of my own, and LunaScript (possibly temporary title) is the result of that. LunaScript on GitHub What...
by Kingdaro
Tue Apr 19, 2016 12:19 am
Forum: General
Topic: Library sub-forum?
Replies: 36
Views: 17663

Re: Library sub-forum?

I wonder how good a (sub)forum really is at indexing a bunch of software anyway, though. Someone could have completed a great game a year ago and it fell off the first few pages by now, and meanwhile the first page is full of WIP stuff. There's a github repo with a curated list of libraries that's ...
by Kingdaro
Mon Apr 18, 2016 8:23 pm
Forum: General
Topic: Library sub-forum?
Replies: 36
Views: 17663

Re: Library sub-forum?

I'm more in favor of the both being their own separate subforum, since they're not really something that can be reasonably grouped together I think. Games and libraries are pretty different things. Overall, though, it probably doesn't matter that much.
by Kingdaro
Mon Apr 18, 2016 8:10 pm
Forum: General
Topic: Library sub-forum?
Replies: 36
Views: 17663

Re: Library sub-forum?

Honestly, since it seems most of us here are already in agreement that it should be a thing, maybe start better now than later, so we don't have more libraries to move in the future? Obviously any new library topics now are just pebbles on a mountain, but still.
by Kingdaro
Sat Apr 09, 2016 4:28 pm
Forum: Support and Development
Topic: wait()
Replies: 8
Views: 13327

Re: wait()

Technically, it's not the same, though the OP didn't really specify what he wanted to do anyway... apart from wait not existing as a function in neither lua nor löve (maybe somewhere else?). He's probably referring to ROBLOX's wait(). ROBLOX scripts all run in a coroutine. http://wiki.roblox.com/in...
by Kingdaro
Sat Apr 09, 2016 4:19 am
Forum: Support and Development
Topic: wait()
Replies: 8
Views: 13327

Re: wait()

I wouldn't recommend using love.timer.sleep at all. It'll freeze your game for the duration of it, and it won't show the first face. What you're probably looking for is a timer. Here's a simple way to do your example: function love.load() -- load face images face1 = love.graphics.newImage(...) face2...
by Kingdaro
Sat Apr 02, 2016 6:48 pm
Forum: General
Topic: How to document an "unusual" API?
Replies: 11
Views: 5006

Re: How to document an "unusual" API?

I strongly believe that having trouble naming functions or documenting them, is a sign that something is wrong with the code. A super good point, something a lot of people tend to miss, including myself! Though I can't really think of any better way for the library to work, other than the common &q...
by Kingdaro
Fri Apr 01, 2016 10:44 pm
Forum: General
Topic: How to document an "unusual" API?
Replies: 11
Views: 5006

Re: How to document an "unusual" API?

It seems like the best thing you can do is just give an example of how its used. I think the examples in the docs are good enough to give a good picture.
by Kingdaro
Thu Mar 31, 2016 6:35 am
Forum: Support and Development
Topic: How to serialize/deserialize a SoundData object?
Replies: 16
Views: 6090

Re: How to serialize/deserialize a SoundData object?

Ideally, you want to have sounds stored on the client, which are then played on recipient of a specific network message, instead of sending over the entire sound. Is there a reason why you'd need to do this?