SampleCodeLibrary
From Retrosoftware
(→Graphic Routines) |
(→Graphic Routines) |
||
| Line 22: | Line 22: | ||
[[Basic_Sprite_plotter|Basic Sprite Plotter]] by Steve O'Leary | [[Basic_Sprite_plotter|Basic Sprite Plotter]] by Steve O'Leary | ||
| - | A basic sprite plotter (in assembly) for use in 20K screens (with a demo in Mode 2) but easily | + | A basic sprite plotter (in assembly) for use in 20K screens (with a demo in Mode 2) but easily adapted for other modes. Written in Swift in P65 ssembler. |
=== Sound Routines === | === Sound Routines === | ||
Revision as of 07:29, 28 May 2008
Contents |
Sample Code Library
BASIC Routines
Text Wrapping Routine by Francis G. Loch
An example of how to dynamically wrap text for use in programs such as text adventures.
Assembler Routines
Custom Text Input by Francis G. Loch
Custom routine for obtaining text input.
Graphic Routines
Line by line vertical scrolling on the Beeb by Rich Talbot-Watkins
I thought I'd write up a little bit about the technique I use to get the line-by-line vertical scrolling out of the Beeb, drawing from articles I'd previously written to the Beeb mailing list. Hopefully, it will be useful to anyone else wanting similar features in their games. There are two aspects to this technique: so-called "vertical rupture" and manipulating the "total vertical adjust" register to actually move the screen by scanline amounts. I'll cover them one at a time.
Basic Sprite Plotter by Steve O'Leary
A basic sprite plotter (in assembly) for use in 20K screens (with a demo in Mode 2) but easily adapted for other modes. Written in Swift in P65 ssembler.
Sound Routines
Sample Sound Routine Example by A.N. Fibber
<Insert Your Routine here>