Skip to content

NES Tetris, Implemented in C++, no emulation or disassembly

Notifications You must be signed in to change notification settings

benchislett/Tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Classic NES Tetris

Description

Recreation of the NES Tetris game in C++ using the SFML graphics library.

Game over screen

Installation

Dependencies

The only nonstandard dependency is SFML, a graphics library for rendering in C++

Makefile

The executable is built with g++ to a file named tetris, via the make command.

make clean will clear any object and executable files lingering, as well as resetting the highscore and output image.

Usage

Once built, run the executable with ./tetris.

Gameplay is relatively simple:

  • The game starts at level 0, and increases once per 10 lines
  • To increase the drop speed, hold the down arrow key
  • To shift left or right, tap or hold the respective arrow key
  • To rotate clockwise, press "z"
  • To rotate counterclockwise, press "x"
  • To exit the game, press "q"

If unsure about rules or gameplay, refer to the NES classis tetris manual

TODOs

  • Add title screen
  • Add victory screen
  • Add "lightning" effect when tetris is achieved
  • Add configurable button presses
  • Limit integer values to their maximum digit count
  • Add sound effects

About

NES Tetris, Implemented in C++, no emulation or disassembly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published