/minild29

To get this branch, use:
bzr branch http://9ix.org/bzr/minild29
1 by Josh C
initial commit
1
#include "Monocle.h"
2
#include "Graphics/SpriteAnimation.h"
3
#include "LevelEditor/LevelEditor.h"
4
5
using namespace Monocle;
6
7
namespace Dark
8
{
9
  class Player : public Entity
10
  {
11
  public:
12
    Player();
13
    void Update();
14
15
    Vector2 velocity;
16
17
    SpriteAnimation *sprite;
18
3 by Josh C
square moving around the screen
19
    int const FRICTION;
20
    float const MAXSPEED;
21
    int const ACCELERATION;    
1 by Josh C
initial commit
22
  };
23
5 by Josh C
added a "creature" moving around w/ the same dynamics as you do
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
1 by Josh C
initial commit
42
  class DarkScene : public Scene
43
  {
44
  public:
45
    DarkScene();
46
    void Begin();
47
    void Update();
48
49
    LevelEditor *levelEditor;
50
  };
51
52
  class Text: public Entity
53
  {
54
  public:
55
    Text(const std::string& text, FontAsset* font=NULL);
56
    
57
    void Render();
58
    
59
    void SetFont(FontAsset* font) { this->font = font; }
60
    void SetText(const std::string& text) { this->text = text; }
61
    
62
  protected:
63
    FontAsset* font;
64
    std::string text;
65
  };
66
}
67