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