當前位置: 首頁>>代碼示例>>C#>>正文


C# PyramidPanic.PyramidPanic類代碼示例

本文整理匯總了C#中PyramidPanic.PyramidPanic的典型用法代碼示例。如果您正苦於以下問題:C# PyramidPanic類的具體用法?C# PyramidPanic怎麽用?C# PyramidPanic使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


PyramidPanic類屬於PyramidPanic命名空間,在下文中一共展示了PyramidPanic類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Image

 //Constructor
 public Image(PyramidPanic game,Vector2 position,string pathName)
 {
     this.game = game;
      this.position = position;
      this.texture = game.Content.Load<Texture2D>(pathName);
      this.rectangle = new Rectangle((int)this.position.X,(int)this.position.Y,this.texture.Width,this.texture.Height);
 }
開發者ID:Bob-Thomas,項目名稱:Pyramid-Panic,代碼行數:8,代碼來源:Image.cs

示例2: StartScene

        // Constructor van de StartScene-class krijgt een object game mee van het type PyramidPanic
        public StartScene(PyramidPanic game)
        {
            this.game = game;

            // Roep de Initialize method aan
            this.Initialize();
        }
開發者ID:RWinning,項目名稱:Toets1-GameScenes,代碼行數:8,代碼來源:StartScene.cs

示例3: Scorpion

 //Properties
 //Constructor
 public Scorpion(PyramidPanic game)
 {
     this.game = game;
     this.texture = this.game.Content.Load<Texture2D>(@"PlayScene/Scorpion");
     this.sourceRectangle = new Rectangle(0, 0, 32, 32);
     this.destinationRectangle = new Rectangle(100, 200, this.texture.Width/4, this.texture.Height);
 }
開發者ID:RWinning,項目名稱:Toets1-GameScenes,代碼行數:9,代碼來源:Scorpion.cs

示例4: Level

        //Constructor
        public Level(PyramidPanic game, int levelIndex)
        {
            this.game = game;
            this.levelIndex = levelIndex;
            /*
            System.IO.Stream stream = TitleContainer.OpenStream(@"Content\PlaySceneAssets\Levels\0.txt");
            System.IO.StreamReader sreader = new System.IO.StreamReader(stream);
            // use StreamReader.ReadLine or other methods to read the file data

            Console.WriteLine("File Size: " + stream.Length);
            stream.Close();
            */

            this.levelPath = @"Content\PlaySceneAssets\Levels\" + levelIndex + ".txt";
            this.stream = TitleContainer.OpenStream(this.levelPath);
            //this.levelPath = @"Content\PlaySceneAssets\Levels\0.txt";
            //this.levelPath = @"Content\PlaySceneAssets\Levels\" + levelIndex + ".txt";

            //eeee
            //IAsyncResult result = StorageDevice.BeginShowSelector(
            //        PlayerIndex.One, null, null);
            //StorageDevice device = StorageDevice.EndShowSelector(result);
            //device.BeginOpenContainer.

            //eeeee
            this.LoadAssets();
            ExplorerManager.Explorer = this.explorer;
            this.levelPause = new LevelPause(this);
            this.levelPlay = new LevelPlay(this);
            this.levelDoorOpen = new LevelDoorOpen(this);
            this.levelGameOver = new LevelGameOver(this);
            this.levelNextLevel = new LevelNextLevel(this);
            this.levelState = this.levelPlay;
            this.stream.Close();
        }
開發者ID:rexthehero,項目名稱:PyramidPanic,代碼行數:36,代碼來源:Level.cs

示例5: Level

 //construction
 public Level(PyramidPanic game,int levelIndex)
 {
     this.game = game;
     this.levelPath = @"Content\PlaySceneAssets\Levels\"+levelIndex+".txt";
     this.loadAssets();
     Score.initialize();
 }
開發者ID:Bob-Thomas,項目名稱:Pyramid-Panic,代碼行數:8,代碼來源:Level.cs

示例6: StartScene

 //Constructor
 public StartScene(PyramidPanic game)
 {
     this.game = game;
     this.background = new Image(game, @"StartSceneAssets\Background", Vector2.Zero);
     this.title = new Image(game, @"StartSceneAssets\Title", new Vector2(110f, 30f));
     this.menu = new MenuStartScene(this.game);
 }
