|
Post by sega16 on Jun 12, 2012 20:33:09 GMT -5
I have decided to release the source code for my old game Dr.robotnik the video game for the sega genesis in hopes that someone will learn from it. www.mediafire.com/download.php?xljeo7vd4dhgv69I hope that this will re-spark an interest in bex. Also feel free to modify or improve upon on anything. Edit please re-download the new zip file should have a README.txt in the root directory if not redownload
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jun 13, 2012 9:01:05 GMT -5
Thanks once again! There's alot of handy stuff in there and ALOT to learn. To start, could you explain how to use your DrawTiles16 routine? I'm not sure what the arguments are. Also, what is the benefit compared to the standard BEX DrawTiles routine?
Declare Asm Sub DrawTiles16(d5.l, d0.w, d1.w, d2.w, d3.w, d4.w) movea.l d5,a0 subq.b #1,d2 subq.b #1,d3 move.w #$2700,sr and.l #63,d0 and.l #63,d1 and.l #511,d2 and.l #511,d3 lsl.w #6,d1 add.w d1,d0 move.w d2,d1 lsl.l #3,d0 lsr.w #2,d0 swap d0 add.l (GFX_PLANE),d0 move.w #$8F02,4(a4) @1: move.l d0,4(a4) @2: move.w (a0)+,d7 add.w d4,d7 move.w d7,(a4) dbf d2,@2 add.l #$800000,d0 move.w d1,d2 dbf d3,@1 move.w #$2000,sr End Sub
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jun 13, 2012 9:31:32 GMT -5
What is the benefit compared to the standard BEX DrawTiles routine? The build-in drawtiles command only uses the lower byte of a name-table word ( which means you cannot use priority / palette / flip and such ), while the DrawTiles16 routine uses the entire word. By the way, Mairtrus posted the DrawTiles16 routine years ago.
|
|
|
Post by sega16 on Jun 13, 2012 9:48:06 GMT -5
Yep it is Mairtrus's sub it is relay useful for me the drawtiles command never seems to work for me but this does exactly what I need it to do: draw a tilemap on the screen.
|
|
|
Post by sega16 on Dec 25, 2012 9:26:50 GMT -5
Someone on youtube messaged me about it not compiling turns out that the zip file was missing some stuff please re-download and follow instructions in README.txt
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Dec 28, 2012 17:18:20 GMT -5
Confirmed your new .ZIP and the readme.txt instructions work! Thanks again Sega16
|
|
|
Post by sega16 on Dec 28, 2012 21:40:03 GMT -5
What that you who messaged me on youtube? Whether yes or no I am glad to help.
|
|