TetrisAttack/src/main.cpp
raw| 1 | #include "tetris.h" |
| 2 | |
| 3 | int main(int argc, char **argv) |
| 4 | { |
| 5 | srand(time(NULL)); |
| 6 | try |
| 7 | { |
| 8 | list<CVector> offsets; |
| 9 | offsets.push_back(CVector(379,57)); |
| 10 | CTetrisGame d(640,480,32, false, "Blocks of the Undead" ); |
| 11 | d.setTheme( new CTetrisTheme(), offsets); |
| 12 | |
| 13 | d.start(); |
| 14 | return 0; |
| 15 | } |
| 16 | catch (ex_Generic e) |
| 17 | { |
| 18 | |
| 19 | ostringstream o; |
| 20 | e.stackTrace(o); |
| 21 | LOG(o.str(), 1, LOG_ERROR); |
| 22 | return 1; |
| 23 | } |
| 24 | } |
| 25 |