Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
O-Cman
#7
Very nice indeed. Excellent work!

Preshifted sprites, using UDG.

Incidentally, if you are printing whole characters like this, you might find <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Putchars.bas">http://www.boriel.com/wiki/en/index.php ... tchars.bas</a><!-- m --> gets you a speed increase, since it should be faster than using the internal print routine - it's specialised to get blocks of data to the screen somewhat faster.

There are a couple of alternate screen handling routines in the library - the 2x2 fixed putblock is the fastest, but has limitations such as the size of the block. There's also an option to use the character based fourspriter, which has been encapsulated as a routine - but again, sprites are 2x2 - but the background is preserved.

<!-- l --><a class="postlink-local" href="http://www.boriel.com/forum/how-to-tutorials/topic397.html">how-to-tutorials/topic397.html</a><!-- l -->


On terms of Ghost AI - this might be useful to you: <!-- m --><a class="postlink" href="http://gameinternals.com/post/2072558330/understanding-pac-man-ghost-behavior">http://gameinternals.com/post/207255833 ... t-behavior</a><!-- m -->
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)