CompuServe Messages

#AmigaBASIC

    31-Mar-88 20:57:05
Sb: #116870-#AmigaBASIC
Fm: Jon Bryan 70310,777
To: Doug Winger 71001,1335
You might like it, Doug! :> I wrote about a page of code which defines Sprites (both simple and attached) which display themselves. It parses a block of hex characters (16 x n), creates a Forth word which encompasses the bit image, and displays the Sprite when the word is executed. I've used it to create a nifty 3-D simulation of a ball bouncing inside a room. The ball is a shaded sphere (attached sprite) and the demo incorporates perspective, gravity and friction (air and surface). It's one of the few demonstrations that I know of which use attached sprites, in _any_ language. I don't know if I communicated the concept of the tool very well. It's extremely powerful and was almost trivial to write, as are a great many things in Forth.