Oddly it still crashes
while (true) do
love.timer.sleep(math.huge)
end
>Results in crash
I found a new way to do what I wanted to do, but I'd still like to know how I can get it to not crash.
Search found 25 matches
- Wed Jan 25, 2012 10:09 pm
- Forum: Support and Development
- Topic: Pauses (Waits, sleeps, etc.), is it Possible?
- Replies: 17
- Views: 7257
- Wed Jan 25, 2012 9:22 pm
- Forum: Support and Development
- Topic: Pauses (Waits, sleeps, etc.), is it Possible?
- Replies: 17
- Views: 7257
Pauses (Waits, sleeps, etc.), is it Possible?
Is it possible to pause a thread in Love2D? I'm trying to loop something and the program keeps crashing because it's looping to quickly.
If it is possible, can I please see an example, please? Thanks!
If it is possible, can I please see an example, please? Thanks!
- Wed Jan 25, 2012 8:43 pm
- Forum: Support and Development
- Topic: Creating a GUI Without an Image Representing It
- Replies: 2
- Views: 1165
Re: Creating a GUI Without an Image Representing It
Thanks! What not better to do but practice using love by creating a pong game. --(800,600)=sizelengthx, sizelegnthy function love.load() love.graphics.setBackgroundColor(0,0,0) end function love.draw() love.graphics.setColor(255,255,255) local top=love.graphics.rectangle("fill",0,0,800,12....
- Wed Jan 25, 2012 8:10 pm
- Forum: Support and Development
- Topic: Creating a GUI Without an Image Representing It
- Replies: 2
- Views: 1165
Creating a GUI Without an Image Representing It
Is it possible in Love2D? I'm familiar with Lua, but I'm fairly new to Love. I know how to use images and upload them and such, along with create texts. However, I have no idea how I can create a GUI. For example: a square. Is it possible? If so, any examples? Thanks!
- Tue Jan 24, 2012 10:52 pm
- Forum: Support and Development
- Topic: Hiya All!
- Replies: 2
- Views: 1250
Hiya All!
I'm actually new to Love2D, but I do, however, have experience coding in Lua. I was wondering if anyone had any good example code I can lerk and try to learn some Love2D methods/events and such. Thanks!