VicShroom - My first Vic prod

Basic and Machine Language

Moderator: Moderators

Post Reply
User avatar
Mike
Herr VC
Posts: 4832
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Re: VicShroom - My first Vic prod

Post by Mike »

tonyrocks wrote:oh man, that is great! HEHE. Love it. I wanted to see how much I could do with low res and basic.
Now it's a little more high res and still in BASIC. ;)

In case you're wondering what tools I used to pull this off, I first took a screenshot and repixeled the mushroom in MINIPAINT:

Image

As you see, the multicolour pixels are twice-wide, and I put three of them for each original block to better match the square aspect ratio (it's about perfect for NTSC, in PAL they're still a bit elongated). The resulting picture was stored into the file 'artwork.prg' (download) ...

... and then I used this little program (which requires the MINIGRAFIK extension) to export the 24 chars into a "character set" at $A000:

Code: Select all

1 @LOAD"ARTWORK.PRG",8:AD=40960
2 FORY2=0TO5:FORX2=0TO3:FORY=0TO7
3 POKEAD,PEEK(4352+X2*192+Y2*8+Y):AD=AD+1
4 NEXT:NEXT:NEXT
5 @RETURN
I chose $A000 so the character data was "out of the way" at a save place for the moment. Next step was to turn this into a DATA loader with DATA maker. Then it was just necessary to change the FOR loop so the character set would be loaded to 7168 instead.

The rest of the program was done with Notepad on Windows. ;)
Post Reply