Deps:
Go-SDL, Go-OpenGL and my opengl_util package (is in the repo).
Notes:
1. Make sure you have 'master' branch of Go-SDL. Gotris uses one
function that isn't available in 'release' branch. It is safe to remove
that function usage from gotris.go and compile gotris with 'release'
Go-SDL branch. But it is better to use 'master' branch. This function
turns vsync mode on.
2. Unfortunately many of you will not be able to build Go-SDL and
Go-OpenGL. Because a lot of people keep telling me that they have
error messages while building these libraries. The best thing to do is
figure out the problem and contact the author (keep in mind - every
developer like patches, they are telling much more than a bug itself
obviously).
3. You can use one of those variants:
WASD, IJKL, Arrows. Additionally a space bar drops a figure too.
4. It will be good to hear if you've actually succeeded in compiling
and running this game. Because I hear mostly problem reports with
compilation.
5. A flag (-level) available to specify initial level (affects speed).
Levels varies in range 1..9, the last one is pretty playable.
6. Tetris draws everything using glBegin/glEnd calls. So, there are a
lot of cgo calls. Probably can be used to see how a big amount of cgo
calls works in an application.
2. Unfortunately many of you will not be able to build Go-SDL and
Go-OpenGL. Because a lot of people keep telling me that they have
error messages while building these libraries. The best thing to do is
figure out the problem and contact the author (keep in mind - every
developer like patches, they are telling much more than a bug itself
obviously).