|
Post by ScroGer on Apr 7, 2006 2:40:36 GMT -5
I'm trying to display a 320*224 pic but I cant seem to get the .bin file I made and included in my projects directory to work it just looks all mest up But when I copy and paste the tiles info from Imagen directly into the source code it works fine any idea why Here's the source code disable screen loadtiles tiles,1120,0 pallettes pallette,0,0,16 i=0 for y=0 to 27 for x=0 to 39 drawtile i,x,y i++ next next enable screen
tiles: datafile PIC_3.bin,bin
pallette:DATAINT $0222,$0444,$0442,$0222,$0422,$0224,$0866,$0242 DATAINT $0244,$0886,$0AAA,$0424,$0486,$0488,$0668,$0868
Thanks for the help
|
|
|
Post by Tulio Adriano on Apr 7, 2006 10:23:38 GMT -5
I really don't understand why this is happening, since I designed a code long ago and it uses the same logic as yours, here is a "copy-paste" from my source code. Pallettes PalletteData,0,0,16 LoadTiles TileData,1200,256
OffSt = 256 For I2 = 0 to 27 For I = 0 to 39 DrawTile OffSt,I,I2 OffSt++ Next Next
PalletteData: DATAINT $0EEE,$0E00,$0ECC,$0EAA,$0E66,$0E44,$0E88,$0000 DATAINT $0000,$0000,$0000,$0000,$0000,$0000,$0000,$0000
TileData: DataFile foto.bin, BIN
The basic difference between my code and your code is that I do not disable and enable the screen but that should not be the reason for messing up your display. Other thing different is that I start loading tiles from position 256 in VRAM because I use the fonts to write text to the screen... I'll try to figure out later... Cya!
|
|
|
Post by ScroGer on Apr 7, 2006 18:33:40 GMT -5
Thanks for the help Tulio Adriano ;D but I got it to work it was a simple fix.... ;D I forgot to save the format as a binary file I did save it as a .bin file but the format was in Basic Again thank you Peace
|
|