Search found 234 matches

by Beelz
Wed Oct 25, 2017 2:00 pm
Forum: Support and Development
Topic: buggy table handling
Replies: 6
Views: 2052

Re: buggy table handling

EDIT: Got ninja'd on the reply, but here's a minimal solution anyways: ----------------------------------------------------------------------------------------- What Azhukar meant is that you are overwriting the table every time you call the newCollisionBox function... local _id = 0 local function ...
by Beelz
Sun Oct 01, 2017 2:23 pm
Forum: Support and Development
Topic: Why won't my rectangle go bigger than 800 x 600?
Replies: 10
Views: 4036

Re: Why won't my rectangle go bigger than 800 x 600?

It's almost like you're asking people to jump through hoops to help you, but complaining that they asked for bigger hoops. Including the love file in the first place would remove the guesswork you place upon them, whether or not you pinpointed the problem. Remember, everyone has their own projects t...
by Beelz
Wed Sep 20, 2017 1:03 am
Forum: General
Topic: Thanks I get it
Replies: 5
Views: 2182

Re: Thanks I get it

For future reference: append PATH, don't overwrite it (at the end add a semicolon, then the path to include). As Zorg said, you probably messed that all up.
by Beelz
Tue Sep 19, 2017 7:27 pm
Forum: Support and Development
Topic: Arg passed is nil
Replies: 7
Views: 3253

Re: Arg passed is nil

grump wrote: Tue Sep 19, 2017 1:36 pm
Beelz wrote: Tue Sep 19, 2017 12:42 pmsemicolon
No.
Good catch... Been using Java a lot again lately. :death:
by Beelz
Tue Sep 19, 2017 12:42 pm
Forum: Support and Development
Topic: Arg passed is nil
Replies: 7
Views: 3253

Re: Arg passed is nil

You don't have to, it's just syntactic sugar. You could've used dot notation with the first argument being itself: input.HandleInput(input, key) Also inside the input function you're calling you can use the 'self' parameter because of the semicolon notation(or passing itself as 1st arg). table.inser...
by Beelz
Fri Sep 01, 2017 2:10 pm
Forum: Support and Development
Topic: Something is wrong with my canvas. Can't spot a bug. Help? ;-;
Replies: 9
Views: 3028

Re: Something is wrong with my canvas. Can't spot a bug. Help? ;-;

You're missing out on the best part of OOP: inheritance. Even if your player and enemy classes are completely different, I'm sure they do have some similarities... For instance, they both probably use the same variables like x and y for position, and maybe one for health. You could make a base entit...
by Beelz
Tue Aug 29, 2017 9:45 pm
Forum: Support and Development
Topic: Custom rectangle class not rendering/moving correctly
Replies: 10
Views: 3738

Re: Custom rectangle class not rendering/moving correctly

Comming from C++/Python it's arkward to see your function calls, they look like you are trying to access members. :? Need to learn a lot about Lua, as this is my first attempt. :P Using semicolon notation is syntactic sugar in Lua making the first argument self. These: function rect:update(dt) --st...
by Beelz
Sat Aug 19, 2017 8:13 pm
Forum: General
Topic: A Question on Emptying Tables on Lua
Replies: 3
Views: 1308

Re: A Question on Emptying Tables on Lua

I would just keep doing what you were... You're actually creating more work for LOVE. Either re-declare the table or set nil for garbage collection to handle.
by Beelz
Fri Aug 11, 2017 5:33 pm
Forum: Support and Development
Topic: Trying to create a file structure with modding in mind
Replies: 5
Views: 2292

Re: Trying to create a file structure with modding in mind

I scribbled up notes on paper a while back for how to allow modding but never actually tried to implement it. Basically what I figured the best plan was to put all base entities/assets/etc into the love file, then when the game is loaded you enumerate the folders inside a mods folder in the save dir...