/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:59:11 UTC
  • Revision ID: josh@9ix.org-20110917035911-wb4a9mw1arfwp2ia
invisible walls and code to bump into them

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
 
    std::string state;
37
 
 
38
 
    SpriteAnimation *sprite;
39
 
    AudioDeck *skitter1;
40
 
 
41
 
    int const FRICTION;
42
 
    float const MAXSPEED;
43
 
    int const ACCELERATION;     
44
 
  };
45
 
 
46
25
  class DarkScene : public Scene
47
26
  {
48
27
  public:
51
30
    void Update();
52
31
 
53
32
    LevelEditor *levelEditor;
54
 
    
55
 
    Player *player;
56
33
  };
57
34
 
58
35
  class Text: public Entity