Search found 299 matches

by ejmr
Sun Sep 13, 2015 2:45 am
Forum: Libraries and Tools
Topic: Lady: making savegames easy
Replies: 28
Views: 6870

Re: Lady: making savegames easy

setfenv() was removed in Lua 5.2. LÖVE uses LuaJIT, however, which maintains a lot of compatibility with Lua 5.1 and thus still has setfenv(). So my guess is that you are trying to run your code with a verison of Lua that no longer supports setfenv().
by ejmr
Sun Sep 13, 2015 2:42 am
Forum: Libraries and Tools
Topic: GOOi, an Android-Oriented GUI Library
Replies: 132
Views: 41859

Re: GOOi, an Android-Oriented GUI Library

It would be nice if you star my repo when using my code (or not), thanks
You just got a star from me. Very terrific work. Thank you for sharing this!
by ejmr
Mon Aug 24, 2015 5:04 am
Forum: Libraries and Tools
Topic: Chain: a utility function for avoiding callback hell
Replies: 11
Views: 2676

Re: Chain: a utility function for avoiding callback hell

Very cool collection---thank you for sharing it! Re. improving the documentation, one minor thing is that you can have syntax highlighting for the example code. In the Markdown, instead of indenting the examples by four spaces, you can surround them with grave accents / backticks and the name of the...
by ejmr
Mon Aug 24, 2015 2:50 am
Forum: Libraries and Tools
Topic: Chain: a utility function for avoiding callback hell
Replies: 11
Views: 2676

Re: Chain: a utility function for avoiding callback hell

farzher wrote:While looking that up I also noticed lua has `goto`. They made some weird decisions on features. We don't get the basic continue, yet we get the dangerous goto.
Personally I don't think that's weird or dangerous. Continue can be implemented in terms of goto. But the reverse isn't possible.
by ejmr
Sun Aug 23, 2015 5:32 pm
Forum: Libraries and Tools
Topic: LDME - Love Danmaku Maker Framework
Replies: 11
Views: 4275

Re: LDME - Love Danmaku Maker Framework

Very cool project. I wish this had existed three years ago when I started on the game I've been working on since then, heh. We (meaning my teammates and I) ended up implementing our own danmaku engine based on BulletML by Kenta Cho, which we have since extended. The whole game will be open-source bu...
by ejmr
Sun Aug 23, 2015 5:05 pm
Forum: Support and Development
Topic: New to Lua and LOVE... interactive console?
Replies: 3
Views: 978

Re: New to Lua and LOVE... interactive console?

I agree with Robin, and just wanted to add here is one library I have used in the past which was both easy and pleasant to use:

https://github.com/hamsterready/love-console
by ejmr
Wed Jul 08, 2015 1:34 am
Forum: Support and Development
Topic: Small Useful Functions
Replies: 127
Views: 24411

Re: Small Useful Functions

A utility to map a function to all values in a table, which also supports partial application. function table.map(f, t) local function apply(values) local results = {} for index,value in pairs(values) do results[index] = f(value) end return results end if t then return apply(t) else return apply end...
by ejmr
Fri Jul 03, 2015 10:50 am
Forum: General
Topic: Is LÖVE a framework, API, or engine?
Replies: 4
Views: 1179

Re: Is LÖVE a framework, API, or engine?

Kikito, I love that image, which made me actually laugh out loud. I think your explanation was great as well. Just as an aside, if you go back and watch the first two Terminator films you will see that the terminators are running assembly code for a 6502 processor, and on top of that the code is com...
by ejmr
Wed Jul 01, 2015 5:34 am
Forum: Support and Development
Topic: How to use a LuaRocks project with a LÖVE one?
Replies: 8
Views: 1518

Re: How to use a LuaRocks project with a LÖVE one?

Sorry but I'm not familiar with the paths Luarocks uses on Windows. It might help to print(package.path) from within Lua to see all the places it's searching for lunamark and then append that to package.path in LÖVE before you try to require() the package.
by ejmr
Wed Jul 01, 2015 4:26 am
Forum: Support and Development
Topic: How to use a LuaRocks project with a LÖVE one?
Replies: 8
Views: 1518

Re: How to use a LuaRocks project with a LÖVE one?

Can you post some example code that fails? I installed Lunamark through Luarocks and I can require() it in a LÖVE project without error (although Lunamark itself breaks on a bug inside its Markdown reader).