summaryrefslogtreecommitdiff
path: root/game/tetrominoes.lua
blob: 94d5b18571a5b86c6a13e629053d0ac051989922 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
local poly = require "game.polyomino"

local M = {}
M.__index = M

M.i = poly.def("tetr.I", [[
	....
	####
	....
	....
]])

M.j = poly.def("tetr.J", [[
	#..
	###
	...
]])

M.l = poly.def("tetr.L", [[
	..#
	###
	...
]])

M.o = poly.def("tetr.O", [[
	....
	.##.
	.##.
	....
]])

M.s = poly.def("tetr.S", [[
	.##
	##.
	...
]])

M.z = poly.def("tetr.Z", [[
	##.
	.##
	...
]])

M.t = poly.def("tetr.T", [[
	.#.
	###
	...
]])

return M