gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > DNA Fall (Compile)

#142395 - Jakeohagan - Mon Oct 08, 2007 10:36 pm

Can some one compile (or what ever you may call it.) this C++ code for a ds?

i want it to go on both screens and not freeze or anything.

IF some one could do this for me then give me booth the .nds and your finished C++ file i would love to see the code and learn a little more.

heres the file - http://www.mediafire.com/?08kxstm5txg


after this we are going to paly with the code and make it say different things and what not we just really want to see if this can be done.

thanks in advance!

ps when some one does this can they tell me how long it took them?


-edit-


also is this were i post something like this? or in the DS development page or is this right?
_________________
God Speed

#142397 - Lick - Mon Oct 08, 2007 10:52 pm

Maybe you'd want to tell us more about DNA Fall and what the file you're linking to is/contains.
_________________
http://licklick.wordpress.com

#142401 - Jakeohagan - Mon Oct 08, 2007 11:07 pm

Lick wrote:
Maybe you'd want to tell us more about DNA Fall and what the file you're linking to is/contains.


well its really simple This older dude and i have a Multimedia class together and we were trying to make a Moving text picture thing.

I wanted the matrix but we just did this.

Quote:
#include <stdio.h>
#include <stdlib.h>
#include <iostream.h>

int main(int argc, char *argv[])
{
int steps,display;

steps=7000;
display=9;

do{


cout<<"Step "<<steps<<": |* |"<<endl;
//steps=steps+1;
cout<<"Step "<<steps<<": | * |"<<endl;
//steps=steps+1;
cout<<"Step "<<steps<<": | * |"<<endl;
//steps=steps+1;
cout<<"Step "<<steps<<": | * |"<<endl;
//steps=steps+1;
cout<<"Step "<<steps<<": | * |"<<endl;
//steps=steps+1;
cout<<"Step "<<steps<<": | * |"<<endl;
//steps=steps+1;
cout<<"Step "<<steps<<": | * |"<<endl;
//steps=steps+1;
cout<<"Step "<<steps<<": | * |"<<endl;
//steps=steps+1;
cout<<"Step "<<steps<<": | * |"<<endl;
//steps=steps+1;
cout<<"Step "<<steps<<": | *|"<<endl;
//steps=steps+1;
cout<<"Step "<<steps<<": | * |"<<endl;
//steps=steps+1;
cout<<"Step "<<steps<<": | * |"<<endl;
//steps=steps+1;
cout<<"Step "<<steps<<": | * |"<<endl;
//steps=steps+1;
cout<<"Step "<<steps<<": | * |"<<endl;
//steps=steps+1;
cout<<"Step "<<steps<<": | * |"<<endl;
//steps=steps+1;
cout<<"Step "<<steps<<": | * |"<<endl;
//steps=steps+1;
cout<<"Step "<<steps<<": | * |"<<endl;
//steps=steps+1;
cout<<"Step "<<steps<<": | * |"<<endl;
//steps=steps+1;

}while (display!=10);

getchar();
return 0;
}



and it moves back and forth at a fast rate, if you look at it long enough it looks like its a twirling dual DNA string.

is that what you wanted to know.....[/quote]
_________________
God Speed

#142409 - Lick - Mon Oct 08, 2007 11:46 pm

Yes it makes sense now.

I have uploaded the project. It resembles what you've pasted in the above post, but adds the libnds magic powder so it works on the DS.
It also includes a binary (nds). Currently it doesn't look like a twirling dual DNA string, because what you've pasted above simply isn't a twirling dual DNA string either. And I think the term is "double helix". ;)
_________________
http://licklick.wordpress.com

#142410 - Jakeohagan - Mon Oct 08, 2007 11:59 pm

oh thanks dude!

right now I'm trying to learn how to do this stuff on my own from this tutorial.

http://www.dev-scene.com/NDS/Tutorials_Day_1

but i totally don't know how to compile hahah I'm lost and I'm trying to find a compile tool or how to make it compile using command prompt.
_________________
God Speed

#142428 - Myran - Tue Oct 09, 2007 2:28 am

http://www.myran.com/dna.rar
I guess this is probably more like what you wanted to achieve?
To compile you need a makefile (like the one in the rar files), then just go to the directory with the command prompt and type "make".

#142433 - Jakeohagan - Tue Oct 09, 2007 3:48 am

Myran wrote:
http://www.myran.com/dna.rar
I guess this is probably more like what you wanted to achieve?
To compile you need a makefile (like the one in the rar files), then just go to the directory with the command prompt and type "make".


holy shit yeah thats what i wanted thanks!

now i just type in make?

-edit-

WAIT wheres the command prompt?

my directatiory for dev is
C:/Devkitpro/

is it a special one or do i just open up my normal one mount the drive and type make or do ijsut type make in a CP?
_________________
God Speed