Search found 1143 matches

by davisdude
Mon Nov 13, 2017 7:44 pm
Forum: General
Topic: There is shurly a better way to code these few lines.
Replies: 4
Views: 244

Re: There is shurly a better way to code these few lines.

I'd recommend looking in to this writeup here
by davisdude
Wed Oct 25, 2017 11:16 pm
Forum: Games and Creations
Topic: Typing Champ
Replies: 6
Views: 426

Re: Typing Champ

Really cool, and I like the graphics. Seems like it could be a cool way to encourage learning/improving typing skills.
by davisdude
Wed Oct 25, 2017 11:14 pm
Forum: Games and Creations
Topic: Dark Wish
Replies: 12
Views: 1972

Re: Dark Wish

Wow, looks great! Can't believe I missed this the first time you posted it. Keep up the good work :)
by davisdude
Sat Oct 21, 2017 1:03 am
Forum: General
Topic: love.load vs stuff at top of main.lua
Replies: 8
Views: 588

Re: love.load vs stuff at top of main.lua

One benefit is that you can use love.event.quit( 'restart' ) and love.load() will be run
by davisdude
Sun Sep 24, 2017 4:27 pm
Forum: Support and Development
Topic: Require path
Replies: 3
Views: 218

Re: Require path

Without messing with the structure, as grum suggested, you have a couple of options available: You can also put a file title "init.lua" inside of each directory, such as movement, which looks something like this: -- classes/components/movement/init.lua -- Match the parent directory local path = (......
by davisdude
Fri Sep 22, 2017 1:39 pm
Forum: General
Topic: issue with circle pong collision detection
Replies: 4
Views: 321

Re: issue with circle pong collision detection

In your function LineAngle, replace math.atan with math.atan2 and replace the division sign with a comma. Specifically, note the differences between the parameters for math.atan and math.atan2 in the Lua 5.1 documentation . Also note that math.atan2 was deprecated in 5.3 (emphasis mine): The followi...
by davisdude
Wed Sep 13, 2017 11:12 pm
Forum: Games and Creations
Topic: [Game] The Lord of candy
Replies: 5
Views: 685

Re: [Game] The Lord of candy

I like it! Simple mechanic, but still fun. My one suggestion would be a way to "cancel" a throw, by right clicking, for instance. Also, the zero gravity power-up actually makes it WAY harder later in the game. All the balls just float into the thing, causing you to lose unless you focus on keeping b...
by davisdude
Tue Sep 12, 2017 1:51 am
Forum: General
Topic: checking if a value is not on table ?
Replies: 15
Views: 792

Re: checking if a value is not on table ?

Maybe I'm missing something here, but it seems like the simplest (and most efficient) solution would be to just check if that element is nil before or after the loop local tab = { a = 1, b = 2, c = 3 } local key = 'testKey' local notInTable = tab[key] == nil if notInTable then print( 'The key "' .. ...
by davisdude
Tue Sep 05, 2017 12:59 pm
Forum: General
Topic: release date for 0.11 ?
Replies: 4
Views: 496

Re: release date for 0.11 ?

In the past, major releases seem to end up being on holidays, so I'm hopeful for a little Christmas present! :)
by davisdude
Tue Aug 22, 2017 7:02 pm
Forum: Support and Development
Topic: [solved]Is there a way to sleep/wait without freezing window?
Replies: 6
Views: 438

Re: [solved]Is there a way to sleep/wait without freezing window?

Variables are local to their scope, which is loosely "their indentation level" assuming you indent your code normally. You can still make the variables local by declaring them outside of love.load, in one of two ways: local currentSlowFrames, numberOfSlowFrames function love.load() currentSlowFrames...