/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
#include "Graphics/Tilemap.h"
5
6
using namespace Monocle;
7
8
namespace Dark
9
{
10
  class Player : public Entity
11
  {
12
  public:
13
    Player();
14
    void Update();
15
16
    Vector2 velocity;
17
18
    SpriteAnimation *sprite;
19
20
    float const VELOCITY;
21
  };
22
23
  class DarkScene : public Scene
24
  {
25
  public:
26
    DarkScene();
27
    void Begin();
28
    void Update();
29
30
    LevelEditor *levelEditor;
31
  };
32
33
  class Text: public Entity
34
  {
35
  public:
36
    Text(const std::string& text, FontAsset* font=NULL);
37
    
38
    void Render();
39
    
40
    void SetFont(FontAsset* font) { this->font = font; }
41
    void SetText(const std::string& text) { this->text = text; }
42
    
43
  protected:
44
    FontAsset* font;
45
    std::string text;
46
  };
47
}
48