/assembly2048

2048 made in x86 TASM assembly

Primary LanguageAssembly

2048 in x86 Assembly

Recreated the 2014 game in x86 assembly over the course of ~12 days for a computer science project. image

Features

  • Block Animation (Settling, Merging, Spawning)
  • Score Counter
  • Camera Shake
  • Mouse interactions
  • Buttons for toggling camerashake/animation
  • UI Animations (logo, background particles, game over, menu transitions)

How to Run

  1. Use DOSBOX with TASM installed and extracted to a directory.
  2. Place 2048.asm in the directory where TASM's BIN folder is.
  3. Assuming TASM is extracted to C:/, Enter the following lines: (everything with a = is optional, but recommended)
mount c: c:\
c:
cd yourdirectory
cycles = max
core = dynamic
output = openglnb
windowresolution = 1280x800
tasm 2048.asm /zi
tlink 2048.obj
2048

MASM-TASM Alternative

Alternatively, you can use the MASM-TASM extension for visual studio, in that case simply:

  1. Open the 2048.asm script in VSCode
  2. Right click, and select "Run ASM Code"
  3. (Optional) Make sure your settings are fine (if you are using DOSBOX-X, you can modify them from within the window, if not you can check the extension's settings and add to the default configuration).