/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 17:12:23 UTC
  • Revision ID: josh@9ix.org-20110917171223-hsvrl6q7mxxbc1sv
creatures move less, make everything smaller

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
 
    Entity *dark;
20
18
    AudioDeck *footsteps;
21
19
 
22
20
    int const FRICTION;
33
31
    Vector2 velocity;
34
32
    Vector2 direction;
35
33
    float aiTime;
36
 
    float noiseTime;
37
 
    float graceTime;
38
34
    std::string state;
39
 
    float maxspeed;
40
35
 
41
36
    SpriteAnimation *sprite;
42
37
    AudioDeck *skitter1;
43
 
    AudioAsset *alert;
44
 
    AudioDeck *sniff;
45
 
    AudioAsset *freakout;
46
38
 
47
39
    int const FRICTION;
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;
 
40
    float const MAXSPEED;
 
41
    int const ACCELERATION;     
64
42
  };
65
43
 
66
44
  class DarkScene : public Scene
69
47
    DarkScene();
70
48
    void Begin();
71
49
    void Update();
72
 
    void HideSpawners();
73
 
    void ShowSpawners();
74
 
    void Spawn();
75
50
 
76
51
    LevelEditor *levelEditor;
77
 
    
78
 
    Player *player;
79
52
  };
80
53
 
81
54
  class Text: public Entity