/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 17:12:23 UTC
  • Revision ID: josh@9ix.org-20110917171223-hsvrl6q7mxxbc1sv
creatures move less, make everything smaller

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
 
16
15
    Vector2 velocity;
17
16
 
18
17
    SpriteAnimation *sprite;
 
18
    AudioDeck *footsteps;
19
19
 
20
20
    int const FRICTION;
21
21
    float const MAXSPEED;
22
22
    int const ACCELERATION;    
23
23
  };
24
24
 
 
25
  class Creature : public Entity
 
26
  {
 
27
  public:
 
28
    Creature();
 
29
    void Update();
 
30
 
 
31
    Vector2 velocity;
 
32
    Vector2 direction;
 
33
    float aiTime;
 
34
    std::string state;
 
35
 
 
36
    SpriteAnimation *sprite;
 
37
    AudioDeck *skitter1;
 
38
 
 
39
    int const FRICTION;
 
40
    float const MAXSPEED;
 
41
    int const ACCELERATION;     
 
42
  };
 
43
 
25
44
  class DarkScene : public Scene
26
45
  {
27
46
  public: