Search found 8 matches

by mirage
Wed Dec 14, 2011 5:24 pm
Forum: General
Topic: Avatars: OBEY!
Replies: 763
Views: 1193895

Re: Avatars: OBEY!

#OBEY
by mirage
Thu Sep 15, 2011 11:02 pm
Forum: Support and Development
Topic: Load code from file into object
Replies: 4
Views: 1956

Re: Load code from file into object

I am trying to write a program that allows the user to create custom NPCs with custom AI. In the program they will be able to create custom code, save it as a preset it they like (to a file in the save directory) then apply it to the NPC. My question is how would I take code from a file, e.g. if ar...
by mirage
Thu Sep 15, 2011 10:35 pm
Forum: Support and Development
Topic: Load code from file into object
Replies: 4
Views: 1956

Load code from file into object

I am trying to write a program that allows the user to create custom NPCs with custom AI. In the program they will be able to create custom code, save it as a preset it they like (to a file in the save directory) then apply it to the NPC. My question is how would I take code from a file, e.g. if arg...
by mirage
Fri Sep 09, 2011 1:48 pm
Forum: Support and Development
Topic: Building for Mac and Linux on Windows
Replies: 16
Views: 4068

Building for Mac and Linux on Windows

Is it possible to build for Mac and Linux using Windows? If so, how?
by mirage
Thu Sep 08, 2011 1:29 am
Forum: General
Topic: Short IF Statement in Lua
Replies: 5
Views: 5987

Re: Short IF Statement in Lua

I found the problem. I was expecting "love.filesystem.mkdir()" to return false if the folder already existed. I will need to use "love.filesystem.exists()" for that.

:neko: Thanks so much! :ultraglee:
by mirage
Thu Sep 08, 2011 1:18 am
Forum: General
Topic: Short IF Statement in Lua
Replies: 5
Views: 5987

Re: Short IF Statement in Lua

I'm noticing that when I try to concatenate a string to this, it doesn't work print("1st run: " ..(initialRun and "Yes" or "No")) Without the parentheses, an error is thrown for string to boolean concatenation With the parentheses, initialRun returns TRUE no matter what.
by mirage
Thu Sep 08, 2011 1:02 am
Forum: General
Topic: Short IF Statement in Lua
Replies: 5
Views: 5987

Short IF Statement in Lua

In Objective-C I could take something like
if (foo){
print("true");
}else{
print("false");
}
and turn it into
print( (foo?"true":"false") );
Does Lua have anything similar to this?
by mirage
Thu Sep 01, 2011 8:18 pm
Forum: Games and Creations
Topic: Panicky Commuter
Replies: 34
Views: 14169

Re: Panicky Commuter

Great art style
Fun gameplay
Enjoyable music

Nice work!