Changeset 341
- Timestamp:
- Feb 3, 2011, 2:28:48 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/monsterz/fusion.cpp
r339 r341 21 21 #include "fusion.h" 22 22 #include "piece.h" 23 #include "thumbs.h" 23 24 #include "mash.h" 24 25 #include "monsterz.h" … … 35 36 int2 dim; 36 37 int npieces; 37 int board, tiles , icons;38 int board, tiles; 38 39 39 40 struct Pair … … 45 46 int next[2], rotation; 46 47 47 Text *counticons[MAX_PIECES];48 int counts[MAX_PIECES];49 50 48 Text *scoretext; 51 49 int score; 52 50 53 51 Emitter *emitter; 52 Thumbs *thumbs; 54 53 55 54 enum … … 71 70 data->board = Tiler::Register(PNG_BOARD, 384, 384, 1.0f); 72 71 data->tiles = Tiler::Register(PNG_TILES, 48, 48, 1.0f); 73 data->icons = Tiler::Register(PNG_ICONS, 24, 24, 1.0f);74 72 75 73 data->emitter = new Emitter(data->tiles, float3(0, -0.0006f, 0)); 76 74 Ticker::Ref(data->emitter); 75 76 data->thumbs = new Thumbs(npieces); 77 Ticker::Ref(data->thumbs); 77 78 78 79 for (int j = 0; j < data->dim.j; j++) … … 201 202 Input::UntrackMouse(this); 202 203 204 Ticker::Unref(data->thumbs); 203 205 for (int j = 0; j < data->dim.j; j++) 204 206 for (int i = 0; i < data->dim.i; i++) … … 210 212 Tiler::Deregister(data->board); 211 213 Tiler::Deregister(data->tiles); 212 Tiler::Deregister(data->icons);213 214 delete data; 214 215 }
Note: See TracChangeset
for help on using the changeset viewer.