Search found 277 matches
- 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...
- 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.
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.
- Thu Jul 21, 2011 10:32 pm
- Forum: Libraries and Tools
- Topic: Mandelbrot fractal maker
- Replies: 51
- Views: 24745
Re: Mandelbrot fractal maker
change xmin/xmax ymin/ymaxGijsB wrote:But does anybody know how to zoom into it xD?
- 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
Also found this which is quite cool:
http://www.youtube.com/watch?v=P3WdnLSI2hs
Spent a while reading up on it and playing with the code/colours
Also found this which is quite cool:
http://www.youtube.com/watch?v=P3WdnLSI2hs
- Thu Jul 21, 2011 6:00 pm
- Forum: Games and Creations
- Topic: Invader: arcade strategy game
- Replies: 63
- Views: 21123
- Thu Jul 21, 2011 5:11 pm
- Forum: Libraries and Tools
- Topic: Sprites
- Replies: 7
- Views: 3340
Re: Sprites
Try following the linked tutorial.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.
- 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 ...
- 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?![Razz :P](./images/smilies/ms-razz.png)
IMO commenting is less explaining your complicated code, more explaining your complicated problem.
Why does lua include "..." if functions shouldnt have arguments?
![Razz :P](./images/smilies/ms-razz.png)
IMO commenting is less explaining your complicated code, more explaining your complicated problem.
- 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...
- 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 ...