/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 16:54:23 UTC
  • Revision ID: josh@9ix.org-20110917165423-wflahgpej1hbjowe
harder to see creatures

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
  {
84
84
    sprite = new SpriteAnimation("creature.png", FILTER_NONE, 64, 64);
85
85
    sprite->Add("idle", 0, 0, 0.35f);
 
86
    sprite->Add("move", 1, 2, 4.0f);
86
87
    sprite->Play("idle");
87
88
    SetGraphic(sprite);
88
89
 
153
154
    if (ycol) {velocity.y = 0;}
154
155
 
155
156
    if (velocity.GetSquaredMagnitude() > 20)
156
 
      skitter1->Play();
 
157
      {
 
158
        skitter1->Play();
 
159
        sprite->Play("move");
 
160
      }
157
161
    else
158
 
      skitter1->Pause(); //Stop()?
 
162
      {
 
163
        skitter1->Pause(); //Stop()?
 
164
        sprite->Play("idle");
 
165
      }
159
166
  }
160
167
 
161
168
  // Scene
212
219
    creature2->position = Graphics::GetScreenCenter();
213
220
    Add(creature2);
214
221
 
215
 
    Graphics::SetBackgroundColor(Color::green * 0.2f);
 
222
    Graphics::SetBackgroundColor(Color::black * 0.2f);
216
223
 
217
224
  }
218
225