/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
3 by Josh C
square moving around the screen
20
    int const FRICTION;
21
    float const MAXSPEED;
22
    int const ACCELERATION;    
1 by Josh C
initial commit
23
  };
24
25
  class DarkScene : public Scene
26
  {
27
  public:
28
    DarkScene();
29
    void Begin();
30
    void Update();
31
32
    LevelEditor *levelEditor;
33
  };
34
35
  class Text: public Entity
36
  {
37
  public:
38
    Text(const std::string& text, FontAsset* font=NULL);
39
    
40
    void Render();
41
    
42
    void SetFont(FontAsset* font) { this->font = font; }
43
    void SetText(const std::string& text) { this->text = text; }
44
    
45
  protected:
46
    FontAsset* font;
47
    std::string text;
48
  };
49
}
50