User Tools

Site Tools

Translations of this page:


The MIDRES library, created to implement a rudimentary form of medium resolution graphics support, allows you to quickly create games for many 8-bit platforms. Thanks to its linear API and to the availability of additional tools, such as the tile generator and the image generator, it is possible to write a program once that will run on more than eleven home computing platforms.


To add support for the midres library, simply include the “midres.h” file in the necessary sources. This file contains all the definitions and data types required for manipulating the screens, doing animations and so on.

  #include "midres.h"

This page contains the a short function reference (it's a work in progress).

For some activities, you can use some tools “out of the box”:

  • img2midres - to convert images into midres screens.
  • img2tile - to convert images into programmable tiles.


Official repository contains a generic makefile.

The makefile has been designed to be able to compile a specific demo, game or tutorial for a specific platform.

To compile the demo “TILE” for Commodore 64, the command is

 make demo=TILE target=c64 clean all

To compile the tutorial “CTILE” for Atari, the command is

 make demo=CTILE target=atari clean all

To compile the game “Air Attack!” for Commodore 128, the command is

 make game=airattack target=c128 clean all

A make clean should be always executed before any rebuild.


Alien Storm game

Totto! game

Air Attack! game


This page contains the list of demonstration programs, which can be compiled using the makefile from the library source.

midres_library.txt · Last modified: 2020/10/18 11:32 by spotlessmind1975