<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>applesoft &#8211; Pages of Fun</title>
	<atom:link href="https://robertgomez.org/blog/tag/applesoft/feed/" rel="self" type="application/rss+xml" />
	<link>https://robertgomez.org</link>
	<description>Robert Wm. Gomez&#039;s Website</description>
	<lastBuildDate>Fri, 02 May 2025 21:46:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://robertgomez.org/wp-content/uploads/2020/10/cropped-garland_logo-32x32.png</url>
	<title>applesoft &#8211; Pages of Fun</title>
	<link>https://robertgomez.org</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Haunted House: Remastered</title>
		<link>https://robertgomez.org/blog/2020/02/05/haunted-house-remastered/</link>
		
		<dc:creator><![CDATA[Robert Gomez]]></dc:creator>
		<pubDate>Thu, 06 Feb 2020 03:48:11 +0000</pubDate>
				<category><![CDATA[Robert's Blog]]></category>
		<category><![CDATA[adventure]]></category>
		<category><![CDATA[apple2]]></category>
		<category><![CDATA[applesoft]]></category>
		<category><![CDATA[game development]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[programming]]></category>
		<guid isPermaLink="false">https://robertgomez.org/?p=3226</guid>

					<description><![CDATA[Followers of this site (ed. yeah like that&#8217;s a thing) will remember a few years ago I created a in-browser playable version of the Applesoft BASIC game Haunted House for this site. Over the past month or so I got it in my head to push my skills as a programmer and make a much more fully [&#8230;]]]></description>
										<content:encoded><![CDATA[<img width="1024" height="800" src="https://robertgomez.org/wp-content/uploads/2020/02/haunted-house-remastered.jpg" class="attachment-large size-large wp-post-image" alt="" style="display: block; margin: 0 0 14px 0;" decoding="async" fetchpriority="high" srcset="https://robertgomez.org/wp-content/uploads/2020/02/haunted-house-remastered.jpg 1024w, https://robertgomez.org/wp-content/uploads/2020/02/haunted-house-remastered-300x234.jpg 300w, https://robertgomez.org/wp-content/uploads/2020/02/haunted-house-remastered-768x600.jpg 768w, https://robertgomez.org/wp-content/uploads/2020/02/haunted-house-remastered-800x625.jpg 800w" sizes="(max-width: 1024px) 100vw, 1024px" />
<p>Followers of this site (ed. yeah like that&#8217;s a thing) will remember a few years ago I created a in-browser playable version of the Applesoft BASIC game <em><a href="https://robertgomez.org/blog/2012/11/08/haunted-house-text-adventure/" data-type="post" data-id="2600">Haunted House</a></em> for this site. Over the past month or so I got it in my head to push my skills as a programmer and make a much more fully realized version of the game. Today I am releasing my new version of the game, <em><a href="https://projects.robertgomez.org/haunted-house/">Haunted House: Remastered</a>!</em> It&#8217;s a vast improvement on the original in almost every way possible. In other words, it&#8217;s actually fun to play.</p>



<p>While it&#8217;s nowhere near the level of sophistication of an Infocom game, I think it does some pretty impressive stuff (for my skill level as a programmer). It&#8217;s still a two word parser, but the vocabulary is increased. There are full-page help screens, triggered story events, a retro-styled monochrome monitor look, and a bunch of scary sound effects! Please take a few minutes and <a href="https://projects.robertgomez.org/haunted-house/">give the game a try</a>. It&#8217;s not too long and I try to keep the puzzle reasonably fair.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Apple ][ Graphic Adventure Part V</title>
		<link>https://robertgomez.org/blog/2018/03/22/apple-graphic-adventure-part-v/</link>
		
		<dc:creator><![CDATA[Robert Gomez]]></dc:creator>
		<pubDate>Thu, 22 Mar 2018 20:58:42 +0000</pubDate>
				<category><![CDATA[Robert's Blog]]></category>
		<category><![CDATA[apple2]]></category>
		<category><![CDATA[applesoft]]></category>
		<category><![CDATA[programming]]></category>
		<guid isPermaLink="false">https://robertgomez.org/?p=3012</guid>

					<description><![CDATA[Now that my&#160;memory issues&#160;are seemingly under control, let&#8217;s take a look at my modifications to the parser. Normally, in these types of graphical adventures the player enters two words in the form of&#160;VERB OBJECT. My interface limits the number of verb choices and allows the player to enter a verb with a single keystroke. In [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Now that my&nbsp;<a href="https://robertgomez.org/blog/2018/03/21/apple-graphic-adventure-part-iv/" data-type="post" data-id="3008">memory issues</a>&nbsp;are seemingly under control, let&#8217;s take a look at my modifications to the parser. Normally, in these types of graphical adventures the player enters two words in the form of&nbsp;<code>VERB OBJECT</code>. My interface limits the number of verb choices and allows the player to enter a verb with a single keystroke.</p>



<p>In Applesoft you can prompt for user input in two ways. First there is&nbsp;<code>INPUT A$</code>&nbsp;which will display a question mark on the screen and await user input followed by a&nbsp;<kbd>RETURN</kbd>. That user response then fills the variable A$. Similarly there is&nbsp;<code>GET A$</code>&nbsp;which also displays a question mark but&nbsp;<code>GET</code>&nbsp;will only accept a single keypress as user input. My main problem with both of these is an aesthetic one: that darn question mark.</p>



<p>The solution is to write your own input routine leveraging machine code routines via&nbsp;<code>PEEKs</code>&nbsp;and&nbsp;<code>POKEs</code>. To do this, first I simulate a cursor by placing a flashing underscore character at the bottom of the screen.</p>



<pre class="wp-block-code"><code>101 VTAB 24 : HTAB 1 : CALL -868 : PRINT ":"; : FLASH : PRINT "_"; : NORMAL : GOSUB 55</code></pre>



<p>A lot is going on in this line. The&nbsp;<code>VTAB</code>&nbsp;and&nbsp;<code>HTAB</code>&nbsp;commands position the screen cursor at line 24 and character 1.&nbsp;<code>CALL -868</code>&nbsp;is a special machine code call that clears that single line of text. Now that we have an empty line we type a colon and then a flashing underscore. The result looks like this:</p>



<figure class="wp-block-image size-large"><img decoding="async" width="200" height="59" src="https://robertgomez.org/wp-content/uploads/2018/03/adventure-cursor.gif" alt="" class="wp-image-3014"/></figure>



<p>This looks like a user input prompt, but at this point it does nothing. The magic happens at the subroutine which is GOSUB&#8217;d at the end of that line.</p>



<pre class="wp-block-code"><code>55 KEY = PEEK (49152) : IF KEY &lt; 128 THEN 55
56 IF KEY &gt; 224 AND KEY &lt; 251 THEN KEY = KEY - 32 : REM UPPERCASE
57 POKE 49168,0 : BUZZ = PEEK (49200) : RETURN</code></pre>



<p>In line 55 we are creating a variable KEY and assigning to it the contents of memory location 49,152 to it ($C000 for you hex-heads). Turns out location 49,152 will read the keyboard and return the ASCII value of the currently pressed key. If that value is a character then we break out of the loop and go to line 56.</p>



<p>Line 56 insures that, if the ASCII value of the key denotes a lowercase key, it is converted to uppercase by shifting the ASCII value.&nbsp;<code>POKE 49168,0</code>&nbsp;clears the keyboard buffer so that the PEEK in 55 will work next time around and not just register the same value.&nbsp;Finally, that&nbsp;<code>BUZZ = PEEK (49200)</code>&nbsp;bit triggers a speaker click so that the player&#8217;s keystroke has and audible sound.</p>



<p>When we return to the main game loop we now have a variable KEY which contains an ASCII value of the key pressed. I can then branch the program based on this value. I can also test if it&#8217;s a <kbd>RETURN</kbd> keypress and then toggle text display. Later in my program I can concatenate keypresses into a single string value by returning to that subroutine again and again until a return press is detected. That&#8217;s how I collect the OBJECT half of the VERB OBJECT pair.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Apple ][ Graphic Adventure Part IV</title>
		<link>https://robertgomez.org/blog/2018/03/21/apple-graphic-adventure-part-iv/</link>
		
		<dc:creator><![CDATA[Robert Gomez]]></dc:creator>
		<pubDate>Wed, 21 Mar 2018 20:56:53 +0000</pubDate>
				<category><![CDATA[Robert's Blog]]></category>
		<category><![CDATA[apple2]]></category>
		<category><![CDATA[applesoft]]></category>
		<category><![CDATA[programming]]></category>
		<guid isPermaLink="false">https://robertgomez.org/?p=3008</guid>

					<description><![CDATA[Previously I discussed the&#160;overall structure&#160;of my soon-to-be hit adventure game. Well, last night was a milestone. I managed to write an Applesoft program so epic that it overwrote the high-resolution graphics page. Compared to other programs I have seen, mine isn&#8217;t that huge. Around 250 lines isn&#8217;t that huge, right?&#160;Transylvania&#160;clocks in at 464 lines. I [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Previously I discussed the&nbsp;<a href="https://robertgomez.org/blog/2018/03/19/apple-graphic-adventure-part-iii/" data-type="post" data-id="3003">overall structure</a>&nbsp;of my soon-to-be hit adventure game. Well, last night was a milestone. I managed to write an Applesoft program so epic that it overwrote the high-resolution graphics page. Compared to other programs I have seen, mine isn&#8217;t that huge. Around 250 lines isn&#8217;t that huge, right?&nbsp;<em><a href="https://robertgomez.org/fun-stuff/games/transylvania/" data-type="game_review" data-id="2985">Transylvania</a></em>&nbsp;clocks in at 464 lines.</p>



<p>I think the issue is the number of arrays that I am defining. For now I think I have a fix. I have set&nbsp;<code>LOMEM: 24576</code>&nbsp;at the top of my program.&nbsp;<a href="https://retrocomputing.stackexchange.com/questions/1919/apple-ii-applesoft-basic-memory-management">Supposedly</a>, this will force the interpreter to define variables in a memory location after the hi-res pages. We shall see.</p>



<p>In any event, the game is back and running again. And the text screen now has some text formatting enhancements:</p>



<figure class="wp-block-image size-large"><img decoding="async" width="560" height="384" src="https://robertgomez.org/wp-content/uploads/2018/03/adventure-text-screen.jpg" alt="" class="wp-image-3010" srcset="https://robertgomez.org/wp-content/uploads/2018/03/adventure-text-screen.jpg 560w, https://robertgomez.org/wp-content/uploads/2018/03/adventure-text-screen-300x206.jpg 300w" sizes="(max-width: 560px) 100vw, 560px" /></figure>



<p>One of the cooler things I have implemented is this text screen. If at any prompt you hit <kbd>RETURN</kbd> you turn off the hi-res graphics and can see this text screen. Here will be some valuable game info included the location&#8217;s name, exits and any TAKE-able objects. The code for this is rather simple:</p>



<pre class="wp-block-code"><code>58 IF GM = 1 THEN GM = 0 : TEXT : RETURN
59 GM = 1 : CALL -3100 : RETURN</code></pre>



<p>GM is a flag which tracks where you are in graphics mode (1) or text mode (0).&nbsp;<code>CALL -3100</code>&nbsp;triggers the hi-res graphics screen without erasing its contents. So exciting, right!?!</p>



<p><a href="https://robertgomez.org/blog/2018/03/22/apple-graphic-adventure-part-v/" data-type="post" data-id="3012">Continued in Part V</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Apple ][ Graphic Adventure Part III</title>
		<link>https://robertgomez.org/blog/2018/03/19/apple-graphic-adventure-part-iii/</link>
		
		<dc:creator><![CDATA[Robert Gomez]]></dc:creator>
		<pubDate>Mon, 19 Mar 2018 20:54:42 +0000</pubDate>
				<category><![CDATA[Robert's Blog]]></category>
		<category><![CDATA[adventure]]></category>
		<category><![CDATA[apple2]]></category>
		<category><![CDATA[applesoft]]></category>
		<category><![CDATA[programming]]></category>
		<guid isPermaLink="false">https://robertgomez.org/?p=3003</guid>

					<description><![CDATA[The&#160;previous post in this series&#160;explained how to get&#160;Graphics Magician&#160;images to display from Applesoft. Now, I&#8217;d like to go over the structure of the program listed in&#160;Write your Own Adventure Programs. The bulk of the program listing consists of the game data including objects, room descriptions, verbs and state flags. Most of the remaining code is [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>The&nbsp;<a href="https://robertgomez.org/blog/2018/03/18/apple-graphic-adventure-part-ii/" data-type="post" data-id="3001">previous post in this series</a>&nbsp;explained how to get&nbsp;<em>Graphics Magician</em>&nbsp;images to display from Applesoft. Now, I&#8217;d like to go over the structure of the program listed in&nbsp;<em>Write your Own Adventure Programs</em>. The bulk of the program listing consists of the game data including objects, room descriptions, verbs and state flags. Most of the remaining code is comprised of a series of conditions that check how the player&#8217;s actions affect the objects in the game world.</p>



<h2 class="wp-block-heading">Verbs</h2>



<p><a href="https://robertgomez.org/blog/2012/11/08/haunted-house-text-adventure/" data-type="post" data-id="2600"><em>Haunted House</em></a>&nbsp;used a simple, two-word input parser: VERB NOUN.&nbsp;But I wanted this new game to simplify the number of verb choices in the same way the LucasArts adventures streamlined the interface of Sierra-style adventure games. The player will be limited to around a dozen verbs that are entered with a single keystroke.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="560" height="93" src="https://robertgomez.org/wp-content/uploads/2018/03/parser-help-list.jpg" alt="Apple II Adventure Parser Help List" class="wp-image-3005" srcset="https://robertgomez.org/wp-content/uploads/2018/03/parser-help-list.jpg 560w, https://robertgomez.org/wp-content/uploads/2018/03/parser-help-list-300x50.jpg 300w" sizes="auto, (max-width: 560px) 100vw, 560px" /></figure>



<p>The verb list is largely based on the options in&nbsp;<em>Monkey Island</em>. PUSH and PULL have been combined into MOVE. To move you must hit&nbsp;<kbd>G</kbd>o then enter either&nbsp;<kbd>N</kbd>orth,&nbsp;<kbd>S</kbd>outh,&nbsp;<kbd>E</kbd>ast,&nbsp;<kbd>W</kbd>est,&nbsp;<kbd>U</kbd>p or&nbsp;<kbd>D</kbd>own. This is a little annoying, but there are only so many letters in on the keyboard and I needed that D, U and S elsewhere. Other commands require you to hit the keystroke, then type out an object NOUN and then hit&nbsp;<kbd>Return</kbd>. &#8220;Guess the verb&#8221; will no longer be an issue&#8230; welcome to 21st century &#8220;guess the noun&#8221; technology!</p>



<p>Each verb then get&#8217;s its own subroutine which contains the logic that triggers the various game actions (or provides a default message if nothing special happens). By assigning a number value&nbsp;<var>VB</var>&nbsp;to each verb, I can use the following to branch to the various subroutines:&nbsp;<code>ON VB GOSUB 1000,600,800,850, ...</code></p>



<h2 class="wp-block-heading">Game Data</h2>



<p>The game data is set in the program by assigning strings and numbers to several arrays. In Applesoft you need to declare the size of an array by dimensioning it with the <code>DIM</code> command. For the rooms I will set the size of the rooms array to the number of rooms <var>RM</var> by declaring <code>DIM RM$(RM)</code>. Then, near the start of my program I read data into the array by using <code>GOSUB</code> to a loop like this:</p>



<pre class="wp-block-code"><code>5000 DATA "Room description 1","Room Description 2", &#91;...]
5005 FOR I = 1 to RM : READ RM$(I) : NEXT
5010 RETURN</code></pre>



<p>The&nbsp;<code>DATA</code>&nbsp;can be listed anywhere in the code and it&#8217;s important to make sure that there are exactly as many data strings as&nbsp;<code>READ</code>&nbsp;commands. Otherwise, you might get&nbsp;<code>OUT OF DATA</code>&nbsp;errors.</p>



<p>This method of declaring rooms and object will eventually make your Applesoft program very long and hard to edit. I was pretty sure that I could figure out a way to read the data in from an external text file. But more on that later.</p>



<p><a href="https://robertgomez.org/blog/2018/03/21/apple-graphic-adventure-part-iv/" data-type="post" data-id="3008">Continued in Part IV</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Apple ][ Graphic Adventure Part II</title>
		<link>https://robertgomez.org/blog/2018/03/18/apple-graphic-adventure-part-ii/</link>
		
		<dc:creator><![CDATA[Robert Gomez]]></dc:creator>
		<pubDate>Sun, 18 Mar 2018 20:51:06 +0000</pubDate>
				<category><![CDATA[Robert's Blog]]></category>
		<category><![CDATA[apple2]]></category>
		<category><![CDATA[applesoft]]></category>
		<category><![CDATA[Graphics Magician]]></category>
		<category><![CDATA[programming]]></category>
		<guid isPermaLink="false">https://robertgomez.org/?p=3001</guid>

					<description><![CDATA[In my&#160;previous post&#160;I wrote about the impetus behind this project. To start, I knew that my code was going to be structured around the&#160;Haunted House&#160;program&#160;in the excellent book&#160;Write your Own Adventure Programs for your Microcomputer. As I have&#160;written before, this book was crucial in my development as a programmer (I haven&#8217;t developed much beyond it). [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>In my&nbsp;<a href="https://robertgomez.org/blog/2018/03/17/apple-graphic-adventure-part-i/" data-type="post" data-id="2995">previous post</a>&nbsp;I wrote about the impetus behind this project. To start, I knew that my code was going to be structured around the&nbsp;<a href="https://robertgomez.org/blog/2012/11/08/haunted-house-text-adventure/" data-type="post" data-id="2600"><em>Haunted House</em>&nbsp;program</a>&nbsp;in the excellent book&nbsp;<em>Write your Own Adventure Programs for your Microcomputer</em>. As I have&nbsp;<a href="https://robertgomez.org/blog/2009/07/14/my-apple-masterpiece-malfunction/" data-type="post" data-id="851">written before</a>, this book was crucial in my development as a programmer (I haven&#8217;t developed much beyond it). I would love to do this project in 6502 machine code and I have been trying very hard to learn 6502 assembly programming. But, although I&#8217;ve gotten a better understanding of machine code, there&#8217;s serious lack of noob-friendly practical learning exercises available out there. Sure I can draw pixels at lightning speed, but, after reading most of&nbsp;<a href="https://robertgomez.org/blog/2015/09/14/apple-assembly-language-programming/" data-type="post" data-id="2847"><em>Assembly Lines</em></a>, I still have no idea how to do a simple&nbsp;<code>INPUT</code>&nbsp;command or mimic an array.</p>



<p>So, Applesoft&nbsp;<abbr title="Beginner's All-purpose Symbolic Instruction Code">BASIC</abbr>&nbsp;it is! With emulation and modern computing I have been able to develop my code on a Windows PC and then quickly run it in emulation. My workflow isn&#8217;t nearly as fancy as some other retro-programmers. I type my Applesoft in a text editor, then in AppleWin I paste the entire code listing into an emulated apple using&nbsp;<kbd>SHIFT+INSERT</kbd>. The benefit of using emulation as a development environment is that you can throttle the emulation to run hundreds of times faster (hit&nbsp;<kbd>ScrLK</kbd>) than real hardware. This makes testing small changes a breeze.</p>



<p>My first task was to see if I could successfully load a&nbsp;<em>Graphics Magician</em>&nbsp;image into a program. The program itself is a bit of a UI nightmare. Without a&nbsp;<a href="ftp://ftp.apple.asimov.net/pub/apple_II/documentation/applications/misc/Graphics%20Magician%20Picture%20Painter.pdf">manual</a>&nbsp;or reference card, it&#8217;s nearly impossible to know what keys do what. On top of that, the program requires that you use a joystick to move the drawing cursor on the screen. Fortunately, the manual can be found online and you can use a PC mouse as a joystick within AppleWin. I managed to crank out a couple of silly images for testing and save them to my game disk.</p>



<p>I then used to code provided in the manual to write a simple Applesoft program that displays the image:</p>



<pre class="wp-block-code"><code>1 PRINT CHR$ (4);"MAXFILES1"5 HIMEM: 32768
10 PRINT CHR$ (4);"BLOAD PICDRAWH"
20 PRINT CHR$ (4);"BLOAD ROOM1.SPC,A32768"
30 HGR
40 A = 32768:HI = INT (A / 256):LO = A - HI * 256: POKE 0,LO: POKE 1,HI50 CALL 36096</code></pre>



<p>In order for this code to work, you are required to copy PICDRAWH from the&nbsp;<em>Graphics Magician</em>&nbsp;disk to your disk. This is the machine code rendering engine that is loaded into memory at the top of this program. The&nbsp;<code>MAXFILES1</code>&nbsp;DOS command apparently frees up some memory by limiting the amount of open files. This command needs to be the first one in your code, before any string assignments, etc. I think&nbsp;<code>HIMEM</code>&nbsp;does something similar with allocating memory locations. I have never written an Applesoft program so large that it required memory management so the purpose of these commands alludes me somewhat. As this project grows, I may have to familiarize myself with them.</p>



<p>You will see&nbsp;<code>CHR$(4)</code>&nbsp;often in Applesoft programs.&nbsp;<code>CHR$()</code>&nbsp;is a function that retrieves the keyboard character in assigned to the numerical value in then parenthesis. For example,&nbsp;<code>PRINT CHR$(65)</code>&nbsp;prints the letter A. In this case, character number four is the equivalent of keying in&nbsp;<kbd>CTRL+D</kbd>. That instructs the computer that the next PRINTed string should be executed as a DOS command rather than PRINTed to the screen.</p>



<p>The&nbsp;<em>Graphics Magician</em>&nbsp;file is ROOM1.SPC.&nbsp;<code>BLOAD ROOM1.SPC,A32768</code>&nbsp;loads the drawing code into memory location 32768. That seems like a crazy random number but it is actually $8000 in hexidecimal.&nbsp;<code>HGR</code>&nbsp;switches to high-resolution graphics mode and then line 40 stores the memory address of the picture into a location PICDRAWH will know to look. Finally, the&nbsp;<code>CALL 36096</code>&nbsp;triggers the PICDRAWH draw routines.</p>



<p>There&#8217;s a lot of fancy stuff going on here, but it does the job as advertised.&nbsp;<em>The Graphics Magician</em>&nbsp;manual also goes deeper with more code that shows how to string multiple images into slide shows&nbsp;and how to overlay objects over backgrounds. More on that when I get to my object code. For now, this proof-of-concept was enough to get a simple working prototype up and running.</p>



<p><a href="https://robertgomez.org/blog/2018/03/19/apple-graphic-adventure-part-iii/" data-type="post" data-id="3003">Continued in Part III</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Apple ][ Graphic Adventure Part I</title>
		<link>https://robertgomez.org/blog/2018/03/17/apple-graphic-adventure-part-i/</link>
		
		<dc:creator><![CDATA[Robert Gomez]]></dc:creator>
		<pubDate>Sat, 17 Mar 2018 20:48:52 +0000</pubDate>
				<category><![CDATA[Robert's Blog]]></category>
		<category><![CDATA[adventure]]></category>
		<category><![CDATA[apple2]]></category>
		<category><![CDATA[applesoft]]></category>
		<category><![CDATA[Graphics Magician]]></category>
		<category><![CDATA[programming]]></category>
		<guid isPermaLink="false">https://robertgomez.org/?p=2995</guid>

					<description><![CDATA[Having recently played the Apple ][ game&#160;Transylvania&#160;and its&#160;sequel, I was inspired to&#160;mess with the art program which those games used.&#160;The Graphics Magician&#160;was a huge hit for Penguin Software, but I never actually had a chance to use it when we had an Apple ][. I just remember it being advertised in every computer magazine I [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Having recently played the Apple ][ game&nbsp;<a href="https://robertgomez.org/fun-stuff/games/transylvania/" data-type="game_review" data-id="2985"><em>Transylvania</em></a>&nbsp;and its&nbsp;<a href="https://robertgomez.org/fun-stuff/games/the-crimson-crown/" data-type="game_review" data-id="2990">sequel</a>, I was inspired to&nbsp;mess with the art program which those games used.&nbsp;<em>The Graphics Magician</em>&nbsp;was a huge hit for Penguin Software, but I never actually had a chance to use it when we had an Apple ][. I just remember it being advertised in every computer magazine I had.</p>



<p>My go to art program back in the day was always&nbsp;<em>Alpha Plot</em>&nbsp;from Beagle Bros. It wasn&#8217;t the easiest software to use. In fact, it came bundled with a cardboard overlay for your keyboard so you had an immediate reference as to what the various keys did. Still, I managed to draw pixel by pixel and create masterpieces like this:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="560" height="384" src="https://robertgomez.org/wp-content/uploads/2018/03/alpha-plot-gross.png" alt="" class="wp-image-2997" srcset="https://robertgomez.org/wp-content/uploads/2018/03/alpha-plot-gross.png 560w, https://robertgomez.org/wp-content/uploads/2018/03/alpha-plot-gross-300x206.png 300w" sizes="auto, (max-width: 560px) 100vw, 560px" /></figure>



<p><em>The Graphics Magician</em>&nbsp;is something altogether different though. Instead of meticulously drawing each point on the screen, you create images programatically using a language of lines, fills and brushes.&nbsp;The end product is what today we would call vector art.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="560" height="384" src="https://robertgomez.org/wp-content/uploads/2018/03/graphics-magician-weirdo.png" alt="" class="wp-image-2998" srcset="https://robertgomez.org/wp-content/uploads/2018/03/graphics-magician-weirdo.png 560w, https://robertgomez.org/wp-content/uploads/2018/03/graphics-magician-weirdo-300x206.png 300w" sizes="auto, (max-width: 560px) 100vw, 560px" /></figure>



<p>The advantage of vector art is that file sizes are small. The other advantage is that these drawing routines can be used within one&#8217;s own Apple ][ programs.</p>



<p>This gave me an idea for a project. Take the text-based&nbsp;<a href="https://robertgomez.org/node/467">adventure game</a>&nbsp;I had made years ago, and use these routines to add graphics to the game. As I type this, I am already pretty far along in the project, but I will be going back and documenting my progress.&nbsp;Hopefully someone might find this informative and, if I am able to follow through, maybe I will have a releasable game in the end. It&#8217;s doing more than I ever imagined already:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="700" height="462" src="https://robertgomez.org/wp-content/uploads/2018/03/parser-inprogress-01.jpg" alt="" class="wp-image-2999" srcset="https://robertgomez.org/wp-content/uploads/2018/03/parser-inprogress-01.jpg 700w, https://robertgomez.org/wp-content/uploads/2018/03/parser-inprogress-01-300x198.jpg 300w" sizes="auto, (max-width: 700px) 100vw, 700px" /></figure>



<p>Continue to <a href="https://robertgomez.org/blog/2018/03/18/apple-graphic-adventure-part-ii/" data-type="post" data-id="3001">Part II</a></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
