/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
34
    std::string state;
38
 
    float maxspeed;
39
35
 
40
36
    SpriteAnimation *sprite;
41
37
    AudioDeck *skitter1;
42
 
    AudioAsset *alert;
43
 
    AudioDeck *sniff;
44
 
    AudioAsset *freakout;
45
38
 
46
39
    int const FRICTION;
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;
 
40
    float const MAXSPEED;
 
41
    int const ACCELERATION;     
63
42
  };
64
43
 
65
44
  class DarkScene : public Scene
68
47
    DarkScene();
69
48
    void Begin();
70
49
    void Update();
71
 
    void HideSpawners();
72
 
    void ShowSpawners();
73
 
    void Spawn();
74
50
 
75
51
    LevelEditor *levelEditor;
76
 
    
77
 
    Player *player;
78
52
  };
79
53
 
80
54
  class Text: public Entity