10-31-2011, 07:18 PM
slenkar Wrote:oh thats ok i just wondered,
would it require much change to get
8x16-character like manic miner
16x8-spaceship like R-Type
8x8 - bullets
Since the sprite size is hard coded into the assembly section, it's not really trivial; though the size changes you're proposing are not too bad.
You might be better off using just part of the sprite space - er even being really clever and arranging some preshifted sprites, and changing the sprite graphics to allow your man to walk part of the way across the 16 pixel space - as he moves left, you change the sprite to make him look like he's headed left. Of course, you may be better off using the block put routines I developed for this sort of purpose instead.
You should read previous forum threads:
A 2x2 puttile routine, that paints a 2x2 thing to the screen pretty fast:
<!-- l --><a class="postlink-local" href="http://www.boriel.com/forum/how-to-tutorials/topic457.html">how-to-tutorials/topic457.html</a><!-- l -->
A putchars routine that paints any size graphic to the screen:
<!-- l --><a class="postlink-local" href="http://www.boriel.com/forum/how-to-tutorials/topic468.html">how-to-tutorials/topic468.html</a><!-- l -->
A pixel perfect print routine, which could be handy for your bullets at least - though a bit slow for general sprites:
<!-- l --><a class="postlink-local" href="http://www.boriel.com/forum/how-to-tutorials/topic493.html">how-to-tutorials/topic493.html</a><!-- l -->