当前位置: 首页>>代码示例>>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;未经允许,请勿转载。