Search found 131 matches

by Muris
Mon Feb 02, 2015 2:15 pm
Forum: General
Topic: CODEA -> Cocos2dx and Love
Replies: 4
Views: 4041

Re: CODEA -> Cocos2dx and Love

I've been doing some searching other way around like what does cocos2d have that love2d doesn't. Cocos2dx is not same as love2d btw. I don't really know anything about processing but judging the processing site, it looks like a language with types. First I could probably start with a fact that I am ...
by Muris
Sun Feb 01, 2015 2:27 pm
Forum: Games and Creations
Topic: A classic JRPG
Replies: 19
Views: 15639

Re: A classic JRPG

It still doesn't create the lunar-folder inside love-directory. If I manually create lunar-directory in %APPDATA%/LOVE, it works. Is there a specific reason to not use loves filesystem but io.open? The game itself really has this old school jrpg feeling to it. This could be just my personal thing, b...
by Muris
Sun Feb 01, 2015 11:02 am
Forum: General
Topic: ZeroBrane Studio Lua IDE v0.95 is out
Replies: 7
Views: 4995

Re: ZeroBrane Studio Lua IDE v0.95 is out

For some reason my antivirus doesn't like the exe installer. I am using windows 7 + free panda antivirus. It doesn't complain about the zip though.
by Muris
Fri Jan 30, 2015 4:28 am
Forum: General
Topic: Whats happening?
Replies: 2
Views: 1463

Re: Whats happening?

You probably forgot something in the line before this line. Like closing {} or () or something. Could also be something to do with function definition or if-elseif etc before the line.
by Muris
Fri Jan 30, 2015 2:10 am
Forum: Games and Creations
Topic: A classic JRPG
Replies: 19
Views: 15639

Re: A classic JRPG

retropower wrote:Are you running it on Linux, Mac, or Windows?

Did the error happen right away, or after choosing from the resolution menu?
Yup, it does crash for me too on there right after choosing one of the resolutions. I am using windows 7.
by Muris
Fri Jan 30, 2015 1:50 am
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 411571

Re: "Questions that don't deserve their own thread" thread

You do not need to call the function by yourself, every time you press a key love.keypress is being called automatically. When you release the key love.keyreleased will be called. If you define a function, without word local, it will always be globally visible, meaning if you define a function on an...
by Muris
Wed Jan 28, 2015 9:18 pm
Forum: General
Topic: Lua tables help
Replies: 3
Views: 1952

Re: Lua tables help

snip Assuming you cannot set the values during the creation of map[1] such as: Map[1] = { x=0, y=1, variables = {1,2,3}, tile = 24, AnimTable = {}, Treasure = 42 } You could create local variable and set it to point same table local a = Map[1] a.tile = 24 a.AnimTable = {} a.Treasure = 42 If you wan...
by Muris
Wed Jan 28, 2015 7:41 pm
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 411571

Re: "Questions that don't deserve their own thread" thread

How do I? If I understand correctly what you want to do, you could do something like this: local movSpeed = 100 -- move 100 pixels per second local angle = 0 local player = { x = 20, y = 40, width = 20, height = 20, } local machine = { on = true, x = 200, y = 200, width = 50, height = 60 } local ke...
by Muris
Wed Jan 28, 2015 12:35 pm
Forum: Support and Development
Topic: Help with REGEX
Replies: 11
Views: 3207

Re: Help with REGEX

That category declaration looks pretty cool, I never thought that one can use strings and booleans like this. I tried adding space separator check into one match, but I am not really sure if this is any easier / better than what Kingdaro suggested. local groups = { [1] = {} } local str = "frame...
by Muris
Tue Jan 27, 2015 8:10 pm
Forum: Support and Development
Topic: Help with REGEX
Replies: 11
Views: 3207

Re: Help with REGEX

You can add more characters which you want to accept besides alphanumeric, like underscore and dash such as: for whole, firstChar, word in string.gmatch("frame#cha_-racter image.icon:last", '((.?)([_%-%w]+))') do But ya it still chops down strings with @ and whatever other abnormal charact...