/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 20:36:00 UTC
  • Revision ID: josh@9ix.org-20110917203600-4g34074fjamm0ov4
and the graphic

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*> *inv = GetAllTag("invisible");
210
 
    for (std::list<Entity*>::iterator i = inv->begin(); i != inv->end(); ++i)
 
209
    std::list<Entity*> *walls = GetAllTag("wall");
 
210
    for (std::list<Entity*>::iterator i = walls->begin(); i != walls->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->position = Vector2(2048, 1600);
 
261
              player->dark->isVisible = false;
262
262
              levelEditor->Enable();
263
263
            } else {
264
264
              levelEditor->Disable();
 
265
              player->dark->isVisible = true;
265
266
            }
266
267
          }
267
268
      }