https://github.com/josepedrodias/tetrisl
tetris done in love2d / lualang
https://github.com/josepedrodias/tetrisl
gamedev love2d lua tetris
Last synced: about 2 months ago
JSON representation
tetris done in love2d / lualang
- Host: GitHub
- URL: https://github.com/josepedrodias/tetrisl
- Owner: JosePedroDias
- Created: 2019-02-18T02:37:07.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-27T20:51:33.000Z (almost 5 years ago)
- Last Synced: 2025-01-21T09:48:24.665Z (3 months ago)
- Topics: gamedev, love2d, lua, tetris
- Language: Lua
- Homepage: https://josepedrodias.github.io/tetrisl/dist/tetris.love
- Size: 5.33 MB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tetris game implemented in love2d
A chance to better learn lua 5.1 and love2d.
Should run in windows/mac/linux and android. (virtual keys are displayed on top of the game).## dev deps (relevant for server-side dev and luacheck only)
### mac
> brew install [email protected]
> lua5.1
> brew install luarocks
> luarocks --lua-dir=/usr/local/opt/[email protected] install luacheck
> eval $(luarocks --lua-dir=/usr/local/opt/[email protected] path --bin)### windows
in an admin powershell do:
> choco install microsoft-build-tools
> choco install lua5.1
> choco install luarocksin a visual c++ 2017 x86 native build tools command prompt with admin do:
> luarocks install luacheck
### linux (ubuntu)
installed latest love2d with
> sudo apt install love
then...
> sudo apt install lua5.1
> sudo apt install luarocks
> luarocks install luacheck### 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
## useful tools
- [sfmaker](https://www.leshylabs.com/apps/sfMaker/)
- [bitmap font generator](http://www.angelcode.com/products/bmfont/)
- [xmedia-recode](https://www.xmedia-recode.de)## asset credits
-
## reference
- [lua manual 5.1](https://www.lua.org/manual/5.1/)
- [lua demo](https://www.lua.org/cgi-bin/demo)
- [tests with testy](https://github.com/siffiejoe/lua-testy)
- [love2d api](http://love2d-community.github.io/love-api/)
- [tetris](https://en.wikipedia.org/wiki/Tetris)
- [some tetris specs](https://www.colinfahey.com/tetris/)