Search found 277 matches

by kraftman
Thu Jul 21, 2011 11:23 pm
Forum: Libraries and Tools
Topic: Mandelbrot fractal maker
Replies: 51
Views: 24745

Re: Mandelbrot fractal maker

i tried changing the xmin,xmax,etc but all it does random crap.. help 3: this is what i have now = resolution =2 size = 100 kt = 50 m = 4.0 xmin = 2.1 xmax = -0.6 ymin = -1.5 ymax = 1.5 dx = (xmax-xmin)/size dy = (ymax-ymin)/size pixels = {} function run() function MainCalculation(jx, jy, wx, wy, k...
by kraftman
Thu Jul 21, 2011 10:54 pm
Forum: Libraries and Tools
Topic: Mandelbrot fractal maker
Replies: 51
Views: 24745

Re: Mandelbrot fractal maker

lol, you wrote it!

to zoom in, decrease their values, to zoom out, increase them. E.g. multiply all of their values by 0.9 to zoom in, 1.1 to zoom out.
by kraftman
Thu Jul 21, 2011 10:32 pm
Forum: Libraries and Tools
Topic: Mandelbrot fractal maker
Replies: 51
Views: 24745

Re: Mandelbrot fractal maker

GijsB wrote:But does anybody know how to zoom into it xD?
change xmin/xmax ymin/ymax
by kraftman
Thu Jul 21, 2011 10:26 pm
Forum: Libraries and Tools
Topic: Mandelbrot fractal maker
Replies: 51
Views: 24745

Re: Mandelbrot fractal maker

Very cool (runs much quicker in LoveJIT btw)

Spent a while reading up on it and playing with the code/colours
test1.png
test1.png (108.88 KiB) Viewed 8748 times
Also found this which is quite cool:

http://www.youtube.com/watch?v=P3WdnLSI2hs
by kraftman
Thu Jul 21, 2011 6:00 pm
Forum: Games and Creations
Topic: Invader: arcade strategy game
Replies: 63
Views: 21123

Re: Invader: arcade strategy game

It's also similar to Aurora:

http://www.youtube.com/watch?v=F41T2CpVdC8
by kraftman
Thu Jul 21, 2011 5:11 pm
Forum: Libraries and Tools
Topic: Sprites
Replies: 7
Views: 3340

Re: Sprites

Jordan4762 wrote:Ok, but I really need to know how to seperate that into different 'frames' in the coding, so I can, say, animate it.
Try following the linked tutorial.
by kraftman
Thu Jul 21, 2011 12:24 pm
Forum: Support and Development
Topic: Help me decide what to do next?
Replies: 30
Views: 20134

Re: Help me decide what to do next?

Nice explanation, thanks :) I think I was thinking of functions in the wrong way. In my mind one function that does all of the things it needs to do is less bulky then splitting it into loads of different functions. I learnt Lua through WoW so some of the first example code i saw had functions like ...
by kraftman
Thu Jul 21, 2011 8:56 am
Forum: Support and Development
Topic: Help me decide what to do next?
Replies: 30
Views: 20134

Re: Help me decide what to do next?

Why is it forbidden for a function to do two different things? What would you use instead?

Why does lua include "..." if functions shouldnt have arguments? :P

IMO commenting is less explaining your complicated code, more explaining your complicated problem.
by kraftman
Wed Jul 20, 2011 11:29 pm
Forum: Support and Development
Topic: How do you simple make a button?
Replies: 27
Views: 11251

Re: How do you simple make a button?

You need x and y coordinates to position the button, and a width and height to give it some substance. You then use the mousepressed function to check if the location of the mouse when it was pressed lies within the confines of your button. If you load an image, and set it to the same position and s...
by kraftman
Mon Jul 18, 2011 7:27 pm
Forum: Libraries and Tools
Topic: LuaEdit
Replies: 14
Views: 7823

Re: LuaEdit

I saw something sort of like this a while back. It was called Code Bubbles , which is think is a visual studio add-on. Being a very visual person myself I have to say this sounds quite awesome. Thats cool, I didn't really check what else had been done before i started making it, I'll check out the ...