本文整理汇总了C#中Level.AddProjectorAt方法的典型用法代码示例。如果您正苦于以下问题:C# Level.AddProjectorAt方法的具体用法?C# Level.AddProjectorAt怎么用?C# Level.AddProjectorAt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Level
的用法示例。
在下文中一共展示了Level.AddProjectorAt方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LevelFive
Level LevelFive()
{
var level = new Level(10, "Tutorial 5 - White\n \nCreate a Projector where three Cells overlap \nMake a White Cell from a Magenta, a Yellow and a Cyan Cell \n \n\nTap 'Spacebar' [X] to change the tempo of the game", 3);
level.AddEmitterAt(1, 7, 9, Direction.Down, Color.blue);
level.AddEmitterAt(1, 3, 9, Direction.Up, Color.red);
level.AddProjectorAt(1, 5, 9, Direction.Backward);
level.AddEmitterAt(1, 7, 1, Direction.Down, Color.blue);
level.AddEmitterAt(1, 3, 1, Direction.Up, Color.green);
level.AddProjectorAt(1, 5, 1, Direction.Forward);
level.AddEmitterAt(1, 1, 3, Direction.Forward, Color.green);
level.AddEmitterAt(1, 1, 7, Direction.Backward, Color.red);
level.AddProjectorAt(1, 1, 5, Direction.Up);
level.AddProjectorAt(1, 5, 5, Direction.Right);
level.AddReceiverAt(9, 5, 1, LevelSix, Color.white);
return level;
}
示例2: LevelCredit
Level LevelCredit()
{
var level = new Level(10, "Thank you for playing\n\nGame Design by Devine Lu Linvega\nPrograming by Renaud Bedard", 1);
// White Output
level.AddEmitterAt(1, 1, 5, Direction.Up, Color.red);
level.AddEmitterAt(3, 1, 5, Direction.Up, Color.green);
level.AddEmitterAt(4, 2, 5, Direction.Up, Color.green);
level.AddEmitterAt(6, 2, 5, Direction.Up, Color.blue);
level.AddEmitterAt(7, 1, 5, Direction.Up, Color.blue);
level.AddEmitterAt(9, 1, 5, Direction.Up, Color.red);
level.AddProjectorAt(1, 3, 5, Direction.Right);
level.AddProjectorAt(3, 3, 5, Direction.Left);
level.AddProjectorAt(4, 5, 5, Direction.Right);
level.AddProjectorAt(6, 5, 5, Direction.Left);
level.AddProjectorAt(7, 3, 5, Direction.Right);
level.AddProjectorAt(9, 3, 5, Direction.Left);
level.AddProjectorAt(2, 3, 5, Direction.Up);
level.AddProjectorAt(5, 5, 5, Direction.Up);
level.AddProjectorAt(8, 3, 5, Direction.Up);
level.AddProjectorAt(2, 7, 5, Direction.Right);
level.AddProjectorAt(8, 7, 5, Direction.Left);
level.AddProjectorAt(5, 7, 5, Direction.Up);
level.AddReceiverAt(5, 9, 5, WorldMap, Color.white);
return level;
}
示例3: LevelTwo
Level LevelTwo()
{
var level = new Level(10, "Tutorial 2 - Green \n \nAdd Projectors to go around the faulty Projector \nSend a Green Cell to the Receptor \n \nPress 'Z' [B] to undo the last Projector", 3);
level.AddEmitterAt(1, 5, 9, Direction.Right, Color.green);
level.AddProjectorAt(9, 5, 3, Direction.Left);
level.AddReceiverAt(9, 5, 1, LevelThree, Color.green);
return level;
}
示例4: LevelTwelve
Level LevelTwelve()
{
var level = new Level(10, "Hard 12 - Yellow Cyan Yellow Green\n \nLast Level", 12);
level.AddEmitterAt(1, 5, 1, Direction.Right, Color.red);
level.AddEmitterAt(1, 5, 9, Direction.Backward, Color.green);
level.AddEmitterAt(9, 5, 1, Direction.Forward, Color.green);
level.AddEmitterAt(9, 5, 9, Direction.Left, Color.blue);
level.AddProjectorAt(8, 2, 8, Direction.Left);
level.AddProjectorAt(2, 2, 2, Direction.Right);
level.AddProjectorAt(8, 2, 2, Direction.Forward);
level.AddProjectorAt(2, 2, 8, Direction.Backward);
level.AddAccumulatorAt(3, 2, 5);
level.AddAccumulatorAt(5, 2, 3);
level.AddAccumulatorAt(5, 2, 7);
level.AddAccumulatorAt(7, 2, 5);
level.AddReceiverAt(5, 5, 5, LevelCredit, Color.yellow, Color.cyan, Color.yellow);
return level;
}
示例5: LevelFive
static Level LevelFive()
{
var level = new Level(10, "Tutorial 5 - Combinations\n \nAll these colors can be produced\nRedirect the White Cell to the Receptor\n \n\nTap the [X Button] or [Spacebar] to change the tempo of the game", 3);
level.AddEmitterAt(1, 7, 9, Direction.Down, Color.blue);
level.AddEmitterAt(1, 3, 9, Direction.Up, Color.red);
level.AddProjectorAt(1, 5, 9, Direction.Backward);
level.AddEmitterAt(1, 7, 1, Direction.Down, Color.blue);
level.AddEmitterAt(1, 3, 1, Direction.Up, Color.green);
level.AddProjectorAt(1, 5, 1, Direction.Forward);
level.AddEmitterAt(1, 1, 3, Direction.Forward, Color.green);
level.AddEmitterAt(1, 1, 7, Direction.Backward, Color.red);
level.AddProjectorAt(1, 1, 5, Direction.Up);
level.AddProjectorAt(1, 5, 5, Direction.Right);
level.AddReceiverAt(9, 5, 1, LevelSix, Color.white);
return level;
}
示例6: LevelTwo
static Level LevelTwo()
{
var level = new Level(10, "Tutorial 2 - Green \n\nAdd Projectors to go around the faulty Projector\nSend a Green Cell to the Receptor\n \nPress the [B Button] or the [Z Key] to undo the last Projector\nMove to a projector and press [B]/[Z] to remove it.", 3);
level.AddEmitterAt(1, 5, 9, Direction.Right, Color.green);
level.AddProjectorAt(9, 5, 3, Direction.Left);
level.AddReceiverAt(9, 5, 1, LevelThree, Color.green);
return level;
}