Search found 41 matches
- Mon Sep 05, 2011 7:14 pm
- Forum: Support and Development
- Topic: Issues with seek/tell
- Replies: 4
- Views: 2391
Issues with seek/tell
The attatched .love files behave very differently using ogg and wav; the ogg won't loop at 44100 samples..
Re: LoveJIT
Ooooo is that noise generated on the fly at 471fps?
Ensayia's code took 2 seconds with JIT, 14 seconds without..
Missing msvcr100.dll btw, can that be statically linked?
Ensayia's code took 2 seconds with JIT, 14 seconds without..
Missing msvcr100.dll btw, can that be statically linked?
- Tue Mar 29, 2011 8:57 pm
- Forum: General
- Topic: Increasing a counter on sound:isStopped()
- Replies: 1
- Views: 1276
Increasing a counter on sound:isStopped()
Hey guys, I need a little help with this; when the sound (you can't hear it) ends, I want the counter to increase by 1 when the sound plays again, but most of the time it increases by 2, 3, and I can't see why.. function love.load() oldcounter = 0 counter = 0 local samples = math.floor(1 * 44100) --...
- Sun Mar 27, 2011 1:30 am
- Forum: General
- Topic: Sound Effect Generator [as3sfxr-b]
- Replies: 9
- Views: 2240
Re: Sound Effect Generator [as3sfxr-b]
I don't think creating music on the fly is doable right now. You could use the timing functions, and trigger samples at, say 1/16 notes, but that wouldn't be very elegant, as the program's timing could differ every loop. I'd like it if we could use two buffers; while one is playing, we fill the othe...
- Wed Mar 16, 2011 10:27 pm
- Forum: Libraries and Tools
- Topic: Textured quad
- Replies: 1
- Views: 1389
Textured quad
Using the same rendering technique as my previous plasma project ( http://love2d.org/forums/viewtopic.php?f=5&t=2576#p27384 ), I've now modified it to display a textured quad. This is my last effort at per-pixel operations.. lol :x it's sloooow. Again, excuse my code, I've not yet learned about ...
- Sat Mar 12, 2011 7:50 pm
- Forum: General
- Topic: How to write this code in LUA?
- Replies: 10
- Views: 3154
Re: How to write this code in LUA?
"Type enemy" is like a blueprint for an enemy-being, it would include parameters like X, Y, size, strenght, image, inventory.. "Function CreateEnemy:Enemy(100, 100, small, mediumstrong, lizard) creates an instance of a new enemy.. it could be used over and over again, spawning enemies...
- Sat Mar 12, 2011 7:03 pm
- Forum: General
- Topic: How to write this code in LUA?
- Replies: 10
- Views: 3154
Re: How to write this code in LUA?
It's BlitzBasic Max
- Sat Mar 12, 2011 6:36 pm
- Forum: General
- Topic: How to write this code in LUA?
- Replies: 10
- Views: 3154
How to write this code in LUA?
Hey guys, I'm wondering how I would go about converting this BASIC code to LUA.. What's getting me is the "field X[4] and "en:enemy = new enemy". I've been looking at code from the people on this forum, but couldn't find anything like this; I really should read Programming in Lua. But...
- Tue Mar 08, 2011 8:44 pm
- Forum: General
- Topic: there has any tricks to improve FPS for old PC?
- Replies: 30
- Views: 15276
Re: there has any tricks to improve FPS for old PC?
success = love.graphics.setMode( 800, 600, false, false, 0 ) also does it
- Mon Mar 07, 2011 7:44 pm
- Forum: Libraries and Tools
- Topic: Per-pixel plasma / copperbars
- Replies: 12
- Views: 6980
Re: Per-pixel plasma / copperbars
Just tried running the code on my desktop; on my AMD Phenom II X4 965 3.4GHZ, Geforce GTX 460, I'm getting 98FPS, but if I change the frame limiting code to: function love.update( dt ) pp = pp + dt if pp > 1/15 then collectgarbage('collect') plasma() pp = 0 end love.timer.sleep( 1 ) end then I'm get...