1.) Windows 2.) Linux 3.) Commodore
Linux and Windows implementations use the SDL2 library from https://www.libsdl.org/ whereas the commodore implementation uses sprites instead which are very well suited for this demonstration. However i wanted to use as much shared code as possible which limited the usage of asm in the commodore target. The commodore routines could be 100x faster when using asm, however as all targets now display what they should i consider this task accomplished. Here are some screen captures from the different targets:
- windows executable
- c64 executable (the stripes result from PAL emulation)
- linux executable
Code has been tested on
- Windows 8.1, 64 Bit
- Ubuntu 16.04 LTS
- VICE C64 Emulator, V 2.4