Search found 65 matches

by MPQC
Mon Aug 12, 2013 5:02 pm
Forum: General
Topic: What do you do while you code?
Replies: 35
Views: 12594

Re: What do you do while you code?

jjmafiae wrote:You should not use *insert anything related to the internet here* because the NSA can see everything you write and stuff
FTFY.
by MPQC
Mon Aug 12, 2013 2:32 pm
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1793
Views: 1541039

Re: What's everyone working on? (tigsource inspired)

Looks like ChuChu Rocket. That's because it basically is. ChuChu is an awesome party game but Dreamcast emulation is kind of a pain so we decided the logical thing to do was to make a PC clone. The core game is mostly the same but we're changing and adding a lot of things we find appropriate. There...
by MPQC
Fri Aug 09, 2013 6:49 pm
Forum: Libraries and Tools
Topic: Random Word Generator
Replies: 8
Views: 5538

Re: Random Word Generator

Hardcoding it is a pretty bad idea, since you're going to end up with absolutely massive if statements if you ever needed a significant amount of words (ie >1000). You could try reading all the words from a file into a index'd table, and simply generate a random number between 1 - sizeoftable, then ...
by MPQC
Fri Aug 02, 2013 3:58 pm
Forum: Support and Development
Topic: love.filesystem.getWorkingDirectory returns user directory
Replies: 9
Views: 5223

Re: love.filesystem.getWorkingDirectory returns user directo

https://love2d.org/wiki/love.filesystem Files that are opened for read will be looked for in the save directory, and then in the .love archive (in that order). So if a file with a certain filename (and path) exist in both the .love archive and the save folder, the one in the save directory takes pre...
by MPQC
Wed Jul 31, 2013 8:07 pm
Forum: Support and Development
Topic: Combining 2D Arrays?
Replies: 16
Views: 4743

Re: Combining 2D Arrays?

Could you give an example of what you mean by "combining them next to each other"? I have a feeling if you read this thread it'll answer your question though.

*Edit: Might have misunderstood. Thought they were strings.
by MPQC
Wed Jul 31, 2013 5:53 pm
Forum: Support and Development
Topic: File lines to table (lua question)
Replies: 8
Views: 6562

Re: File lines to table (lua question)

Alternative to Omnivores.. First argument is your string, second is delimiter. I used this previously in my game before I swapped formats, it works wonders. function split(str, pat) local t = {} -- NOTE: use {n = 0} in Lua-5.0 local fpat = "(.-)" .. pat local last_end = 1 local s, e, cap =...
by MPQC
Wed Jul 31, 2013 2:15 pm
Forum: General
Topic: [POLL] Do you like "then,do,end" or "{ }"?
Replies: 37
Views: 17399

Re: [POLL] Do you like "then,do,end" or "{ }"?

The problem with including {} is that you probably also need to include () in a lot of places to make your code clear and I'm not sure it'd become more readable. If find Lua to be far easier on the eyes than Javascript and the two are quite alike in how they work, but the syntax is different. And J...
by MPQC
Tue Jul 30, 2013 2:11 pm
Forum: Support and Development
Topic: How can I connect to MySql ?
Replies: 9
Views: 5788

Re: How can I connect to MySql ?

What operating system are you using? If you're using linux, I can help you further. If windows, you'll need to find your own tutorials - there's plenty of them, but I have no idea how to use mysql from command line on windows. MySQL comes with a terminal which makes it extremely convenient. Login, ...
by MPQC
Tue Jul 30, 2013 2:04 pm
Forum: General
Topic: Today is Refactoring Day!
Replies: 2
Views: 2208

Re: Today is Refactoring Day!

A tip: Last one I did was when I went through all my "constants". In sublime you can ctrl-shift-f, then search whatever term. It'll show you every single spot in your project that that term shows up -> very easy to find unused variables. When I did a project rewrite, I found using version ...