/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 03:16:50 UTC
  • Revision ID: josh@9ix.org-20110917031650-z4zm6jm68luxs400
bare necessary assets

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#include "Monocle.h"
2
2
#include "Graphics/SpriteAnimation.h"
3
3
#include "LevelEditor/LevelEditor.h"
 
4
#include "Graphics/Tilemap.h"
4
5
 
5
6
using namespace Monocle;
6
7
 
13
14
    void Update();
14
15
 
15
16
    Vector2 velocity;
16
 
    float noisiness;
17
 
 
18
 
    SpriteAnimation *sprite;
19
 
    Entity *dark;
20
 
    AudioDeck *footsteps;
21
 
 
22
 
    int const FRICTION;
23
 
    float const MAXSPEED;
24
 
    int const ACCELERATION;    
25
 
  };
26
 
 
27
 
  class Creature : public Entity
28
 
  {
29
 
  public:
30
 
    Creature();
31
 
    void Update();
32
 
 
33
 
    Vector2 velocity;
34
 
    Vector2 direction;
35
 
    float aiTime;
36
 
    float noiseTime;
37
 
    float graceTime;
38
 
    std::string state;
39
 
    float maxspeed;
40
 
 
41
 
    SpriteAnimation *sprite;
42
 
    AudioDeck *skitter1;
43
 
    AudioAsset *alert;
44
 
    AudioDeck *sniff;
45
 
    AudioAsset *freakout;
46
 
    AudioAsset *chomp;
47
 
 
48
 
    int const FRICTION;
49
 
    int const ACCELERATION;
50
 
    float const DEFAULT_MAXSPEED;
51
 
    float const STALKSPEED;
52
 
    //float const HUNTSPEED;
53
 
  };
54
 
 
55
 
  class Ping : public Entity
56
 
  {
57
 
  public:
58
 
    Ping();
59
 
    void Update();
60
 
    static Ping *NewPing(Vector2 pos, float d1, float d2, float t2);
61
 
 
62
 
    float d1, d2, t, t2;
63
 
 
64
 
    Sprite *sprite;
 
17
 
 
18
    SpriteAnimation *sprite;
 
19
 
 
20
    float const VELOCITY;
65
21
  };
66
22
 
67
23
  class DarkScene : public Scene
70
26
    DarkScene();
71
27
    void Begin();
72
28
    void Update();
73
 
    void HideSpawners();
74
 
    void ShowSpawners();
75
 
    void Spawn();
76
29
 
77
30
    LevelEditor *levelEditor;
78
 
    
79
 
    Player *player;
80
31
  };
81
32
 
82
33
  class Text: public Entity