Code center > Darwinbots Program Source Code

Sentence Split

<< < (18/27) > >>

Zelos:
nums, I dont get what you mean with ur 2nd point, could you explain it a bit better?
and nums, whe ni look in the iersera file with VB, I dont find a file/form or what ever its called that is called anything with draw in it. I find datiriob,dna_help, database, dnaexcution , dnamanipulation and dnatokinization. but nothing draw, am I blind or am I looking at the wrong place?

Numsgil:
Look in the form "Form1".  There's a section inside it that does the drawing.

My second point...  I'm not really good at explaining this.  Basically it'd work like this:

Your main function only calls like 6 or 7 other functions.  These functions are named something really basic.  Then your main loop looks like:

do
  Updatebots
  Updateshots
  Drawbots
  Drawshots
loop

Or something like that.  Then the Updatebots function looks something like:

for x = 1 to 1000
  UpdateDNA
  UpdatePhysics
next x

or something like that.  You keep breaking the problem down into more and more sub functions.  It makes the program more readable, and is what is generally considered "proper" programming technique.

Zelos:
are you talking about mdiform1? if so I´ll take a look at it. thx

Numsgil:
Nope, Mdiform is different.  This is called "Form1".

Zelos:
OH, now ive found it, now I feel kinda silly

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version