Search found 173 matches

by oofwill
Wed Feb 06, 2013 10:53 pm
Forum: SGDK
Topic: Sega Genesis Dev Kit (SGDK)
Replies: 789
Views: 343256

When i compile with SGDK & code blocks, this return me error when without %

To say the truth, i don't know how to configure the assembler so it was more easier for me to add the % symbol :lol:
by oofwill
Wed Feb 06, 2013 10:30 pm
Forum: SGDK
Topic: Sega Genesis Dev Kit (SGDK)
Replies: 789
Views: 343256

It seems there's an error in sram_a.s file file is SRAM_readWord: move.l 4(%sp),d1 add.l %d1,%d1 lea 0x200001,%a0 lea (%a0,%d1.l),%a0 moveq #0,%d0 movep.w 0(%a0),%d0 rts think it should be SRAM_readWord: move.l 4(%sp),%d1<--------------------% is forgotten add.l %d1,%d1 lea 0x200001,%a0 lea (%a0,%d1...
by oofwill
Thu Jan 31, 2013 4:53 pm
Forum: SGDK
Topic: Using a map
Replies: 16
Views: 4199

Thanks, i will study with attention :)
by oofwill
Tue Jan 29, 2013 2:14 pm
Forum: SGDK
Topic: Using a map
Replies: 16
Views: 4199

I'm using assembly only for map. i think i'm complicating things :lol:
by oofwill
Tue Jan 29, 2013 1:54 pm
Forum: SGDK
Topic: Using a map
Replies: 16
Views: 4199

Ok i see. My map is declared as : * --------------------------- .global level1_map level1_map: * --------------------------- * size:47520 bytes dc.w 0x0000 dc.w 0x0000 dc.w 0x0000 dc.w 0x0000 dc.w 0x0000 dc.w 0x0000 dc.w 0x0000 dc.w 0x0000 dc.w 0x0000 dc.w 0x0000 dc.w 0x0000 dc.w 0x0000 dc.w 0x0000 ...
by oofwill
Tue Jan 29, 2013 12:49 pm
Forum: SGDK
Topic: Using a map
Replies: 16
Views: 4199

Ok i see.

What is maximum size for it?
I will do it in several files :)

Yes, i really like Miracle World and want to play it sometimes, but don't want to plug in my master system :lol:

Don't sure i made the good choice beetwen plug my old system or reprogram the game :lol:

thanks :)
by oofwill
Tue Jan 29, 2013 12:30 pm
Forum: SGDK
Topic: Using a map
Replies: 16
Views: 4199

Hi, I'm now able to use a map correctly as you can see here However, map is just 320*1728 pxls. I've tried to test with a big map (792*1920pxl) and the problem is i can't compile project anymore: -------------- Build: default in Miracle_World_MD --------------- Using makefile: C:\SGDK\makefile.gen l...
by oofwill
Wed Jan 23, 2013 5:47 pm
Forum: SGDK
Topic: Using a map
Replies: 16
Views: 4199

Thanks for advice, i've been thinking this night and this is the solve i found.

I'll create a table in wich i copy map of the objects, as you say.

Thanks again, it's always more easier to find response when problem is written on a board, and after a good night too :lol:
by oofwill
Tue Jan 22, 2013 9:20 pm
Forum: SGDK
Topic: Using a map
Replies: 16
Views: 4199

With your comment i begin to understand that what i'm trying to do is impossible. :lol:

So i suppose i can't modify a value in map because it's read directly from rom?

How can i do to have a plan of where my items are, and modify it when one item is taken?
by oofwill
Tue Jan 22, 2013 8:53 pm
Forum: SGDK
Topic: Using a map
Replies: 16
Views: 4199

Using a map

I'm trying to use a map generated by genitile. I'm using two map. One for drawing foreground of level, the second for object to collect (ex gold pieces) I'm able to read the map so i can draw my foreground. Then, able too to place my gold pieces using the second map. But while taking a gold piece, i...
by oofwill
Mon Jan 14, 2013 4:50 pm
Forum: SGDK
Topic: Sega Genesis Dev Kit (SGDK)
Replies: 789
Views: 343256

With the last update, yes.

You can read this thread to learn more about savegame ;)
by oofwill
Mon Jan 14, 2013 4:48 pm
Forum: SGDK
Topic: Showing special charactes with SGDK
Replies: 3
Views: 1395

I'm afraid you'll have to draw your own font...

Or just replace unused characters by your new in memory...

This is the easiest way, to use it with VDP_drawText().
by oofwill
Sat Dec 22, 2012 4:33 pm
Forum: Megadrive/Genesis
Topic: using a map created by MDPPY
Replies: 12
Views: 2543

It's working! I don't know why but it's working. I've tried and tried again, and finally it's working: for (i=0; i<=45; i++) //affichage de notre niveau visible { k++; l=0; for(j=0; j<=30; j++) { VDP_setTileMap(APLAN, TILE_ATTR(1,0,0,0)+(level1_map[i+j*160]+1), k, l); l++; } } Many thanks djcouchyco...
by oofwill
Sat Dec 22, 2012 3:15 pm
Forum: Megadrive/Genesis
Topic: using a map created by MDPPY
Replies: 12
Views: 2543

Thanks moon watcher, i will have a look at this :) Djcouchycouch, for (i=0; i<=45; i++) { for(j=0; j<=30; j++) { VDP_setTileMap(APLAN, TILE_ATTR(1,0,0,0) + 1), i, j); } } doesn't work at all, an argument is missing :| Sure my map is 160*30. I'm not using MDPPY++ anymore. I'm drawing my map in 16 col...
by oofwill
Sat Dec 22, 2012 1:37 pm
Forum: Megadrive/Genesis
Topic: using a map created by MDPPY
Replies: 12
Views: 2543

Result is the same, but VDP_setTileMap(plan, tile, x, y) is really fast! :shock: