/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-18 22:31:01 UTC
  • Revision ID: josh@9ix.org-20110918223101-7s86wvx5dkkekhgg
now they chase you (hunt)

Show diffs side-by-side

added added

removed removed

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