Skip to reading
The Sock Exchange, Part 1: Your First 2D Adventure

Make the art in a text editor

Edition 0.86.3.4

Part 1 of the six-part 2D course. Make your own room artwork, start a blank game, place Bea and Gus, add click regions and finish a replayable two-room puzzle. Includes an optional text-editor method for the art.

Download PDFView PDF page
On this page

TUTORIAL 01 • ALTERNATE WAY TO DRAW

Use this page in place of pages 3–4 if you don’t have a drawing app handy. An SVG is a small text file that describes shapes. PCA opens it as an image.

Open Notepad on Windows, TextEdit Format Make Plain Text on Mac, or a plain-text editor on Linux. Copy the first box into a new document and save it as lobby.svg. On Windows choose Save as type All files. If asked about the extension on Mac, choose Use .svg.

lobby.svg#

Code example
<svg xmlns="http://www.w3.org/2000/svg" width="320" height="180">
<rect width="320" height="180" fill="#235563"/>
<rect y="112" width="320" height="68" fill="#94cebc"/>
<rect x="58" y="67" width="133" height="38" fill="#72496f"/>
<rect x="55" y="64" width="139" height="6" fill="#f3aa6f"/>
<rect x="265" y="33" width="32" height="80" fill="#f4c478"/>
<circle cx="272" cy="78" r="2" fill="#49314f"/>
</svg>

Make a second plain-text document. Copy the next box and save it as machine.svg in the same folder. Copy from the opening <svg through the closing </svg> each time.

machine.svg#

Code example
<svg xmlns="http://www.w3.org/2000/svg" width="320" height="180">
<rect width="320" height="180" fill="#463756"/>
<rect y="112" width="320" height="68" fill="#94cebc"/>
<rect x="102" y="3" width="106" height="92" fill="#294b60"/>
<rect x="131" y="39" width="5" height="34" fill="#f9c364"/>
<circle cx="133" cy="34" r="13" fill="#f9c364"/>
<rect x="179" y="39" width="5" height="34" fill="#9bdeef"/>
<circle cx="181" cy="34" r="13" fill="#9bdeef"/>
<circle cx="187" cy="29" r="11" fill="#294b60"/>
</svg>

Check your screen Double-click each file to see the picture in your browser. If you see text, check the filename ends in .svg. In PCA choose Kind Image and import these two files on page 5.

PCA 3D Adventure Studio / 14

Page 14 of 14Permalink
Go to page

Continue your 2D adventure

  1. Part 1The Sock Exchange, Part 1: Your First 2D Adventure
  2. Part 2The Sock Exchange, Part 2: The Missing Laundry
  3. Part 3The Sock Exchange, Part 3: The Dryer Conspiracy
  4. Part 4The Sock Exchange, Part 4: Trouble After Closing
  5. Part 5The Sock Exchange, Part 5: The Midnight Pickup
  6. Part 6The Sock Exchange, Part 6: Closing Time