本文整理汇总了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);
}
示例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();
}
示例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);
}
示例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();
}
示例5: Level
//construction
public Level(PyramidPanic game,int levelIndex)
{
this.game = game;
this.levelPath = @"Content\PlaySceneAssets\Levels\"+levelIndex+".txt";
this.loadAssets();
Score.initialize();
}
示例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);
}
示例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();
}
示例8: Main
static void Main(string[] args)
{
using (PyramidPanic game = new PyramidPanic())
{
game.Run();
}
}
示例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;
}
示例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;
}
示例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();
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}