MasterPiece

A Tetris-style Game Written in Pure x86-64 Assembly

About the Project

MasterPiece is a fully functional Tetris-style puzzle game written entirely in x86-64 Assembly language. This project demonstrates low-level programming skills, direct system calls, and manual memory management while creating an engaging and playable game experience.

The game features classic Tetris gameplay mechanics including block movement, line clearing, scoring system, and smooth graphics rendering using SDL2 for cross-platform compatibility.

Technical Implementation

Language

100% x86-64 Assembly (GNU Assembler)

Graphics

SDL2 Library

Text Rendering

SDL2_ttf

Platform

Linux x86-64

Key Features

Pure Assembly Code

Every line of game logic, rendering, and event handling written in assembly with direct system calls and manual register management.

Memory Management

Custom stack management, buffer allocation, and manual memory initialization to prevent leaks and undefined behavior.

Game Mechanics

Complete Tetris implementation with piece movement, rotation, line clearing, collision detection, and score tracking.

Graphics & Input

Real-time rendering with SDL2, keyboard input handling, and smooth 60 FPS gameplay experience.

Screenshots

Screen
Screen

View Source Code

Explore the complete assembly source code, build instructions, and technical documentation:

View on GitHub