/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:
206
206
    Level::LoadProject("project.xml");
207
207
    Level::Load("level.xml", this);
208
208
 
209
 
    std::list<Entity*> *walls = GetAllTag("wall");
210
 
    for (std::list<Entity*>::iterator i = walls->begin(); i != walls->end(); ++i)
 
209
    std::list<Entity*> *inv = GetAllTag("invisible");
 
210
    for (std::list<Entity*>::iterator i = inv->begin(); i != inv->end(); ++i)
211
211
      {
212
212
        Entity *e = (*i);
213
213
        Vector2 s = e->scale;
258
258
            isPaused = !isPaused;
259
259
            
260
260
            if (isPaused) {
261
 
              player->dark->isVisible = false;
 
261
              player->dark->position = Vector2(2048, 1600);
262
262
              levelEditor->Enable();
263
263
            } else {
264
264
              levelEditor->Disable();
265
 
              player->dark->isVisible = true;
266
265
            }
267
266
          }
268
267
      }