/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;
6 by Josh C
skittering blue square
36
    AudioDeck *skitter1;
5 by Josh C
added a "creature" moving around w/ the same dynamics as you do
37
38
    int const FRICTION;
39
    float const MAXSPEED;
40
    int const ACCELERATION;     
41
  };
42
1 by Josh C
initial commit
43
  class DarkScene : public Scene
44
  {
45
  public:
46
    DarkScene();
47
    void Begin();
48
    void Update();
49
50
    LevelEditor *levelEditor;
51
  };
52
53
  class Text: public Entity
54
  {
55
  public:
56
    Text(const std::string& text, FontAsset* font=NULL);
57
    
58
    void Render();
59
    
60
    void SetFont(FontAsset* font) { this->font = font; }
61
    void SetText(const std::string& text) { this->text = text; }
62
    
63
  protected:
64
    FontAsset* font;
65
    std::string text;
66
  };
67
}
68