/minild29

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

« back to all changes in this revision

Viewing changes to Dark.h

  • Committer: Josh C
  • Date: 2011-09-17 20:10:52 UTC
  • Revision ID: josh@9ix.org-20110917201052-ehpgcrfxfey2q81y
drastically less hacky way to hide the darkness

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
    void Update();
14
14
 
15
15
    Vector2 velocity;
16
 
    float noisiness;
17
16
 
18
17
    SpriteAnimation *sprite;
19
18
    Entity *dark;
34
33
    Vector2 direction;
35
34
    float aiTime;
36
35
    std::string state;
37
 
    float maxspeed;
38
36
 
39
37
    SpriteAnimation *sprite;
40
38
    AudioDeck *skitter1;
41
 
    AudioAsset *alert;
42
 
    AudioDeck *sniff;
43
39
 
44
40
    int const FRICTION;
45
 
    int const ACCELERATION;
46
 
    float const DEFAULT_MAXSPEED;
47
 
    float const STALKSPEED;
48
 
    //float const HUNTSPEED;
49
 
  };
50
 
 
51
 
  class Ping : public Entity
52
 
  {
53
 
  public:
54
 
    Ping();
55
 
    void Update();
56
 
    static Ping *NewPing(Vector2 pos, float d1, float d2, float t2);
57
 
 
58
 
    float d1, d2, t, t2;
59
 
 
60
 
    Sprite *sprite;
 
41
    float const MAXSPEED;
 
42
    int const ACCELERATION;     
61
43
  };
62
44
 
63
45
  class DarkScene : public Scene
66
48
    DarkScene();
67
49
    void Begin();
68
50
    void Update();
69
 
    void HideSpawners();
70
 
    void ShowSpawners();
71
 
    void Spawn();
72
51
 
73
52
    LevelEditor *levelEditor;
74
53