Warning

You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.

Tutorial 1: TETRIS

This tutorial will guide you in writing a simple Tetris game in XC=BASIC. The game is relatively easy to implement and I think it is going to be a good start to get you started.

Index

Prerequisites

I will try to explain most of the things as detailed as I can but there are some assumptions I'm making:

  • I assume you know the Commodore BASIC (CBM BASIC or BASIC V2) programming language. I'll only explain commands that are different in XC=BASIC or don't exist in CBM BASIC.
  • You're familiar with the Screen RAM and Color RAM.
  • You understand bitwise operations OR, AND, XOR.
  • You're okay with binary and hexadecimal numbers.

If you need to refresh your memory, I suggest you to refer to the Commodore 64 Programmer's Reference Guide.

About the author

My name is Csaba (IPA: [ˈt͡ʃɒbɒ]) Fekete and I'm the author of XC=BASIC. If you have any questions or suggestions feel free to email me to feketecsaba (at) gmail (dot) com or mention @xc_basic in your tweet. If you like what I do, consider supporting me on Ko-fi! Thanks for reading!