/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 04:24:47 UTC
  • Revision ID: josh@9ix.org-20110917042447-pht93k6g9j22wtar
added a "creature" moving around w/ the same dynamics as you do 
(acceleration, collision)

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