Jump to content

  • Log In with Google      Sign In   
  • Create Account

14 years ago on June 15th Gamedev.net was first launched! We want to thank all of you for being part of our community and hope the best years are ahead of us. Happy birthday Gamedev.net!

#Actualaavci

Posted 12 December 2012 - 03:39 AM

You are trying to do the initialization-seperate-from-declaration in the class declaration which is not allowed. You probably should be doing something like this:
[source lang="csharp"]World[] W = new World[10];World[] O = new World[2] { new World(-1.6, 1.6, -1.0, 1.0, function.julia, 500), new World(-0.5, 1.5, 01.25, 1.25, function.mandelbrot, 500) };[/source]
Code not tested.

#1aavci

Posted 12 December 2012 - 03:38 AM

You are trying to do the initialization in the class declaration which is not allowed. You probably should be doing something like this:
[source lang="csharp"]World[] W = new World[10];World[] O = new World[2] { new World(-1.6, 1.6, -1.0, 1.0, function.julia, 500), new World(-0.5, 1.5, 01.25, 1.25, function.mandelbrot, 500) };[/source]
Code not tested.

PARTNERS