Okay.... thank you for your answer !
I will give it a try and remove the love.graphics.clear() from the love.run() function.
And to prevent flickering I have to do every draw operation atleast for two/three consecutive frames.
Search found 27 matches
- Sun Sep 09, 2012 12:28 pm
- Forum: Support and Development
- Topic: How to avoid drawing map every single tick
- Replies: 29
- Views: 13042
- Fri Sep 07, 2012 9:36 pm
- Forum: Support and Development
- Topic: How to avoid drawing map every single tick
- Replies: 29
- Views: 13042
Re: How to avoid drawing map every single tick
Hello there, just stumbled across this thread... I think the initial question wasn't answered ! Isn't OpenGL handling the frame buffering (double/tripple buffer) ?! So I don't really have to keep another copy of the screen in a canvas. Updating only the changed part of the screen should do the job, ...
- Thu May 10, 2012 5:57 am
- Forum: Support and Development
- Topic: Tic Tac Toe - AI (efficient algorithm?)
- Replies: 17
- Views: 9416
Re: Tic Tac Toe - AI (efficient algorithm?)
Here is the optimal solution for this game
http://xkcd.com/832/
http://xkcd.com/832/
- Wed May 02, 2012 10:43 pm
- Forum: Support and Development
- Topic: How to Protect a Resulting .Exe?
- Replies: 32
- Views: 15526
Re: How to Protect a Resulting .Exe?
... you could use a runtime compressor for your .exe-File.
Something like
http://upx.sourceforge.net/
Something like
http://upx.sourceforge.net/
- Fri Apr 20, 2012 12:41 pm
- Forum: General
- Topic: Copy Command
- Replies: 7
- Views: 3074
Re: Copy Command
I think, that you can access the system's clipboard by calling some commandline tools.
There is a way to do this by some native system commands under Linux / OSX:
XSEL under Linux
PBCOPY under OSX
There is a way to do this by some native system commands under Linux / OSX:
XSEL under Linux
PBCOPY under OSX
- Sun Apr 15, 2012 8:03 pm
- Forum: Support and Development
- Topic: Problems with the hitboxes!
- Replies: 3
- Views: 2471
Re: Problems with the hitboxes!
... have a look
- Sun Apr 15, 2012 7:10 pm
- Forum: Support and Development
- Topic: Problems with the hitboxes!
- Replies: 3
- Views: 2471
Re: Problems with the hitboxes!
Hey, when you require "hitboxes" , the code inside the file is executed once. You have to put this code inside a function, e.g. function checkStartbutton() mouseX = love.mouse.getX() mouseY = love.mouse.getY() if mouseX > hitboxButtonStartLX and mouseX < hitboxButtonStartRX then if mouseY ...
Re: HELP!
Hey, actually you don't need the love.graphics.clear() -function. The screen is cleared automaticly on every cycle just before your love.draw(...) is called. So just simple draw your stuff and you're fine... So something like that: function love.draw() if screen == menu then love.graphics.draw(scree...
- Mon Apr 09, 2012 9:09 pm
- Forum: Support and Development
- Topic: Require won't work :s
- Replies: 5
- Views: 4359
Re: Require won't work :s
Hey,
You are causing a recursion in love.draw(), i.e. love.draw is calling itself over and over again... until there is no memory left. You are looking for the love.graphics.draw(...) funtion.
You are causing a recursion in love.draw(), i.e. love.draw is calling itself over and over again... until there is no memory left. You are looking for the love.graphics.draw(...) funtion.
Code: Select all
function love.draw()
love.graphics.draw(player_mob, player_x, player_y)
...
end
- Thu Mar 08, 2012 9:57 pm
- Forum: Support and Development
- Topic: A music equalizer visualization?
- Replies: 5
- Views: 7654
Re: A music equalizer visualization?
hey there, in an equilizer every single bar represents a specific frequency (or better a range, for example 220Hz-250Hz) In order to get this information you have to analyse the music on the fly. This is called "fourier transformation" (see wikipedia for more information) These calculation...