開發者ID:Jaapster1337,項目名稱:PyramidPanic,代碼行數:8,代碼來源:StartScene.cs

示例7: ScoreScene

        //Maak een variabele (reference) aan van de Menu class genaamd menu
        // Constructor van StartScene-class krijgt een object game mee van het type PyramidPanic
        public ScoreScene(PyramidPanic game)
        {
            this.game = game;

            //roep de initialize method aan
            this.initialize();
        }
開發者ID:RWinning,項目名稱:Toets1-GameScenes,代碼行數:9,代碼來源:ScoreScene.cs

示例8: Main

 static void Main(string[] args)
 {
     using (PyramidPanic game = new PyramidPanic())
     {
         game.Run();
     }
 }
開發者ID:KevinKentie,項目名稱:Toets-1-GameScenes,代碼行數:7,代碼來源:Program.cs

示例9: StartScene

 // constructor
 public StartScene(PyramidPanic game)
 {
     this.game = game;
     this.background = new Image(game, Vector2.Zero, "StartMenu//background");
     this.title = new Image(game, new Vector2(100f, 30f), "StartMenu//Title");
     this.menu = new MenuStartScene(this.game);
     PlayScene.LevelNumber = 0;
 }
開發者ID:Bob-Thomas,項目名稱:Pyramid-Panic,代碼行數:9,代碼來源:StartScene.cs

示例10: Explorder

 //Constructors
 public Explorder(PyramidPanic game)
     : base(game)
 {
     this.game = game;
     this.texture = game.Content.Load<Texture2D>(@"Explorder\Explorer");
     this.destinationRectangle.X = 0;
     this.destinationRectangle.X = 150;
 }
開發者ID:RWinning,項目名稱:Toets1-GameScenes,代碼行數:9,代碼來源:Explorder.cs

示例11: Level

        // Constructor
        public Level(PyramidPanic game, int levelIndex)
        {
            this.game = game;
            this.levelIndex = levelIndex;

            //Laad het textbestand met behulp van een stream object
            this.stream = TitleContainer.OpenStream(@"Content\Level\0.txt");
            this.LoadAssets();
        }
開發者ID:RWinning,項目名稱:KingsValley,代碼行數:10,代碼來源:Level.cs

示例12: Image

 //constructor
 public Image(PyramidPanic game, String pathnameAsset, Vector2 position)
 {
     this.game = game;
     this.texture = game.Content.Load<Texture2D>(pathnameAsset);
     this.rectangle = new Rectangle((int)position.X,
                                    (int)position.Y,
                                    this.texture.Width,
                                    this.texture.Height);
 }
開發者ID:Kacpernick,項目名稱:Toets1-GameScenes,代碼行數:10,代碼來源:image.cs

示例13: Scorpion

 //constructor
 public Scorpion(PyramidPanic game, Vector2 position)
 {
     this.game = game;
     this.position = position;
     this.texture = game.Content.Load<Texture2D>(@"Scorpion/Scorpion");
     this.walkLeft = new WalkLeft(this);
     this.walkRight = new WalkRight(this);
     this.state = walkLeft;
 }
開發者ID:KevinKentie,項目名稱:toets-2-commit,代碼行數:10,代碼來源:Scorpion.cs

示例14: Block

 //Constuctor
 public Block(PyramidPanic game, string blockName,
         Vector2 position, BlockCollision blockCollision, Char charItem)
 {
     this.game = game;
     this.texture = game.Content.Load<Texture2D>(@"PlaySceneAssets\Block\" + blockName);
     this.rectangle = new Rectangle((int)position.X, (int)position.Y, this.texture.Width, this.texture.Height);
     this.position = position;
     this.charItem = charItem;
 }
開發者ID:xenoxic,項目名稱:Pyramid-Panic,代碼行數:10,代碼來源:Block.cs

示例15: Beetle

 //Constructor
 public Beetle(PyramidPanic game, Vector2 position)
 {
     this.game = game;
     this.position = position;
     this.texture = game.Content.Load<Texture2D>(@"Beetle\Beetle");
     this.walkUp = new WalkUp(this);
     this.walkDown = new WalkDown(this);
     this.state = this.walkUp;
 }
開發者ID:Kacpernick,項目名稱:am1a-pyramidpanic,代碼行數:10,代碼來源:Beetle.cs


注:本文中的PyramidPanic.PyramidPanic類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。