/tetrisl

tetris done in love2d and lua (WIP)

Primary LanguageLua

tetris game implemented in love2d

A chance to better learn lua 5.1 and love2d

dev deps

mac

> brew install lua@5.1
> lua5.1

> brew install luarocks
> luarocks --lua-dir=/usr/local/opt/lua@5.1 install luasocket

> luarocks --lua-dir=/usr/local/opt/lua@5.1 show luasocket

# luarocks --lua-dir=/usr/local/opt/lua@5.1 path --bin
> eval $(luarocks --lua-dir=/usr/local/opt/lua@5.1 path --bin)

eval that to make lua5.1 know about the libraries

windows

in an admin powershell do:

> choco install microsoft-build-tools
> choco install lua5.1
> choco install luarocks

in a visual c++ 2017 x86 native build tools command prompt with admin do:

> luarocks install luasocket

both

I recommend installing luacheck and vscode ext vscode-luacheck

instructions

keys:
  gameboy mode
    arrow keys to move
    up rotates, space drops
  tetris 99 mode
    arrow keys to move (up drops)
    Z and X to rotate (CCW, CW)

  S to hold/swap brick
  P pauses
  R restarts
  ESC to exit

Bugs / improvements

  • report feedback please. none currently AFAIK

Possible features

  • screensaver shader BG thingie, maybe
  • networking features
    • log events to UDP
    • lobby to pair 2 players
    • vs game

Publishing...

  • love file for desktop
  • android apk
  • ios ipa
  • web runner

dependencies

useful tools

credits

reference