Skip to content

Repository files navigation

Blocks (Tetris clone)

Gameplay

Technology:

About the project:

This is a recreation of tetris, made with Lua programming language and Love2D which is a free, open-source and multi-platform framework for making 2D games. This game was my final project for CS50's Introduction to Game Development.

How to run:

Windows

  • Download the appropriate release file
  • Unzip the file and run blocks.exe

Linux

  • First you must make sure that you have Love2D installed. Love2D is commonly available as part of many distributions repositories. On Debian-based systems you can install it with:
sudo apt install love
  • Download the appropriate release file
  • Double click the .love file to run the game. If this doesnt work, right-click the file with your mouse and select Open with > LOVE or open a terminal in the .love file directory and type love .

Controls:

  • Control with arrow keys:
    • UP - rotate block
    • DOWN - drop block
    • LEFT/RIGHT - move block

Some of the code features:

  • State machine
  • OOP design
  • Tilesets

Credits:

  • timer.lua from Knife ("A collection of useful micro-modules for Lua")
  • class.lua from hump ("LÖVE Helper Utilities for Massive Progression")
  • push.lua from push ("A simple resolution-handling library for LÖVE")

About

Tetris clone made with Lua using Love2d framework.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages