Search found 61 matches

by Xugro
Sun Oct 06, 2013 4:48 pm
Forum: Games and Creations
Topic: Ore Miner
Replies: 18
Views: 5735

Re: Ore Miner

This reminds me more of MotherLoad than Minecraft. My biggest problem is the user interface. I still struggle to find the right keys*. It would be much easier if you could place small letters on the icons and/or make the icons clickable. You should also use love.filesystem instead of os.execute("mkd...
by Xugro
Sun Apr 21, 2013 7:05 pm
Forum: General
Topic: [Solved] - Beginner - Why doesn't my menu work properly?
Replies: 2
Views: 861

Re: - Beginner - Why doesn't my menu work properly?

You have a typo in ./menu.lua line 36. Your gamestate is playing not play.
by Xugro
Sat Mar 23, 2013 10:43 pm
Forum: Support and Development
Topic: Close and open game automatically?
Replies: 11
Views: 2846

Re: Close and open game automatically?

bartbes wrote:(Especially since lua doesn't do deep copies, so you saving the environment equates to exactly nothing, to put it bluntly.)
Sorry, I always forget that. Would it work with a deep-copy of _G?
by Xugro
Sat Mar 23, 2013 10:25 pm
Forum: Support and Development
Topic: Close and open game automatically?
Replies: 11
Views: 2846

Re: Close and open game automatically?

Is there any problem with this solution? function love.load() gBackup = _G --save the environment at startup end function love.keypressed(key, unicode) if key == 'r' then --reset the game _G = gBackup love.load() end end An example is provided in the attachment. Edit: The idea is to reset all global...
by Xugro
Wed Feb 06, 2013 12:07 am
Forum: Libraries and Tools
Topic: Happy little accidents
Replies: 3
Views: 910

Re: Happy little accidents

I wanted to make a spiral. But applying the math seems to be a bit more complicated :D. A colorful version would be nice, but not tonight.
by Xugro
Wed Jan 16, 2013 5:34 pm
Forum: Support and Development
Topic: Looking for translators
Replies: 29
Views: 4738

Re: Looking for translators

German / Deutsch "Sei willkommen bei " "Die Version ist " "Du greifst ... an" -- ... must be replaced by the target. Sry, that is german grammar. "Du kannst deine eigenen Kreaturen nicht angreifen" "Du kannst dich nicht so weit bewegen" "Du bewegest deinen Magier zu " "Wähle die Zelle aus, um deinen...
by Xugro
Thu Jul 26, 2012 9:53 am
Forum: Support and Development
Topic: Anyone wanna help me work out some math?
Replies: 2
Views: 453

Re: Anyone wanna help me work out some math?

Okay so I'm going to be looping through some number between 0 and 1, adding it over and over until it becomes some whole number. Take your number (e.g. 0.75 ), count the decimal places (e.g. 2 ) and multiply it by ten to the power of the decimal places, to get a whole number (e.g. 0.75 * 10^ 2 = 75...
by Xugro
Tue Apr 10, 2012 10:15 pm
Forum: Support and Development
Topic: Help with Porting to v0.8
Replies: 5
Views: 501

Re: Help with Porting to v0.8

Add this to love.load():

Code: Select all

	fps = 0
This fixed the crash on my machine (love_0.8.0-0oneiric1_i386.deb).
by Xugro
Wed Jan 25, 2012 8:33 pm
Forum: Support and Development
Topic: Code Shortening
Replies: 3
Views: 558

Re: Code Shortening

if hour[1][panto] >= 1 and hour[1][panto] <= 12 then if hourhover[hour[1][panto]] == false then love.graphics.draw(self.oclockbutton[hour[1][panto]], twiix[1], twiiy[1], 0, 1, 1, 128, 64) end if mouse.x > twiix[1]-128 and mouse.x < twiix[1]+128 and mouse.y > twiiy[1]-64 and mouse.y < twiiy[1]+64 th...