Search found 585 matches

by MarekkPie
Thu Oct 03, 2013 7:49 pm
Forum: Support and Development
Topic: Accessing config information
Replies: 7
Views: 5688

Re: Accessing config information

Because I'm curious if there is a way or not.
by MarekkPie
Thu Oct 03, 2013 5:00 pm
Forum: Support and Development
Topic: Accessing config information
Replies: 7
Views: 5688

Accessing config information

Other than the screen dimensions, which can be reached via the love.graphics module, is there any way to access the information set in conf.lua inside the rest of the code? For example, accessing the title and author information, or whether the game is in Release Mode or not.
by MarekkPie
Sat Apr 13, 2013 5:10 pm
Forum: Support and Development
Topic: [SOLVED] Make an object follow another object.
Replies: 12
Views: 10753

Re: [SOLVED] Make an object follow another object.

To add to the above: when you divide by the magnitude of the vector, you are "normalizing" it. Your original vector was { magnitude * direction_of_x, magnitude * direction_of_y } When you normalize it, you are doing this: { magnitude * direction_of_x / magnitude, magnitude * direction_of_y...
by MarekkPie
Tue Apr 09, 2013 5:27 pm
Forum: General
Topic: [PROJECT] Löve2D boilerplate
Replies: 6
Views: 2910

Re: [PROJECT] Löve2D boilerplate

I usually just wrap all my module functions in a table as the end of the file, and return it: local function foo(a) --... end local function bar(a) --... end return { foo = foo, bar = bar, } Alternatively, if you'd rather not write local all the time, declare a table and make functions values in the...
by MarekkPie
Tue Apr 09, 2013 5:14 pm
Forum: General
Topic: [PROJECT] Löve2D boilerplate
Replies: 6
Views: 2910

Re: [PROJECT] Löve2D boilerplate

Looks neat, but I'd move away from using the module function to create your modules. It's depreciated in Lua 5.2, so if LOVE ever makes the switch you'd need to restructure all your modules.
by MarekkPie
Mon Apr 08, 2013 1:02 pm
Forum: Support and Development
Topic: [SOLVED] Make an object follow another object.
Replies: 12
Views: 10753

Re: Make an object follow another object.

The easiest way to solve this problem is through vectors. Before you get a solution, give this a good read to understand what vectors are:

http://www.wildbunny.co.uk/blog/vector- ... rs/vector/
by MarekkPie
Sun Apr 07, 2013 3:48 pm
Forum: Games and Creations
Topic: 3D Picross
Replies: 11
Views: 4162

Re: 3D Picross

Nicely done. You could improve the game by adding a short "You won!" or "You solved the puzzle" message. The transition between the solved puzzle and the new one is a bit abrupt. I am curious: How do you check if the solution is unique? It looks like he builds the solution, then...