/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 16:59:41 UTC
  • Revision ID: josh@9ix.org-20110918165941-waswg2xidvf0v04x
player and creature spawners in level editor

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