Search found 72 matches
- Mon Apr 13, 2009 3:48 pm
- Forum: Libraries and Tools
- Topic: CAMERA: scrolling and scaling
- Replies: 50
- Views: 40686
Re: CAMERA: scrolling and scaling
I kept meaning to check this out but I haven't had a lot of time. I just hooked it into MD in about five minutes with a few minor adjustments. This has great utility, thanks for providing it. Right now I'm performing the nasty love.system.restart() when resolution changes because just resetting the ...
- Mon Apr 13, 2009 3:44 pm
- Forum: Games and Creations
- Topic: Militia Defense (2009-07-17)
- Replies: 58
- Views: 40682
Re: Militia Defense (2009-04-13)
Can you provide some more information?whitebear wrote:Bug... All units that reach the spawn points shoot at it... (no need for anyone to spawn)
Done, at long last. Osuf's camera library made it trivial.Sparx wrote:Plz make it possible to change videomodes if the game is natively that big (it didn't fit on my screen).
- Fri Apr 10, 2009 3:24 am
- Forum: General
- Topic: making love with FireFox
- Replies: 3
- Views: 2352
- Thu Apr 09, 2009 10:07 pm
- Forum: General
- Topic: classes in Lua???
- Replies: 13
- Views: 11361
Re: classes in Lua???
You shouldn't actually have to recurse anything. When you do something like 'bnvar = Button.new()', you're making an instance of Button. The values you initialize in Button.new are private to bnvar but bnvar has been hooked up to Button (via metatable) so if you have something like Button:Draw() or ...
- Thu Apr 09, 2009 1:40 am
- Forum: General
- Topic: classes in Lua???
- Replies: 13
- Views: 11361
Re: classes in Lua???
This is along the lines of what bartbes was talking about. It's how I do it. Button = {} Button.__index = Button function Button.new(name, text, width, height, x, y, bgcolor, fgcolor, hcolor, func) local bn = {} setmetatable(bn, Button) bn.name = name bn.text = text bn.width = width bn.height = heig...
- Fri Mar 27, 2009 8:37 pm
- Forum: Support and Development
- Topic: Which .lua Editor do you use?
- Replies: 33
- Views: 23629
Re: Which .lua Editor do you use?
I use nano with lua highlighting (http://tyranny.ckt.net/.nanorc)
- Sun Mar 15, 2009 4:51 am
- Forum: Games and Creations
- Topic: Militia Defense (2009-07-17)
- Replies: 58
- Views: 40682
Re: Militia Defense (2009-03-12)
Did you build a specific type of unit over and over again or did you vary them? Did you focus on numerous level 1 units or did you perform upgrades?
- Sat Mar 14, 2009 5:14 pm
- Forum: Support and Development
- Topic: Detecting weather the mouse is in a `quad`
- Replies: 7
- Views: 3286
Re: Detecting weather the mouse is in a `quad`
This should have much less overhead since we're not trying to turn the scene into 3d first. function draw() if(quadHit(mx, my, 200, 200, 150, 150, 100, 200, 150, 250)) then love.graphics.setColor(red) else love.graphics.setColor(white) end love.graphics.quad(love.draw_fill, 200, 200, 150, 150, 100, ...
- Thu Mar 12, 2009 2:52 pm
- Forum: Games and Creations
- Topic: Militia Defense (2009-07-17)
- Replies: 58
- Views: 40682
Re: Militia Defense (2009-03-12)
The main download should be up to date now.
I can't believe I forgot to check my sound toggle, but that's fixed as well. Thanks for pointing that out.
I'm not feeling the new gore graphics, but the 'bleed' particles could probably be improved.
I can't believe I forgot to check my sound toggle, but that's fixed as well. Thanks for pointing that out.
I'm not feeling the new gore graphics, but the 'bleed' particles could probably be improved.
- Thu Mar 12, 2009 2:25 pm
- Forum: Support and Development
- Topic: Detecting weather the mouse is in a `quad`
- Replies: 7
- Views: 3286
Re: Detecting weather the mouse is in a `quad`
I completely misread your question, sorry about that. In my 3d work I use the Moller / Trumbore ray/triangle intersection algorithm. The attached file has a full demo that I whipped up inside my basic framework. Here's a lua port for love: function quadHit(x, y, x1, y1, x2, y2, x3, y3, x4, y4) local...