diff --git a/out/IridisAlphaTheory.pdf b/out/IridisAlphaTheory.pdf index 6fe59cdf..2f0d2526 100644 Binary files a/out/IridisAlphaTheory.pdf and b/out/IridisAlphaTheory.pdf differ diff --git a/src/planets.tex b/src/planets.tex index 42f34a11..15cd581f 100644 --- a/src/planets.tex +++ b/src/planets.tex @@ -157,7 +157,7 @@ \section{Step One: Creating the Sea} \fill[\BACKGROUNDTWO] (6,0) rectangle ++ (1,1); \fill[\BACKGROUNDTWO] (7,0) rectangle ++ (1,1); \node[matrix of math nodes,anchor=south west,inner sep=0pt, - nodes={draw,minimum size=1cm,anchor=center}, + nodes={draw,minimum size=1cm,font=\Huge,anchor=center}, column sep=-\pgflinewidth,row sep=-\pgflinewidth] {0 & 0 & 0 & 0 & 0 & 0 & 0 & 0\\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0\\ @@ -200,10 +200,10 @@ \section{Step One: Creating the Sea} the value \$60\, which is an empty bitmap.] ; Clear down the planet%\index{planet}% surface%\index{surface}% data from $8000 to $8FFF. ; There are 4 layers: - ; Top Layer: $8000 to $83FF - 256 bytes - ; Second Layer: $8400 to $87FF - 256 bytes - ; Third Layer: $8800 to $8BFF - 256 bytes - ; Bottom Layer: $8C00 to $8FFF - 256 bytes + ; Top Layer: $8000 to $83FF - 1024 bytes + ; Second Layer: $8400 to $87FF - 1024 bytes + ; Third Layer: $8800 to $8BFF - 1024 bytes + ; Bottom Layer: $8C00 to $8FFF - 1024 bytes LDY #$00 ClearPlanetHiPtrs%\index{ClearPlanetHiPtrs}% ; $60 is an empty character%\index{character}% and gets written to the entire @@ -400,16 +400,16 @@ \section{Step Two: Creating the Land} \setlength\cmidrulewidth{\heavyrulewidth} % Make cmidrule = \begin{adjustbox}{width=15cm,center} \begin{subfigure}{0.3\textwidth} - \input{planets/tilesheets/planet1Charset_tilesheet_\$5C} + \input{planets/tilesheets/5C_large} \end{subfigure} \begin{subfigure}{0.3\textwidth} - \input{planets/tilesheets/planet1Charset_tilesheet_\$5E} + \input{planets/tilesheets/5E_large} \end{subfigure} \begin{subfigure}{0.3\textwidth} - \input{planets/tilesheets/planet1Charset_tilesheet_\$5D} + \input{planets/tilesheets/5D_large} \end{subfigure} \begin{subfigure}{0.3\textwidth} - \input{planets/tilesheets/planet1Charset_tilesheet_\$5F} + \input{planets/tilesheets/5F_large} \end{subfigure} \end{adjustbox} }\caption[]{Character tiles for the left shore (\$5C,\$5E) and the right shore (\$5D,\$5F).} @@ -517,8 +517,8 @@ \section{Step Three: Structures Structures Structures} .BYTE $54,$56,$FE \end{lstlisting} -The \$FF at the end of each line serves as a sentinel\index{sentinel} for the drawing\index{drawing} routine\index{routine} to know that the subsequent bytes -are for the next layer 'up'. The \$FE is a terminator, indicating there is no more data for the structure\index{structure}. +The \icode{\$FF} at the end of each line serves as a sentinel\index{sentinel} for the drawing\index{drawing} routine\index{routine} to know that the subsequent bytes +are for the next layer 'up'. The \icode{\$FE} is a terminator, indicating there is no more data for the structure\index{structure}. Drawing a structure\index{structure} is relatively straightforward so we'll cover that briefly first. Drawing the littlest structure\index{structure} provides the most compact example of the technique: diff --git a/src/planets/planet1Charset_$40_bits.tex b/src/planets/planet1Charset_$40_bits.tex index 47a8f920..88c61c15 100644 --- a/src/planets/planet1Charset_$40_bits.tex +++ b/src/planets/planet1Charset_$40_bits.tex @@ -45,7 +45,7 @@ \fill[\BACKGROUNDTWO] (6,0) rectangle ++ (1,1); \fill[\BACKGROUNDTWO] (7,0) rectangle ++ (1,1); \node[matrix of math nodes,anchor=south west,inner sep=0pt, - nodes={draw,minimum size=1cm,anchor=center}, + nodes={draw,minimum size=1cm,font=\Huge,anchor=center}, column sep=-\pgflinewidth,row sep=-\pgflinewidth,font=\huge\ttfamily] { 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0\\ diff --git a/src/planets/planet1Charset_$41_bits.tex b/src/planets/planet1Charset_$41_bits.tex index 2c55d26f..4517b87d 100644 --- a/src/planets/planet1Charset_$41_bits.tex +++ b/src/planets/planet1Charset_$41_bits.tex @@ -69,7 +69,7 @@ \fill[\BACKGROUNDONE] (6,0) rectangle ++ (1,1); \fill[\BACKGROUNDONE] (7,0) rectangle ++ (1,1); \node[matrix of math nodes,anchor=south west,inner sep=0pt, - nodes={draw,minimum size=1cm,anchor=center}, + nodes={draw,minimum size=1cm,font=\Huge,anchor=center}, column sep=-\pgflinewidth,row sep=-\pgflinewidth] {1 & 1 & 0 & 0 & 1 & 1 & 0 & 0\\ 1 & 1 & 0 & 0 & 1 & 1 & 1 & 1\\ diff --git a/src/planets/planet1Charset_$43_bits.tex b/src/planets/planet1Charset_$43_bits.tex index 6ba96e67..392c94f3 100644 --- a/src/planets/planet1Charset_$43_bits.tex +++ b/src/planets/planet1Charset_$43_bits.tex @@ -69,7 +69,7 @@ \fill[\BACKGROUNDONE] (6,0) rectangle ++ (1,1); \fill[\BACKGROUNDONE] (7,0) rectangle ++ (1,1); \node[matrix of math nodes,anchor=south west,inner sep=0pt, - nodes={draw,minimum size=1cm,anchor=center}, + nodes={draw,minimum size=1cm,font=\Huge,anchor=center}, column sep=-\pgflinewidth,row sep=-\pgflinewidth] {1 & 1 & 0 & 0 & 0 & 0 & 1 & 1\\ 1 & 1 & 1 & 1 & 0 & 0 & 1 & 1\\ diff --git a/src/planets/tilesheets/5C_large.tex b/src/planets/tilesheets/5C_large.tex new file mode 100644 index 00000000..8f119c94 --- /dev/null +++ b/src/planets/tilesheets/5C_large.tex @@ -0,0 +1,56 @@ + + \begin{figure}[H] + { + \setlength{\tabcolsep}{3.0pt} + \setlength\cmidrulewidth{\lightrulewidth} % Make cmidrule = + \begin{adjustbox}{width=3cm,center} + \begin{tikzpicture} + +\def\BACKGROUNDONE{brown} +\def\BACKGROUNDTWO{lightblue} +\def\CHARCOLOR{lightgreen} + \draw[step=1.0,gray,thin] (0,0) grid (8,8); + \fill[\BACKGROUNDTWO] (0,4) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (1,4) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (4,4) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (5,4) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (6,4) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (7,4) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (0,3) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (1,3) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (2,3) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (3,3) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (4,3) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (5,3) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (6,3) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (7,3) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (0,2) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (1,2) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (2,2) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (3,2) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (4,2) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (5,2) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (6,2) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (7,2) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (0,1) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (1,1) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (2,1) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (3,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (4,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (5,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (6,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (7,1) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (0,0) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (1,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (2,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (3,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (4,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (5,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (6,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (7,0) rectangle ++ (1,1); + + \end{tikzpicture} + \end{adjustbox} + }\caption*{\$5C} + \end{figure} + diff --git a/src/planets/tilesheets/5D_large.tex b/src/planets/tilesheets/5D_large.tex new file mode 100644 index 00000000..53be0c87 --- /dev/null +++ b/src/planets/tilesheets/5D_large.tex @@ -0,0 +1,62 @@ + + \begin{figure}[H] + { + \setlength{\tabcolsep}{3.0pt} + \setlength\cmidrulewidth{\lightrulewidth} % Make cmidrule = + \begin{adjustbox}{width=3cm,center} + \begin{tikzpicture} + +\def\BACKGROUNDONE{brown} +\def\BACKGROUNDTWO{lightblue} +\def\CHARCOLOR{lightgreen} + \draw[step=1.0,gray,thin] (0,0) grid (8,8); + \fill[\CHARCOLOR] (0,5) rectangle ++ (1,1); + \fill[\CHARCOLOR] (1,5) rectangle ++ (1,1); + \fill[\CHARCOLOR] (2,5) rectangle ++ (1,1); + \fill[\CHARCOLOR] (3,5) rectangle ++ (1,1); + \fill[\CHARCOLOR] (0,4) rectangle ++ (1,1); + \fill[\CHARCOLOR] (1,4) rectangle ++ (1,1); + \fill[\CHARCOLOR] (2,4) rectangle ++ (1,1); + \fill[\CHARCOLOR] (3,4) rectangle ++ (1,1); + \fill[\CHARCOLOR] (4,4) rectangle ++ (1,1); + \fill[\CHARCOLOR] (5,4) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (6,4) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (7,4) rectangle ++ (1,1); + \fill[\CHARCOLOR] (0,3) rectangle ++ (1,1); + \fill[\CHARCOLOR] (1,3) rectangle ++ (1,1); + \fill[\CHARCOLOR] (2,3) rectangle ++ (1,1); + \fill[\CHARCOLOR] (3,3) rectangle ++ (1,1); + \fill[\CHARCOLOR] (4,3) rectangle ++ (1,1); + \fill[\CHARCOLOR] (5,3) rectangle ++ (1,1); + \fill[\CHARCOLOR] (6,3) rectangle ++ (1,1); + \fill[\CHARCOLOR] (7,3) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (0,2) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (1,2) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (2,2) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (3,2) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (4,2) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (5,2) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (6,2) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (7,2) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (0,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (1,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (2,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (3,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (4,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (5,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (6,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (7,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (0,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (1,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (2,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (3,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (4,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (5,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (6,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (7,0) rectangle ++ (1,1); + + \end{tikzpicture} + \end{adjustbox} + }\caption*{\$5D} + \end{figure} + diff --git a/src/planets/tilesheets/5E_large.tex b/src/planets/tilesheets/5E_large.tex new file mode 100644 index 00000000..0f2e2804 --- /dev/null +++ b/src/planets/tilesheets/5E_large.tex @@ -0,0 +1,64 @@ + + \begin{figure}[H] + { + \setlength{\tabcolsep}{3.0pt} + \setlength\cmidrulewidth{\lightrulewidth} % Make cmidrule = + \begin{adjustbox}{width=3cm,center} + \begin{tikzpicture} + +\def\BACKGROUNDONE{brown} +\def\BACKGROUNDTWO{lightblue} +\def\CHARCOLOR{lightgreen} + \draw[step=1.0,gray,thin] (0,0) grid (8,8); + \fill[\CHARCOLOR] (6,6) rectangle ++ (1,1); + \fill[\CHARCOLOR] (7,6) rectangle ++ (1,1); + \fill[\CHARCOLOR] (4,5) rectangle ++ (1,1); + \fill[\CHARCOLOR] (5,5) rectangle ++ (1,1); + \fill[\CHARCOLOR] (6,5) rectangle ++ (1,1); + \fill[\CHARCOLOR] (7,5) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (0,4) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (1,4) rectangle ++ (1,1); + \fill[\CHARCOLOR] (2,4) rectangle ++ (1,1); + \fill[\CHARCOLOR] (3,4) rectangle ++ (1,1); + \fill[\CHARCOLOR] (4,4) rectangle ++ (1,1); + \fill[\CHARCOLOR] (5,4) rectangle ++ (1,1); + \fill[\CHARCOLOR] (6,4) rectangle ++ (1,1); + \fill[\CHARCOLOR] (7,4) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (0,3) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (1,3) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (2,3) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (3,3) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (4,3) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (5,3) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (6,3) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (7,3) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (0,2) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (1,2) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (2,2) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (3,2) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (4,2) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (5,2) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (6,2) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (7,2) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (0,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (1,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (2,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (3,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (4,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (5,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (6,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (7,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (0,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (1,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (2,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (3,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (4,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (5,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (6,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (7,0) rectangle ++ (1,1); + + \end{tikzpicture} + \end{adjustbox} + }\caption*{\$5E} + \end{figure} + diff --git a/src/planets/tilesheets/5F_large.tex b/src/planets/tilesheets/5F_large.tex new file mode 100644 index 00000000..edfc0f48 --- /dev/null +++ b/src/planets/tilesheets/5F_large.tex @@ -0,0 +1,56 @@ + + \begin{figure}[H] + { + \setlength{\tabcolsep}{3.0pt} + \setlength\cmidrulewidth{\lightrulewidth} % Make cmidrule = + \begin{adjustbox}{width=3cm,center} + \begin{tikzpicture} + +\def\BACKGROUNDONE{brown} +\def\BACKGROUNDTWO{lightblue} +\def\CHARCOLOR{lightgreen} + \draw[step=1.0,gray,thin] (0,0) grid (8,8); + \fill[\BACKGROUNDTWO] (0,4) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (1,4) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (2,4) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (3,4) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (6,4) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (7,4) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (0,3) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (1,3) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (2,3) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (3,3) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (4,3) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (5,3) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (6,3) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (7,3) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (0,2) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (1,2) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (2,2) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (3,2) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (4,2) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (5,2) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (6,2) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (7,2) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (0,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (1,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (2,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (3,1) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (4,1) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (5,1) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (6,1) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (7,1) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (0,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (1,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (2,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (3,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (4,0) rectangle ++ (1,1); + \fill[\BACKGROUNDONE] (5,0) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (6,0) rectangle ++ (1,1); + \fill[\BACKGROUNDTWO] (7,0) rectangle ++ (1,1); + + \end{tikzpicture} + \end{adjustbox} + }\caption*{\$5F} + \end{figure} +