<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://retroprogramming.iwashere.eu/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://retroprogramming.iwashere.eu/feed.php">
        <title>Retroprogramming by spotlessmind1975 midres_library:tutorial:mctile</title>
        <description></description>
        <link>https://retroprogramming.iwashere.eu/</link>
        <image rdf:resource="https://retroprogramming.iwashere.eu/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-04-30T19:00:51+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://retroprogramming.iwashere.eu/midres_library:tutorial:mctile:compile?rev=1601554447&amp;do=diff"/>
                <rdf:li rdf:resource="https://retroprogramming.iwashere.eu/midres_library:tutorial:mctile:drawing_ghost?rev=1601329881&amp;do=diff"/>
                <rdf:li rdf:resource="https://retroprogramming.iwashere.eu/midres_library:tutorial:mctile:generating_sources?rev=1601330532&amp;do=diff"/>
                <rdf:li rdf:resource="https://retroprogramming.iwashere.eu/midres_library:tutorial:mctile:generating_tiles?rev=1601330461&amp;do=diff"/>
                <rdf:li rdf:resource="https://retroprogramming.iwashere.eu/midres_library:tutorial:mctile:prerequisities?rev=1601554350&amp;do=diff"/>
                <rdf:li rdf:resource="https://retroprogramming.iwashere.eu/midres_library:tutorial:mctile:program?rev=1601330978&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://retroprogramming.iwashere.eu/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Retroprogramming by spotlessmind1975</title>
        <link>https://retroprogramming.iwashere.eu/</link>
        <url>https://retroprogramming.iwashere.eu/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://retroprogramming.iwashere.eu/midres_library:tutorial:mctile:compile?rev=1601554447&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-10-01T14:14:07+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>midres_library:tutorial:mctile:compile</title>
        <link>https://retroprogramming.iwashere.eu/midres_library:tutorial:mctile:compile?rev=1601554447&amp;do=diff</link>
        <description>TUTORIAL: MULTICOLOR TILE

LET'S COMPILE AND RUN!

Compiling the program is very simple. If you have downloaded the repository, everything is ready, and just must run the make command with the appropriate options, depending on the platform.

COMMODORE 64</description>
    </item>
    <item rdf:about="https://retroprogramming.iwashere.eu/midres_library:tutorial:mctile:drawing_ghost?rev=1601329881&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-09-28T23:51:21+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>midres_library:tutorial:mctile:drawing_ghost</title>
        <link>https://retroprogramming.iwashere.eu/midres_library:tutorial:mctile:drawing_ghost?rev=1601329881&amp;do=diff</link>
        <description>TUTORIAL: MULTICOLOR TILE

DRAWING THE GHOST



First of all, we have to find an image of the ghost or draw it freehand (as I did). Usually, we draw it at a rather high resolution. In this example we start from 118×118 pixels. 

Note that when drawing the image, we should leave a black border on the left and right. The image thus drawn is, however, too large to be managed by 8-bit computers.</description>
    </item>
    <item rdf:about="https://retroprogramming.iwashere.eu/midres_library:tutorial:mctile:generating_sources?rev=1601330532&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-09-29T00:02:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>midres_library:tutorial:mctile:generating_sources</title>
        <link>https://retroprogramming.iwashere.eu/midres_library:tutorial:mctile:generating_sources?rev=1601330532&amp;do=diff</link>
        <description>TUTORIAL: MULTICOLOR TILE

ABOUT THE GENERATED SOURCES

In the file tutorial_mctile.h, generated by img2tile, you will find a series of useful information to use the file tutorial_mctile.bin by the functions of the MIDRES library.
#define TILE_COLOR0 MR_COLOR_BLACK
#define TILE_COLOR1 MR_COLOR_RED
#define TILE_COLOR2 MR_COLOR_WHITE
#define TILE_COLOR3 MR_COLOR_LIGHT_BLUE</description>
    </item>
    <item rdf:about="https://retroprogramming.iwashere.eu/midres_library:tutorial:mctile:generating_tiles?rev=1601330461&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-09-29T00:01:01+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>midres_library:tutorial:mctile:generating_tiles</title>
        <link>https://retroprogramming.iwashere.eu/midres_library:tutorial:mctile:generating_tiles?rev=1601330461&amp;do=diff</link>
        <description>TUTORIAL: MULTICOLOR TILE

GENERATING TILES

So make sure that the image has a homogeneous white color (0xffffff) on the bottom of the eyes and a black (0x000000) on the background. At this point, save the image by exporting it as a PNG with the name</description>
    </item>
    <item rdf:about="https://retroprogramming.iwashere.eu/midres_library:tutorial:mctile:prerequisities?rev=1601554350&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-10-01T14:12:30+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>midres_library:tutorial:mctile:prerequisities</title>
        <link>https://retroprogramming.iwashere.eu/midres_library:tutorial:mctile:prerequisities?rev=1601554350&amp;do=diff</link>
        <description>TUTORIAL: MULTICOLOR TILE

PREREQUISITES

In order to proceed with this tutorial you must have the following software installed: 

	*  the cc65 compiler (with a defined CC65_HOME path);
	*  a photo editing software (we used GIMP on this tutorial).



In addition, and depending on the platforms concerned, you will need:</description>
    </item>
    <item rdf:about="https://retroprogramming.iwashere.eu/midres_library:tutorial:mctile:program?rev=1601330978&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-09-29T00:09:38+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>midres_library:tutorial:mctile:program</title>
        <link>https://retroprogramming.iwashere.eu/midres_library:tutorial:mctile:program?rev=1601330978&amp;do=diff</link>
        <description>TUTORIAL: MULTICOLOR TILE

LET'S WRITE THE PROGRAM!

We now come to the code, to be inserted in the tutorial_ctile.c file:
#include &quot;midres.h&quot;
The first line is an inclusion, and the file to include is just midres.h, which contains all the definitions needed to use the methods and data structures of the library, and of the various target environments. For example, it contains the color definitions used by</description>
    </item>
</rdf:RDF>
