Search found 277 matches

by kraftman
Tue Oct 11, 2011 7:38 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 328
Views: 607422

Re: Share a Shader!

adrix89 wrote:
caleidoscope.love
:cry: Image buffer does not compile

It doesn't like the word buffer, here's a quick fix:
caleidoscope-fixed.love
(864 Bytes) Downloaded 2238 times
by kraftman
Mon Oct 10, 2011 11:48 pm
Forum: Support and Development
Topic: Playing animations
Replies: 9
Views: 3652

Re: Playing animations

the value passed to love.update is actually the time since the last frame: so while it is in seconds, it is usually very low (0.016 for 60fps) so if, for example, you wanted something to occur roughly every second, you would do something like: local timer = 0 local interval = 1 function love.update(...
by kraftman
Mon Oct 10, 2011 9:12 pm
Forum: Libraries and Tools
Topic: Procedural texture generator (concept)
Replies: 15
Views: 8455

Re: Procedural texture generator (concept)

Oh god this is perfect! Thankyou!
by kraftman
Mon Oct 10, 2011 6:28 pm
Forum: Support and Development
Topic: Regarding placing/removing blocks in game.
Replies: 12
Views: 5553

Re: Regarding placing/removing blocks in game.

I'M THE BESTEST! GEIF ME KARMAZ!
by kraftman
Mon Oct 10, 2011 6:15 pm
Forum: Support and Development
Topic: Regarding placing/removing blocks in game.
Replies: 12
Views: 5553

Re: Regarding placing/removing blocks in game.

If your blocks are going to be in a grid like terraria/minecraft, you don't even need to use a loop: you can just divide the mouse coordinates by the block size and then round down, to get the exact block you want to change. Eg: local grid_size = 40 local block_grid = {} local block_size = 10 for i ...
by kraftman
Mon Oct 10, 2011 5:57 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 328
Views: 607422

Re: Share a Shader!

Sorry for the double post, but it seems i cant attach more than 3 files. This is a test drawing application with layers. It uses a shader to display the color picker (middle mouse button) since chosing colors needs to be fairly responsive: Drawing test1.love This is an accident while making the sand...
by kraftman
Mon Oct 10, 2011 5:46 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 328
Views: 607422

Share a Shader!

Seeing as shaders are pretty new and there aren't many examples yet, I thought It'd be nice to pool together what we've come up with so far, so that people who're interested in checking them out before 0.8 is properly out can see what they can do and have a play. I'll dump a few I've come up with so...
by kraftman
Mon Oct 10, 2011 9:47 am
Forum: General
Topic: completely lost.
Replies: 22
Views: 4439

Re: completely lost.

bartbes wrote:I didn't even read any aggression until you mentioned a fight.. I suppose you could interpret it like that, but I doubt it's meant that way.

People find aggression where they want to.

Go fuck yourselves.
by kraftman
Sun Oct 09, 2011 12:36 pm
Forum: General
Topic: completely lost.
Replies: 22
Views: 4439

Re: completely lost.

PIL only shows you how to properly use Lua functions, it doesn't teach you all of the necessary things to program anything. In fact you might say it doesn't teach you to program at all, it's not really a tutorial but a reference. Start tinkering and looking at other LOVE projects. Take one you like...
by kraftman
Sun Oct 09, 2011 3:04 am
Forum: Support and Development
Topic: Current uses for threads
Replies: 11
Views: 4225

Re: Current Uses for Threads

I think the threaded mandelbrot is a good example, it allows you to do a lot of calculations without it freezing everything. What have you tried doing so far? EDIT: as another example, I've used separate threads to generate procedural worlds in the background while the main thread is just concerned ...