Search found 15 matches

by TacticalPenguin
Thu Jul 30, 2009 10:50 pm
Forum: Support and Development
Topic: Questions about Lua Optimization
Replies: 4
Views: 1974

Re: Questions about Lua Optimization

part 1 I would lean towards a big function - lua's local variables are relatively very fast, if you dont need the splitup functions to get the job done and you wont be duplicating code beyond reason, keep it to one function. Part 2 go with a relaxed rule of 3 based mostly on string size - but as som...
by TacticalPenguin
Thu Jul 16, 2009 1:09 am
Forum: General
Topic: Problem with inserting table into table
Replies: 15
Views: 2461

Re: Problem with inserting table into table

IDT theres some kind of reason why it would matter but maybe try ditching the local new value and just putting the table right there in the table.insert?
and have you tried printing every var in the explode func to see exactly what's being computed/calculated/done?
by TacticalPenguin
Wed Jul 15, 2009 10:15 pm
Forum: Support and Development
Topic: Almost have my own library to use with LOVE! Help needed.
Replies: 18
Views: 4268

Re: Almost have my own library to use with LOVE! Help needed.

I don't have a Mac or Linux to test it on either, so screw it. I'm not saying Windows is better, Linux has alot more to offer than windows. Put what I think is ridiculous is not having a copy of windows on your machine. Again, its a mainstream operating system, support for other OS is always second...
by TacticalPenguin
Wed Jul 15, 2009 10:08 pm
Forum: General
Topic: Where do you check for keyboard input
Replies: 16
Views: 5779

Re: Where do you check for keyboard input

This is a matter of personal style, and one could argue that saving every pressed character presents other overhead, which might outweigh the overhead created by using love.keyboard.isDown. Furthermore, on most modern computers resources are not that limited that it really matters. Once again, desp...
by TacticalPenguin
Wed Jul 15, 2009 3:02 pm
Forum: General
Topic: Problem with inserting table into table
Replies: 15
Views: 2461

Re: Problem with inserting table into table

If you post your code to the loveclub pastebin (http://loveclub.pastebin.com), I (or one of our resident Lua masters) can take a look and figure out what's wrong. Because man, that is weird . My thoughts exactly, I've done quite a bit of ridiculous table usage (seriously who needs 7D tables) and ne...
by TacticalPenguin
Wed Jul 15, 2009 3:10 am
Forum: Support and Development
Topic: Almost have my own library to use with LOVE! Help needed.
Replies: 18
Views: 4268

Re: Almost have my own library to use with LOVE! Help needed.

osgeld - I wouldn't say the majority around here don't have windows but I think it is certainly more than 10% Why is my audience that of the LOVE community? If I am making a game, my target is the world, not the LOVE community. If I want to make an extension, API, or framework for other people to us...
by TacticalPenguin
Wed Jul 15, 2009 2:53 am
Forum: General
Topic: Where do you check for keyboard input
Replies: 16
Views: 5779

Re: Where do you check for keyboard input

Maybe I should change the question to be asking which one people prefer when one is not necessary over the other... I use the functions over the callbacks, usually if im looking for a keypress that means im going to update something, and it seems more logical to just do "if left then move (X * dt)"...
by TacticalPenguin
Wed Jul 15, 2009 2:44 am
Forum: General
Topic: Problem with inserting table into table
Replies: 15
Views: 2461

Re: Problem with inserting table into table

eh that's a bit odd and I can't say I've ever had that problem

have you tried just doing bigTable[#bigTable+1] = {blah} rather than using insert?
by TacticalPenguin
Wed Jul 15, 2009 2:06 am
Forum: Support and Development
Topic: Almost have my own library to use with LOVE! Help needed.
Replies: 18
Views: 4268

Re: Almost have my own library to use with LOVE! Help needed.

W3schools' demographic is a bit different from the demographic of programmers who hang out on forums (the kind of people who will actually download things made with love) The demographic that hangs out on this forum includes people who only use linux and don't even have a windows install; thus it ca...
by TacticalPenguin
Wed Jul 15, 2009 1:52 am
Forum: General
Topic: Where do you check for keyboard input
Replies: 16
Views: 5779

Re: Where do you check for keyboard input

That makes sense and I'd thought of that before but I just did a test which showed me that keypressed only runs when the key is first pressed down, not any time it is pressed down, which I should've figured but never did for some reason, and now knowing that makes the reasons to use different places...