I've found that building up a library of helper functions can really speed up programming and debugging in Löve/Lua. I've called them "helper functions" in the title, but basically any techniques, modules, functions etc. that you use a lot and have saved you a lot of time would be great. ...
That's a great idea, Denis. Well written tutorials are always welcome. Anyway, I tend to think that most people don't actually take enough time to search. Concerning tables, for instance, here are some great starting point: Pil - Lua-Users Tables Tutorial - Gts Stolberg - Litt's Lab - MUSHClient tu...
Can someone explain me tables "for Dummies" style? Thanks! I was about to propose starting a tutorial on lua tables and data structures, after noting many isssues on this forum related directly or indirectly to table usage (and meaning). I would start with my practices and views, then eve...
In Lua (afaik), one only gets the C-standard , 1-second precision time. How do we get precise time in Löve (via dt)? And how precise is it (guaranteed to be)? EDIT: if the code to get that (C, I presume) is accessible, I would really appreciate a pointer to it (I planned to write a little hook to ge...
LÖVE currently only links against Lua 5.1. If you see Lua 5.2 stuff, you might have a LÖVE linked against LuaJIT with 5.2 compatibility enabled. The Arch Linux package links against LuaJIT, but I don't know if they enabled the 5.2 stuff. See _VERSION (and jit for LuaJIT) to be sure. I don't know if...
Hello, These 2 funcs (pack new to 5.2, unpack move to field of table) work fine by me in general. However, sometimes, lua simply does not find them (also under aliases without the 'table.' prefix). But just sometimes . This seriously gets on my nerves because I cannot find the logic of the errors. A...
Hello World I'd like to create simply Object creator with for loop: for i=1,10 do object .x=100 object .y=100 object .body=love.physics.newBody(world, object .x, object .y "dynamic") object .shape=love.physics.newRectangleShape(21,21) object .fixture=love.physics.newFixture(object.obj .bo...