/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:32:26 UTC
  • Revision ID: josh@9ix.org-20110917033226-h7qh4w1plypy7wk0
square moving around the screen

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
17
 
18
18
    SpriteAnimation *sprite;
19
 
    Entity *dark;
20
 
    AudioDeck *footsteps;
21
19
 
22
20
    int const FRICTION;
23
21
    float const MAXSPEED;
24
22
    int const ACCELERATION;    
25
23
  };
26
24
 
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
 
    std::string state;
38
 
    float maxspeed;
39
 
 
40
 
    SpriteAnimation *sprite;
41
 
    AudioDeck *skitter1;
42
 
    AudioAsset *alert;
43
 
    AudioDeck *sniff;
44
 
    AudioAsset *freakout;
45
 
 
46
 
    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;
63
 
  };
64
 
 
65
25
  class DarkScene : public Scene
66
26
  {
67
27
  public:
68
28
    DarkScene();
69
29
    void Begin();
70
30
    void Update();
71
 
    void HideSpawners();
72
 
    void ShowSpawners();
73
 
    void Spawn();
74
31
 
75
32
    LevelEditor *levelEditor;
76
 
    
77
 
    Player *player;
78
33
  };
79
34
 
80
35
  class Text: public Entity