/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-19 18:51:34 UTC
  • Revision ID: josh@9ix.org-20110919185134-4sgy1r2m1jjfdody
fix spurs

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;
16
17
 
17
18
    SpriteAnimation *sprite;
18
19
    Entity *dark;
32
33
    Vector2 velocity;
33
34
    Vector2 direction;
34
35
    float aiTime;
 
36
    float noiseTime;
 
37
    float graceTime;
35
38
    std::string state;
 
39
    float maxspeed;
36
40
 
37
41
    SpriteAnimation *sprite;
38
42
    AudioDeck *skitter1;
 
43
    AudioAsset *alert;
 
44
    AudioDeck *sniff;
 
45
    AudioAsset *freakout;
 
46
    AudioAsset *chomp;
39
47
 
40
48
    int const FRICTION;
41
 
    float const MAXSPEED;
42
 
    int const ACCELERATION;     
 
49
    int const ACCELERATION;
 
50
    float const DEFAULT_MAXSPEED;
 
51
    float const STALKSPEED;
 
52
    //float const HUNTSPEED;
 
53
  };
 
54
 
 
55
  class Ping : public Entity
 
56
  {
 
57
  public:
 
58
    Ping();
 
59
    void Update();
 
60
    static Ping *NewPing(Vector2 pos, float d1, float d2, float t2);
 
61
 
 
62
    float d1, d2, t, t2;
 
63
 
 
64
    Sprite *sprite;
43
65
  };
44
66
 
45
67
  class DarkScene : public Scene
48
70
    DarkScene();
49
71
    void Begin();
50
72
    void Update();
 
73
    void HideSpawners();
 
74
    void ShowSpawners();
 
75
    void Spawn();
51
76
 
52
77
    LevelEditor *levelEditor;
53
78