Search found 76 matches

by spir
Wed Nov 14, 2012 2:55 pm
Forum: Support and Development
Topic: love.graphics.polygon.isInside(x, y)
Replies: 6
Views: 2345

love.graphics.polygon.isInside(x, y)

What about adding a function to each shape provided by Löve to check whether a given (x,y) is inside? Would be tremenduously cool ! ;)

Denis
by spir
Wed Nov 14, 2012 1:11 pm
Forum: Support and Development
Topic: Share your favourite helper functions
Replies: 48
Views: 16709

Re: Share your favourite helper functions

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. ...
by spir
Wed Nov 14, 2012 12:33 pm
Forum: Support and Development
Topic: [solved] löve time: how does it get precision?
Replies: 5
Views: 1681

Re: löve time: how does it get precision?

Thank you all, very helpful. I'll have a look at the SDL method and luasocket too (which I have never used).

denis
by spir
Tue Nov 13, 2012 6:38 pm
Forum: Support and Development
Topic: Tables for Dummies
Replies: 9
Views: 11645

Re: Tables for Dummies

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...
by spir
Tue Nov 13, 2012 12:53 am
Forum: Support and Development
Topic: Tables for Dummies
Replies: 9
Views: 11645

Re: Tables for Dummies

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...
by spir
Mon Nov 12, 2012 10:51 pm
Forum: Support and Development
Topic: [solved] löve time: how does it get precision?
Replies: 5
Views: 1681

[solved] löve time: how does it get precision?

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...
by spir
Mon Nov 12, 2012 10:49 pm
Forum: Support and Development
Topic: [solved] weird bug with lua (5.2) table.pack & table.unpack
Replies: 2
Views: 2051

Re: weird bug with lua (5.2) table.pack & table.unpack

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...
by spir
Mon Nov 12, 2012 9:28 pm
Forum: Support and Development
Topic: [solved] weird bug with lua (5.2) table.pack & table.unpack
Replies: 2
Views: 2051

[solved] weird bug with lua (5.2) table.pack & table.unpack

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...
by spir
Mon Nov 12, 2012 12:22 pm
Forum: Support and Development
Topic: Creating object Creator
Replies: 4
Views: 2699

Re: Creating object Creator

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...
by spir
Mon Nov 12, 2012 12:05 pm
Forum: Support and Development
Topic: Table search?
Replies: 6
Views: 1855

Re: Need some help

TheConfuZzledDude wrote:This may be a nooby question, but how do you check if something is part of a certain table?
Please, say the topic of your help request in the title (help others help you).

Denis