Tetris/Go: Difference between revisions
Content added Content deleted
(Oops, typo) |
m (Fixed syntax highlighting.) |
||
Line 15: | Line 15: | ||
The C game uses gray for all 7 pieces but I have changed this so that the active piece and the incoming (aka preview) piece display in the standard colors. However, when the active piece hits the bottom its color changes to gray as before. |
The C game uses gray for all 7 pieces but I have changed this so that the active piece and the incoming (aka preview) piece display in the standard colors. However, when the active piece hits the bottom its color changes to gray as before. |
||
< |
<syntaxhighlight lang="go">package main |
||
import ( |
import ( |
||
Line 727: | Line 727: | ||
UnloadGame() |
UnloadGame() |
||
rl.CloseWindow() |
rl.CloseWindow() |
||
}</ |
}</syntaxhighlight> |