本文整理汇总了C#中Room.AddPuzzle方法的典型用法代码示例。如果您正苦于以下问题:C# Room.AddPuzzle方法的具体用法?C# Room.AddPuzzle怎么用?C# Room.AddPuzzle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Room
的用法示例。
在下文中一共展示了Room.AddPuzzle方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Add
public static void Add(Room room, int x, int y)
{
room.AddPuzzle(x, y, new Boulder(false, false));
room.AddPuzzle(x + 1, y, new Boulder(true, false));
room.AddPuzzle(x, y + 1, new Boulder(false, true));
room.AddPuzzle(x + 1, y + 1, new Boulder(true, true));
}
示例2: UpdateBullet
public override bool UpdateBullet(Room room, Player player)
{
timeLeft--;
if (timeLeft == 0 && lava && room.tiles[x, y].puzzle == null)
{
room.AddPuzzle(x, y, new Lava());
}
return timeLeft <= -damageTime;
}
示例3: Win
private void Win(Enemy enemy, Room room, Player player)
{
room.bullets.Clear();
for (int x = 0; x < room.width; x++)
{
for (int y = 0; y < room.height; y++)
{
room.RemovePuzzle(x, y);
}
}
player.exp++;
room.AddPuzzle(room.width / 2, room.height / 2, new Goal("Fire Dungeon", Color.Brown));
}
示例4: Win
private void Win(Enemy enemy, Room room, Player player)
{
room.bullets.Clear();
player.exp++;
minionElemental.Kill(room, player);
room.AddPuzzle(room.width / 2, 2, new Goal("Earth Dungeon", Color.DarkGoldenrod));
}
示例5: Win
private void Win(Enemy enemy, Room room, Player player)
{
room.bullets.Clear();
player.exp++;
room.AddPuzzle(room.width / 2, room.height / 2, new Goal("Tutorial Level", Color.SpringGreen));
}