Esempio n. 1
0
        public GameObject(RenderTileObject objRender)
        {
            this.objRender     = objRender;
            this.direction     = direction.Mid;
            this.idle          = true;
            this.startframe    = 0;
            this.animationrate = 4;
            this.framlimit     = objRender.getImage().Width / objRender.getTileWidth();
            this.framecurrent  = 0;

            this.transform = new Transform();
        }
Esempio n. 2
0
 public Player(RenderTileObject robj) : base(robj)
 {
     this.objRender.setFrameIndex(1);
 }
Esempio n. 3
0
 public Monster(RenderTileObject ren)
 {
     game = new GameObject(ren);
 }
Esempio n. 4
0
 public NPC(RenderTileObject rbj, Graph graph, int movespeed)
 {
     this.gameobject = new GameObject(rbj);
     this.path       = new PathFinder(graph, this.gameobject.transform, movespeed);
 }