/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:45:40 UTC
  • Revision ID: josh@9ix.org-20110918224540-ygbklhbeh2j27fn7
big yellow ping

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