Exemplo n.º 1
0
 public void Spawn(double x, double y)//cria o Player na tela
 {
     box           = new PlayableSolid(x, y, Matriz.scale, Matriz.scale * 2, Run);
     _PlayerLoader = new PlayerLoader(box, Id);
     _PlayerLoader.Load(parts, sides);
     box.MyEnt = this;
 }
Exemplo n.º 2
0
        public ViewLoopPlayer(FileInfo aFileInfo, ChangeMusicPrevious aChangeMusicPrevious, ChangeMusicNext aChangeMusicNext)
        {
            fileInfo = aFileInfo;

            if (fileInfo == null)
            {
                title  = "Title";
                player = new PlayerNull();
            }
            else
            {
                title  = fileInfo.Name;
                player = PlayerLoader.Load(fileInfo.FullName);
            }

            changeMusicPrevious = aChangeMusicPrevious;
            changeMusicNext     = aChangeMusicNext;

            isMute      = false;
            volume      = 0.5f;
            volumePre   = 0.5f;
            position    = 0.0f;
            positionPre = 0.0f;
        }
Exemplo n.º 3
0
 public void Load()
 {
     id            = CalculateRandomNPC();
     _PlayerLoader = new PlayerLoader(box, id);
     _PlayerLoader.Load(parts, sides);
 }