Search found 23 matches

by elnanni
Thu Jan 07, 2010 3:31 am
Forum: DS/DSi Development
Topic: Threads -parallel process-
Replies: 3
Views: 4099

Threads -parallel process-

Ok, so I want to draw something in the touch screen, and it takes a while, but at the same time I want to draw something else in the other screen, so, I know I can do both drawings at the same time, but I don't want to mix drawings, so, is there a way to do parallel processing in the DS?? If not, I ...
by elnanni
Fri Jan 01, 2010 11:25 pm
Forum: DS/DSi Development
Topic: Problem reading bitmap pixel by pixel
Replies: 7
Views: 8343

Re: Problem reading bitmap pixel by pixel

Ok, I'm not really good explaining myself :S, and it's worst in other language :S. Anyway, I'll try: bgGetGfxPtr(bg)[n] - size 2 bytes: |x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x| tilesBitmap[n] - size 4 bytes, so, it contains 2 pixels instead of one, and that is what I did not understand. |x1|x1|x1|x1|x1|x1|...
by elnanni
Fri Jan 01, 2010 5:43 am
Forum: DS/DSi Development
Topic: Alpha in the same background??
Replies: 7
Views: 7088

Re: Alpha in the same background??

It's an interesting project :D. I like people sharing knowledge :D. It's not what I'm loking to achieve but it's good :D.
by elnanni
Fri Jan 01, 2010 4:43 am
Forum: DS/DSi Development
Topic: Problem reading bitmap pixel by pixel
Replies: 7
Views: 8343

Re: Problem reading bitmap pixel by pixel

OH DEAR GOD... Hehehe, Why?? I'm learning :S, I love to code, but I've always been a high level developer, so I find it difucult to think in low leve. Any way, I found the problem :D... void drawTile(int bg, int tileYStart, int tileXStart, int scrY, int scrX){ int tileY; int tileX; int screenY; int...
by elnanni
Thu Dec 31, 2009 2:49 am
Forum: DS/DSi Development
Topic: Problem reading bitmap pixel by pixel
Replies: 7
Views: 8343

Re: Problem reading bitmap pixel by pixel

Yes, that image holds tiles, but I need to draw each tile pixel y pixel, not 8x8 or 16x16 or 32x32 (each tile is 32x32, but as I said, I need to draw it pixel by pixel). So, I'm not using tiles at all, I just want to read the data from the tileBitmap array so I can retrieve each pixel color. So,my g...
by elnanni
Thu Dec 31, 2009 1:49 am
Forum: DS/DSi Development
Topic: Problem reading bitmap pixel by pixel
Replies: 7
Views: 8343

Problem reading bitmap pixel by pixel

Hi, I've a 32x320 png called tiles, and I'm creating the tilesBitmap variable tanks to grit, then I try to read each pixel: for(iy = 0; iy < 1024; iy++){ tmp3 = 0; for(ix = 0; ix < 32; ix++){ bgGetGfxPtr(bgTop2)[tmp3+tmp*256] = tilesBitmap[ix+iy*16]; tmp3 += 1; } tmp++; } the height is drawn good bu...
by elnanni
Tue Dec 15, 2009 2:32 am
Forum: DS/DSi Development
Topic: multiple sprite
Replies: 0
Views: 2398

multiple sprite

Ok, so I've had a great progress in my programming :D, you can see it in you tube here http://www.youtube.com/watch?v=RyOMgGkeDe8 . Ok, so, I could dinamically draw my isometric tiles, but I'm having some trouble to draw elevations, I'll check that in a near future, the problem now is that I want mo...
by elnanni
Sat Dec 12, 2009 5:04 am
Forum: DS/DSi Development
Topic: Alpha in the same background??
Replies: 7
Views: 7088

Re: Alpha in the same background??

Ok, so I was able to do it, I used two text backgrounds to achieve this, but I really did not like the way I did it. In the less priority bg I draw this tiles: http://img691.imageshack.us/img691/8772/oner.png Then the bg with more priority has this: http://img695.imageshack.us/img695/9893/dosa.png A...
by elnanni
Fri Dec 04, 2009 4:54 pm
Forum: DS/DSi Development
Topic: String functions in C++
Replies: 4
Views: 5222

Re: String functions in C++

sprintf :D to change the char array :D. Hope it helps, any way, as I used it, I had to set the lenght at the begining, but it's posible to change the lenght during execution: char sText[30] = "Hola"; ... sprintf(sText, "Text"); ... You can also write variables in it: char sText1[...
by elnanni
Mon Nov 30, 2009 9:07 pm
Forum: DS/DSi Development
Topic: Alpha in the same background??
Replies: 7
Views: 7088

Re: Alpha in the same background??

Hehe, never thought that could be a problem, he. Any way, just refresh the forbiden page and the image should be shown. So, looks like I was not able to explain myself, ok. I have this tiles TTBBBBBBBBBBB BBBBBBBBBBBTT and TTGGGGGGGGG GGGGGGGGGTT T = Transparent B = Blue G = Green For example, and a...