Search found 90 matches

by timmeh42
Tue Oct 16, 2012 12:26 pm
Forum: General
Topic: Textured primitives in Löve?
Replies: 4
Views: 1258

Re: Textured primitives in Löve?

Thanks slime, I didn't know that suggestions could be posted there - cool to see the discussion is ongoing, at least.
by timmeh42
Tue Oct 16, 2012 4:38 am
Forum: General
Topic: Textured primitives in Löve?
Replies: 4
Views: 1258

Textured primitives in Löve?

A feature I really like in Gamemaker is the ability to draw primtive shapes defined as sets of triangles, textured with an image stretched over the triangle. The great usefulness of this lies in drawing distorted images, among other things. I realise that this would be significantly harder to implem...
by timmeh42
Sun May 27, 2012 6:24 pm
Forum: Support and Development
Topic: Randomly choose negative or positive while excluding zero
Replies: 20
Views: 1879

Re: Randomly choose negative or positive while excluding zer

Boolsheet wrote:^ is faster because math.pow involves a table lookup and a function call.
And " ^ " isn't just a reference call to math.pow? And if not, why does math.pow use a slow method, when lua is supposedly a fast language?
by timmeh42
Sun May 27, 2012 9:15 am
Forum: Support and Development
Topic: Randomly choose negative or positive while excluding zero
Replies: 20
Views: 1879

Re: Randomly choose negative or positive while excluding zer

Ah damn, i thought it was integers only. (and that was a very silly thing to think, too, considering I was reading straight out of the manual) local num = math.pow(-1,math.random(0,1)) That should work, but probably still slower than others. Also is " ^ " allowed? And if so why should it be faster t...
by timmeh42
Sun May 27, 2012 8:51 am
Forum: Support and Development
Topic: Randomly choose negative or positive while excluding zero
Replies: 20
Views: 1879

Re: Randomly choose negative or positive while excluding zer

Code: Select all

local num = math.pow(-1,math.random())
Maybe this? Least hackish, as it doesn't involve any other number than -1, but the math.pow might be slow.
by timmeh42
Mon May 07, 2012 4:06 pm
Forum: Libraries and Tools
Topic: Cheap-Ass Metaballs
Replies: 15
Views: 3192

Re: Cheap-Ass Metaballs

Yeah, sorry mate, but unfortunately this really cannot be done without canvases (actually, maybe stencil masks might work? But if you don't support canvases, can you support those?) [actually, I have no idea how stencils work.] EDIT: Maybe one could draw all the necessary stuff way off screen using ...
by timmeh42
Sun May 06, 2012 7:53 am
Forum: Support and Development
Topic: Good noise programs?
Replies: 4
Views: 604

Re: Good noise programs?

I second SudoCode's suggestion, but I'd give my vote to the next incarnation, which can be used offline as well: http://www.bfxr.net/ (For reference, as3sfxr and bfxr are developed from DrPetter's sfxr , which is a bit simpler) Unfortunately, these programs can only produce "8-bit" sounds. Realistic...
by timmeh42
Sat May 05, 2012 6:51 am
Forum: Libraries and Tools
Topic: Psionics game
Replies: 9
Views: 2575

Re: Psionics game

You probably won't see much bullet drop in a sidescroller game - considering that bullets go very fast, and unless you want to be zoomed out a heck of a lot, you won't see them travelling very far. Maybe rather have things (giant magnets?) that influence the bullets' paths more severely.
by timmeh42
Wed May 02, 2012 4:50 pm
Forum: Libraries and Tools
Topic: Cheap-Ass Metaballs
Replies: 15
Views: 3192

Re: Cheap-Ass Metaballs

Hey yeah that does look rather good, although individual droplets are a bit too bouncy without any inter-molecular forces. I guess I should mention that using a sinusoidal gradient is probably not the best way; using a hyperbolic gradient might be better as it would give a larger range of sizes for ...
by timmeh42
Tue May 01, 2012 6:30 pm
Forum: Libraries and Tools
Topic: Metalines
Replies: 6
Views: 2136

Re: Metalines

It is a very interesting way to do rooms, but why do you need to use metalines? Surely you can just draw thick lines normally - unless you require the rounded corners?
EDIT: Must say it does give a very organic look that would be great for caves.