/minild29

To get this branch, use:
bzr branch http://9ix.org/bzr/minild29

« back to all changes in this revision

Viewing changes to Dark.cpp

  • Committer: Josh C
  • Date: 2011-09-17 19:59:09 UTC
  • Revision ID: josh@9ix.org-20110917195909-v02b0cco0yri61qc
disappear darkness mask in editor mode

Show diffs side-by-side

added added

removed removed

Lines of Context:
214
214
        e->SetCollider(new RectangleCollider(s.x * 64, s.y * 64));
215
215
      }
216
216
   
217
 
    Player *player = new Player;
 
217
    player = new Player();
218
218
    player->position = Graphics::GetScreenCenter();
219
219
    Add(player);
220
220
    Add(player->dark);
257
257
          {
258
258
            isPaused = !isPaused;
259
259
            
260
 
            if (isPaused)
 
260
            if (isPaused) {
 
261
              player->dark->position = Vector2(2048, 1600);
261
262
              levelEditor->Enable();
262
 
            else
 
263
            } else {
263
264
              levelEditor->Disable();
 
265
            }
264
266
          }
265
267
      }
266
268
 
273
275
      this->font = Assets::RequestFont("LiberationSans-Regular.ttf", 18.0f);
274
276
    else
275
277
      this->font = font;
 
278
 
 
279
    SetLayer(-2);
276
280
  }
277
281
 
278
282
  void Text::Render()