home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 243 / 243.d81 / t.mr.mick < prev    next >
Encoding:
Text File  |  2004-01-01  |  15.1 KB  |  584 lines

  1. u
  2.             M R.  M I C K
  3.  
  4.    Mr. Mouse Image Construction Kit
  5.  
  6.    Program and Text by Dave Moorman
  7.  
  8.             With comments
  9.    by Fender Tucker and Jeff Jones
  10.  
  11.  
  12. IMPORTANT NOTE: Mr.MICK may not work
  13. correctly from the LOADSTAR Presenter
  14. menu. Copy Mr.Mick to your Utilities
  15. disk -- and all should be hunky-dory.
  16.  
  17.  
  18.     MR.MICK is a text screen
  19. designer, similar to Screen Dazzler
  20. by Brian Eddy, published on LOADSTAR
  21. #90. The difference here is that
  22. MR.MICK is mouse-driven, includes a
  23. font editor, and the ability to save
  24. and load screens in a format
  25. which includes the font.
  26.  
  27.     Text screens are not like DOODLE
  28. or KOALA screens. Text screens are
  29. made using Commodore graphics, more
  30. appropriately called "font graphics,"
  31. pieced together with font characters.
  32. For instance, the LOADSTAR at the top
  33. of our main menu is not a DOODLE, but
  34. a font graphic that's been typed or
  35. printed to the regular text screen.
  36. How artistic can a graphic screen be
  37. with only text? Well, check out any
  38. of Phil Sampson's "Black Knight"
  39. pictures and you'll see what can be
  40. done with only the graphics
  41. characters supplied by the C-64
  42. default character set. With a custom
  43. set (which LOADSTAR practically
  44. requires) you can really get fancy.
  45.  
  46.     It's easy to make text screens,
  47. even artsy ones, but you're limited
  48. by the font, which only has 256
  49. unique characters. If you want to
  50. type text on the screen, you'll have
  51. to alter characters other than text
  52. characters in the font. The trade is
  53. usually the C= key characters,
  54. most of which are rarely used.
  55. Of course if you have an eye like
  56. Phil Sampson, you don't need no
  57. stinking font.
  58.  
  59.     MR.MICK has multiple file
  60. formats, two based on the .TBS
  61. format.
  62.  
  63.  [Note from Jeff:] TBS stands for
  64. Toolbox Stash Format. I didn't know
  65. when I designed my screen stash
  66. subroutine that I was designing an
  67. official, usable file "format,"
  68. worthy of a file extension. All I
  69. can say is that today I consider
  70. myself the luckiest man on the face
  71. of the earth.
  72.  
  73.     This screen editor sports a
  74. built-in font tool that does nearly
  75. everything a font editor does -- but
  76. all right on the screen where you can
  77. see the interaction of custom
  78. characters. In short, Mr.MICK has
  79. everything you need for dramatic text
  80. screen design.
  81.  
  82.     You will need an intelligent
  83. mouse in port 1, or a joystick in
  84. port 2. On boot-up, you will see a
  85. Menu Bar and pointer on a black
  86. screen. This is [MOUSE MODE] -- and
  87. every function is available on the
  88. three pull-down menus. You can call
  89. the menus with a point and click, or
  90. press:
  91.  
  92.  CONTROL-F for File
  93.  CONTROL-E for Edit
  94.  CONTROL-C for Control.
  95.  
  96.     Note that the functions on the
  97. Control Menu have hot keys listed.
  98. The F-keys are easier than slogging
  99. through the menu:
  100.  
  101.  F1 - Toggle Menu Bar On/Off
  102.  F3 - Toggle Window On/Off
  103.  F5 - Switch Font/Color Windows
  104.  UP ARROW - Window to Top/Bottom
  105.  
  106.     The Menu Bar and Window are non-
  107. destructive, giving you access to the
  108. whole screen. Press F3 and F5 until
  109. you have the Font Window visible on
  110. the screen.
  111.  
  112.     In FontMouse Mode, you can pick
  113. up any visible character with a point
  114. and click, then move it to any place
  115. on the screen and place it with
  116. another click. You can only pick up
  117. characters from the Font display.
  118. Press the right mouse button or F7 to
  119. drop a character without placing it
  120. on the screen.
  121.  
  122.     At the right of the Font display
  123. is the character editor. Point and
  124. click a cell to toggle the pixel. The
  125. cursor keys move the box cursor on
  126. the display to select the current
  127. character.
  128.  
  129.     While the font is visible,
  130. pressing F6 (or Font Edit Control
  131. from the Control Menu) will display a
  132. menu of ten useful character
  133. manipulators. The pointer is trapped
  134. in the Font Control Menu until you
  135. press the right mouse button or F7.
  136. The first nine controls are obvious
  137. and immediate. To Copy one character
  138. to another, first choose the
  139. character to be copied using the
  140. cursor keys. Then click on [Copy].
  141. The pointer will jump to the Font
  142. display (and is trapped there). Point
  143. to the character to receive the copy
  144. and click. (To cancel, point at the
  145. character in the box cursor.)
  146.  
  147.  
  148.  [COLORMOUSE MODE]
  149.  [{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}]
  150.  
  151.     Press F5 to switch to the Color
  152. Window. The pointer becomes a "Paint
  153. Bucket." Point and click one for the
  154. colors on the palette to set the
  155. current color. Then simply hold down
  156. the left mouse button (or fire) and
  157. move around to point the characters
  158. on the screen.
  159.  
  160.     To the left of the palette is
  161. the border/background box. Move the
  162. "Bucket" to the far left edge of the
  163. Color Window and click to paint the
  164. border. Point to the center of the
  165. box and click to paint the
  166. background. If the background and
  167. Menu Bar are the same color, press F4
  168. to cycle through menu colors. All
  169. menus and dialog boxes will be in the
  170. Menu Bar color.
  171.  
  172.     MR.MICK lets you work in any C-64
  173. color mode. With the Color Window
  174. visible, press F2 (or use the Control
  175. Menu <F2 To .... Mode>). You will
  176. cycle through each color mode. In
  177. Extended Background, the background
  178. colors are displayed in four
  179. quadrants. In Multi-Color, the three
  180. background colors are displayed in
  181. three rows.
  182.  
  183.  [Note:] If the border color is 0-7,
  184. you will not see the extra multi-
  185. colors. Choose colors 8 - 15 and
  186. click the border rim of the color box
  187. to see the two other background
  188. colors in the center of the box. The
  189. three rows WILL respond correctly to
  190. painting even if they do not display
  191. the colors. Just chalk it up to the
  192. nature of our favorite beast!
  193.  
  194.     We have just three other Control
  195. Menu functions left. F8 is a
  196. QuikSave, which you can perform once
  197. an image has been named. The BACK
  198. ARROW cycles you through fonts:
  199.  
  200.     Custom to Default Upper Case to
  201.     Default Lower Case.
  202.  
  203.  
  204.  [TEXT MODE]
  205.  [{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}]
  206.  
  207.     Point and click are nice -- but
  208. the keyboard is better for straight
  209. typing. Use the Control Menu <Shift-
  210. RET: To Text Mode>, or press Shift-
  211. RETURN. The menus are not available
  212. in Text Mode, and the only Function
  213. key functioning is F1. To exit Text
  214. Mode, press Shift-RETURN or F1.
  215.  
  216.  [Clue:] Remember F1! In a stroke or
  217. two, F1 will get the Menu Bar back on
  218. the screen.
  219.  
  220.     In Text Mode, the keyboard works
  221. almost exactly like the native C-64
  222. screen editor. I have excluded the
  223. irritating line links and bottom
  224. scrolling. Insert and Delete only
  225. affect the cursor row. Set colors and
  226. Reverse On/Off in the normal way. CLR
  227. clears the screen. However, if you
  228. press CLR again, the screen will be
  229. restored to the point where you
  230. entered Text Mode.
  231.  
  232.     F1 or Shift-RETURN returns you to
  233. Mouse Mode.
  234.  
  235.  
  236.  [THE MENUS]
  237.  [{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}]
  238.  
  239.  
  240.  [File Menu]
  241.  
  242.  New -- clears work in progress.
  243.  
  244.  Load --
  245.  
  246.  MR.MICK will load:
  247.  
  248.  ToolBoxStash   (.TBS)
  249.  FontToolStash  (.FTS)
  250.  SuperToolStash (.STS)
  251.  Font    ( F. )
  252.  Screen    (from 1024)
  253.  Color    (from 55296)
  254.  
  255.     The FontToolStash (.FTS) loads a
  256. font followed by .TBS format data.
  257. This is an excellent way to link a
  258. specialized font to its image. (Check
  259. out "fancyscreen.fts" included on
  260. this disk.)
  261.  
  262.     SuperToolStash is a group of one
  263. to four .TBS images in one file --
  264. particularly handy for bringing
  265. several images into a program with a
  266. single bload. The .STS file fits
  267. nicely at page 160 or 224 under ROM.
  268.  
  269.     Screen and Color files have been
  270. included to bring data in from less
  271. sophisticated programs.
  272.  
  273.  [SAVE]
  274.  
  275.  Choose the file-type:
  276.  
  277.  F.   Font
  278.  .TBS  ToolBoxStash
  279.  .FTS  FontToolStash
  280.  .STS  SuperToolStash
  281.  
  282.     Next input the filename and
  283. confirm. See below in Put/Get Image
  284. about saving .STS files.
  285.  
  286.  [QUIKSAVE]
  287.  
  288.     Once a .TBS or .FTS file is
  289. saved, the filename is embedded in
  290. the data. QuikSave saves the .TBS
  291. file to the same filename with auto-
  292. replace. F8 will do a QuikSave in one
  293. keystroke.
  294.  
  295.  [PUT/GET IMAGE]
  296.  
  297.     MR.MICK has four buffers to hold
  298. .TBS images, which can be saved
  299. together as an .STS file. If the
  300. image has no name, Put will ask you
  301. for one. The image names are listed
  302. on the Buffer Menu -- making swapping
  303. between images extremely easy.
  304.  
  305.     When you save the .STS buffer,
  306. you are asked which images to save.
  307. The file will contain images down to
  308. the one you choose. Only the images
  309. saved will load. For instance, if you
  310. saved images 1 and 2, you can later
  311. load them on top of 1, 2, 3, and 4,
  312. replacing only the first two images.
  313. This way, you can easily shuffle
  314. around between images.
  315.  
  316.  [PUT/GET FONT BUFFER]
  317.  
  318.     Have you ever wished you could
  319. copy portions of a great font to
  320. another font file?  MR.MICK allows
  321. you to Put 32 characters in one font
  322. display row into a buffer, then Get
  323. the buffer into any 32 character row.
  324. When you choose Put Font Buffer, the
  325. Font Window appears, with the box
  326. cursor at the beginning of a row. Use
  327. the Up/Down cursor key to choose the
  328. row to Put in the buffer. Press
  329. RETURN to select. Shift-RETURN
  330. exits.
  331.  
  332.     Get Font Buffer works the same
  333. way. Up/Down cursor and RETURN to
  334. choose the row to which the buffer
  335. will be copied. I have included a
  336. dialog window just to be safe.
  337.  
  338.  
  339.  [PRINT SCREEN]
  340.  
  341.     Thanks to Bob Markland, MR.MICK
  342. can produce a neat hard copy of your
  343. images. The print module uses the
  344. Universal Printer Driver Code file
  345. (from LS #154) which you can edit to
  346. work with your particular printer.
  347.  
  348.  
  349.  [EXIT MR.MICK]
  350.  
  351.     This is the only proper way to
  352. get out of MR.MICK.
  353.  
  354.  
  355.  [EDIT MENU]
  356.  [{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}]
  357.  
  358.  [Undo]
  359.  
  360.     Returns you to the point of the
  361. last F1, F3, F5, or Shift-RETURN key
  362. press (or associated Control Menu
  363. selection.
  364.  
  365.  [BOX]
  366.  
  367.     The rest of the functions in the
  368. Edit Menu will not work until you
  369. have put a Box on the screen. (This
  370. is indicated by a dot before the menu
  371. items). Choose Box, then place the
  372. square pointer at the location of the
  373. upper left corner of the area you
  374. want to box, and click. The four
  375. corners "come apart" and you can mark
  376. any area of the screen. Click again,
  377. and you return to the Edit Menu.
  378. Copy, Cut, and the three Fill
  379. functions are now enabled.
  380.  
  381.     Copy puts the screen and color
  382. within the box into the copy buffer.
  383.  
  384.     Cut copies, then fills the box
  385. area with spaces.
  386.  
  387.     R-Cut copies, then fills the box
  388. area with screen code 160.
  389.  
  390.     Color Fill paints the box area
  391. with the current paint color. Be sure
  392. to select the color first.
  393.  
  394.     Text Fill fills the box area with
  395. the current character in the current
  396. paint color. Be sure to select
  397. character and color first.
  398.  
  399.     Text Tile fills the box area by
  400. alternating the current character
  401. with the next screen code. Again,
  402. choose character and color first.
  403.  
  404.     Paste -- After you have copied
  405. the box area, you can paste the
  406. buffer anywhere on the screen. Simply
  407. move the box and click. No part of
  408. the box can leave the screen.
  409.  
  410.  
  411.  [YOUR IMAGINATION]
  412.  
  413.     Besides "fancyscreen.fts", I have
  414. included "fancyscreen.tbs", a multi-
  415. color version to be loaded after the
  416. .FTS file. Also, MR.MICK boots up
  417. with four images in the .STS buffer
  418. to give an idea how versatile MR.MICK
  419. is. In a matter of minutes, the
  420. screen is blocked out and shaped to
  421. provide the best interface or game
  422. space.
  423.  
  424.  
  425.  [TECHNO-KUDOS]
  426.  
  427.     I have used IMAGE MAKER for years
  428. (LS #106, by C.E. "Spock" Prince).
  429. But using IM screens means either
  430. including Image Writer in my
  431. programs, or converting the results
  432. to ToolBoxStash format.
  433.  
  434.     I happen to like ToolBoxStash.
  435. This is really just a function found
  436. on nearly every toolbox module -- the
  437. ability to stash screen/color info in
  438. some safe memory location, and
  439. restore it at will. A .TBS file
  440. bloads to memory, then can be called
  441. with the restore command.
  442.  
  443.     Jeff Jones has included cursor
  444. location and border/background color
  445. information in his more advanced tool
  446. boxes. I have maintained
  447. compatibility with his format -- and
  448. added to it. All images created with
  449. MR.MICK have border and all four
  450. background colors embedded in the
  451. memory below the screen but above the
  452. sprite pointers. One nybble even
  453. indicates in which color mode the
  454. image should be displayed.
  455.  
  456.     To access and use this
  457. information in your own program, use
  458. the following Basic:
  459.  
  460.  SYS <Restore>,<Page>
  461.  POKE 53280,PEEK(2024)
  462.  POKE 53281,PEEK(2025)
  463.  POKE 53282,PEEK(2024)/16
  464.  POKE 53283,PEEK(2025)/16
  465.  POKE 53284,PEEK(2039)
  466.  A=PEEK(2039)AND192
  467.  IFA=0THENPOKE53265,27:POKE53270,200
  468.  IFA=64THENPOKE53265,91
  469.     POKE53270,200
  470.  IFA=128THENPOKE53265,27:
  471.     POKE53270,216
  472.  
  473.     The filename to which you saved
  474. the image in MR.MICK is also embedded
  475. in this free memory area, beginning
  476. with a 255 at 2026:
  477.  
  478.     2026 255
  479.     2027 "F"
  480.     2028 "I"
  481.     2029 "L"
  482.     2030 "E"
  483.     2031 255
  484.  
  485.  Note the 255 that marks the end of
  486. the filename.
  487.  
  488.     MR.MICK would be impossible
  489. without MR. MOUSE. Besides true
  490. proportional mouse/dynamic joystick
  491. control, MM has a fair toolbox packed
  492. in its 4 K of memory. Functions not
  493. in MR. MOUSE -- such as copymem,
  494. swappymem, and print center -- were
  495. available from Smart Boot. During the
  496. boot, I copied the relocatable code
  497. up to safe memory where I could find
  498. it once MR.MICK was running.
  499.  
  500.     And the Print function was
  501. completely impossible when I began
  502. MR.MICK. As usual, Fender had that
  503. one-more-nifty-idea. Bob Markland's
  504. tiny module worked like a charm from
  505. the first attempt. Adapting the
  506. UPDCodes file for my NX-10C printer
  507. took only a few minutes. However, I
  508. have included the Epson standard code
  509. file here. You can make it work for
  510. your own printer with the editor on
  511. LOADSTAR #154.
  512.  
  513.     Egads! The C-64 is exploding with
  514. new life! Even if you are a purist or
  515. a pauper, and chug along with nothing
  516. but an ugly brown-round keyboard and
  517. unenhanced 1541, the power and
  518. possibilities are expanding
  519. exponentially. For goodness' sake, at
  520. least get an FD drive -- if for no
  521. other reason than that metal flap
  522. protects the disk so much better!
  523. Even without JiffyDOS, the FD is
  524. quicker than a clunky 1541. And
  525. LOADSTAR is a really joyful
  526. experience without the swap 'n'
  527. flip!
  528.  
  529.  [Note from Jeff:] It is my belief
  530. that the 1541 is the weak link in the
  531. C-64 chain. As these devices become
  532. less reliable and harder to use,
  533. people throw up their hands in
  534. frustration and go PC. There is
  535. nothing wrong with going PC. I just
  536. don't understand how some can resist
  537. buying a $150 FD drive yet spend
  538. thousands on a new PC. Get both if
  539. you're going to do that. Jeff out.
  540.  
  541.     A correspondent tells me he got
  542. an FD and JiffyDOS, only to find out
  543. that the chip in his C-64 was
  544. soldered down tight. Rather than
  545. de-soldering damage to the mother
  546. board, he invested in a SuperCPU. He
  547. was a bit irked that he had to also
  548. get a new power supply to handle the
  549. extra load. On the other hand, he now
  550. enjoys the quick disk speed. For
  551. about $250, he now HAS 20 MHz, a
  552. proper disk medium for the times, and
  553. much more.
  554.  
  555.  [FENDER'S POSTMUMBLE:] I hadn't
  556. realized that Commodore had gotten so
  557. unfriendly as to use unsocketed DOS
  558. chips in their later models, but
  559. here's another way around it. Instead
  560. of getting a SuperCPU to provide
  561. JiffyDOS to the computer, how about a
  562. RAMLink? I think that for the average
  563. user, a superfast drive (which is
  564. what RAMLink basically is) is more
  565. useful than the 20 MHz processing
  566. speed. They both give you JiffyDOS
  567. without your having to open up your
  568. computer.
  569.  
  570.  As for MR.MICK, I agree 100% with
  571. Dave that this is the best time to be
  572. programming the C-64/128. His program
  573. is a big, many-featured utility that
  574. probably wouldn't have been written
  575. if MR.MOUSE hadn't bowled Dave over.
  576. On the other hand, my GEOS FONT SHOW
  577. on this issue is a simple, almost Q&D
  578. program that would not have been
  579. nearly as good without MR. MOUSE.
  580. Mouse support has traditionally been
  581. the main thing that separated us from
  582. the big wheels. Now we have it. Let's
  583. roll.
  584.  
  585.