Search found 46 matches

by Nexion
Thu Oct 16, 2008 1:42 pm
Forum: Support and Development
Topic: Getting the movement like this.
Replies: 11
Views: 11983

Re: Getting the movement like this.

surtic wrote:Yes, LÖVE uses degrees, but Lua (math.sin and math.cos) uses radians...

Ah well...
That's not that big of a deal; just use the conversion functions

math.rad(degrees) --Converts degrees to radians
math.deg(radians) --Converts radians to degrees
by Nexion
Thu Oct 02, 2008 2:05 pm
Forum: General
Topic: Sierpinski's Gasket
Replies: 3
Views: 3970

Re: Sierpinski's Gasket

Blegh, that old one looks friggin ugly. Here's a newer version that looks a LOT smoother. http://www.cubeupload.com/files/942d28sierpinksisgasketlove.jp.jpg How would I check to make sure the points are within the base 3 triangle points? They're defined by 6 variables, topPointX/Y, leftPointX/Y, rig...
by Nexion
Thu Oct 02, 2008 12:53 am
Forum: General
Topic: Sierpinski's Gasket
Replies: 3
Views: 3970

Sierpinski's Gasket

http://www.cubeupload.com/files/40bfe3sieprinskisgasketlove.jp.jpg Thought I'd show off some fractal goodness I made with LOVE. The code is retardedly simple, I used the Chaos Game method. (pick a point, and pick a corner of the triangle randomly, then draw a point 1/2 way between the two. with eno...
by Nexion
Fri Sep 26, 2008 1:46 pm
Forum: Support and Development
Topic: Imaginary numbers?
Replies: 3
Views: 2859

Re: Imaginary numbers?

Awesome! Thank you!
Does anyone know how the deeper parts of the Mandelbrot Set work? From what I've read it iterates through all the pixels and colors them accordingly, but the equation is Z = Z^2 * C, which escapes me simply due to I have no idea how to actually implement that into the code itself.
by Nexion
Thu Sep 25, 2008 9:35 pm
Forum: Support and Development
Topic: love 0.5.0 Patch to support game.conf comment lines
Replies: 3
Views: 3004

Re: love 0.5.0 Patch to support game.conf comment lines

I don't know if the .conf files support it, but I know a lot of configuration files and stuff use the C style comment of //
by Nexion
Thu Sep 25, 2008 2:13 pm
Forum: Support and Development
Topic: Imaginary numbers?
Replies: 3
Views: 2859

Imaginary numbers?

I wanted to test to see how well LOVE could handle a fractal, or if Lua could even support it; but I can't find any way to do imaginary numbers with Lua. There is no math.i or anything to represent math.sqrt(-1), and that would error the program anyway. Can anyone think of a way to get imaginary num...
by Nexion
Tue Sep 23, 2008 1:40 pm
Forum: Support and Development
Topic: Apply velocity in relation to getAngle()
Replies: 3
Views: 3148

Re: Apply velocity in relation to getAngle()

The thing that jumps out to me is your calculations for sPosX and sPosY - you are scaling your sine and cosine results by the location of your turrets - that seems odd to me. I was doing that to try to get the projectile to spawn at the end of the barrel Here is the update function of the code func...
by Nexion
Tue Sep 23, 2008 1:31 pm
Forum: Support and Development
Topic: Apply velocity in relation to getAngle()
Replies: 3
Views: 3148

Re: Apply velocity in relation to getAngle()

Yeah, sorry about the slightly redundant code. I always clean things up after i get them working, which kinda screws me over some times.
by Nexion
Mon Sep 22, 2008 2:29 pm
Forum: Support and Development
Topic: Apply velocity in relation to getAngle()
Replies: 3
Views: 3148

Apply velocity in relation to getAngle()

I'm trying to get some simple cannons to work, but my angles keep getting screwed up for some reason. My current code attempts to get the end of the barrel (which doesn't work quite right either) then throws the bullet outward with the angle of the barrel, but it always has a bias to the right. last...
by Nexion
Thu Sep 18, 2008 10:53 pm
Forum: Support and Development
Topic: Odd setAngle problem
Replies: 3
Views: 4239

Re: Odd setAngle problem

Ugh... You know I tried using atan2 but it didnt work.
Your code works perfectly though. Thank you.