Search found 110 matches

by Xugro
Sun Apr 21, 2013 7:05 pm
Forum: General
Topic: [Solved] - Beginner - Why doesn't my menu work properly?
Replies: 2
Views: 1874

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: 4618

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: 4618

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: 2373

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: 14213

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 bewe...
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: 1778

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: 1647

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: 1467

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...
by Xugro
Sat Nov 19, 2011 3:05 pm
Forum: General
Topic: Long time no see, from LÖVE!
Replies: 35
Views: 28491

Re: Long time no see, from LÖVE!

Hi,

I have not posted anything on the forum yet, but I translated the Getting Started Guide into german. And I love LÖVE :awesome:.