Example #1
0
        public Entity CreateEntity(String chr, int tx, int ty)
        {
            Entity e = null;

            if (CurrentTileEngine != null)
            {
                e = new Entity();
                V3Chr v3c = new V3Chr(chr);
                V3ChrController v3cc = new V3ChrController(v3c);

                e.setCharacter(v3cc);
                e.WarpTile(tx * 16, ty * 16);
                e.speed = 100f;
                CurrentTileEngine.ee.AddEntity(e);

            }

            return e;
        }
Example #2
0
 public void loadChar(string fname)
 {
     chr = new V3Chr(fname);
 }
Example #3
0
        public Entity CreatePlayer(String chr, int tx, int ty)
        {
            if (CurrentTileEngine != null)
            {
                playerEntity = new Entity();
                playerChr = new V3Chr(chr);
                playerChrController = new V3ChrController(playerChr);

                //playerEnt.bPlayer = true;
                playerEntity.setCharacter(playerChrController);
                CurrentTileEngine.ee.EntityWarpTile(playerEntity, tx, ty);
                playerEntity.speed = 100f;
                //playerEntity.bTileBased = false;

                //MUST TODO
                playerEntity.Driver = new PlayerInputDriver(playerInput);

                CurrentTileEngine.ee.AddEntity(playerEntity);
                CurrentTileEngine.camera.Attach(playerEntity);
            }
            else
            {
                playerEntity = null;
            }

            return playerEntity;
        }
Example #4
0
 public FF6ChrController(V3Chr chr, sysdrawing.Rectangle hotspot, int[] frames)
 {
     this.chr = chr; this.hotspotOverride = hotspot; this.frames = frames;
 }
Example #5
0
 public FF6ChrController(V3Chr chr, int[] frames)
 {
     this.chr = chr; this.frames = frames;
 }
Example #6
0
 public V3ChrController(V3Chr chr)
 {
     this.chr = chr;
     for(int i=1;i<9;i++)
         walkAnims[i] = new StandardChrAnimationController(chr.anims[i]);
 }