/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:
1
1
#include "Monocle.h"
2
2
#include "Graphics/SpriteAnimation.h"
3
3
#include "LevelEditor/LevelEditor.h"
4
 
#include "Graphics/Tilemap.h"
5
4
 
6
5
using namespace Monocle;
7
6
 
14
13
    void Update();
15
14
 
16
15
    Vector2 velocity;
 
16
    float noisiness;
17
17
 
18
18
    SpriteAnimation *sprite;
 
19
    Entity *dark;
 
20
    AudioDeck *footsteps;
19
21
 
20
22
    int const FRICTION;
21
23
    float const MAXSPEED;
22
24
    int const ACCELERATION;    
23
25
  };
24
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
    std::string state;
 
38
 
 
39
    SpriteAnimation *sprite;
 
40
    AudioDeck *skitter1;
 
41
    AudioAsset *alert;
 
42
    AudioAsset *stalk;
 
43
 
 
44
    int const FRICTION;
 
45
    float const MAXSPEED;
 
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;
 
61
  };
 
62
 
25
63
  class DarkScene : public Scene
26
64
  {
27
65
  public:
28
66
    DarkScene();
29
67
    void Begin();
30
68
    void Update();
 
69
    void HideSpawners();
 
70
    void ShowSpawners();
 
71
    void Spawn();
31
72
 
32
73
    LevelEditor *levelEditor;
 
74
    
 
75
    Player *player;
33
76
  };
34
77
 
35
78
  class Text: public Entity