3 Don and I have decided to charge $50 for ROADS, plus $150 for the source
\r
10 ROADS is an attempt to play around with tiles and tiling methods.
\r
11 We were working on ROADS before Diana Gruber's PC Techniques
\r
12 articles on tiling came out, and I thought it would be nice to share
\r
13 some code showing a different mechanism for tiling. It was written
\r
14 using Borland C++ 3.1 (by choice) and Fastgraph from Ted Gruber
\r
17 ROADS uses 16x16 tiles that were drawn in Autodesk Animator. They
\r
18 are stored on a hidden page in Mode-X and screen-to-screen copied as
\r
19 needed. ROADS implements page flipping, so the frame rate will max
\r
20 out at 70fps (although I only get 29fps on my 386/40). The screen
\r
21 scroll rate is 16 pixels, although 4 pixel scrolling could be added
\r
22 fairly easily by doing partial-tile copies. The scrolling is pretty
\r
23 fast because, like in Diana Gruber's article, we copy the still
\r
24 valid portion of the screen to the new page, then update the new
\r
27 Tiles can animate (I'm pretty proud of my fire pit animation), even
\r
28 while scrolling, and fading. The fading algorithm is based on a
\r
29 previous upload to the Dusk Devil BBS -- I took out the floating
\r
30 point calculations and made some modifications. There's also a
\r
31 walking frog with red sneakers. To discover what keys you can press
\r
32 when the program is running, type ROADS /?. "Frog watch mode"
\r
33 doesn't work -- I wrote some bad code, and decided it wasn't worth
\r
34 fixing. So much for the hacker ethic.
\r
36 The program uses Fastgraph's keyboard handler, so you can press, for
\r
37 example, down and right arrows together, and the view will scroll
\r
40 Feel free to take any of the code you like for your own use. I'm
\r
41 providing it because ... uh ... because I'm altruistic? Nah. The
\r
42 program doesn't really DO anything, just tests out some tiling
\r
43 algorithms. Don flipped when I said I wanted to distribute the
\r
44 code, but when I reminded him that ROADS was an exercise in
\r
45 futility, he agreed we should share the pain.
\r
47 If you have any questions, comments, or conversation, I'd be pleased
\r
48 to hear from you. Have fun!
\r
50 Dust Devil BBS (Home of Fastgraph): Eric Lund
\r
51 Delphi: ELUND or elund@delphi.com
\r
52 GEnie: e.lund1 though I think I going to cancel it
\r
53 Compuserve: 74041,1147 or 74041.1147@compuserve.com
\r