public Chexel getChexel(int x, int y) { vector2 worldPos = ScreenToWorldPos(new vector2(x, y)); Chexel chexel = tileMap.getChexel(worldPos.x, worldPos.y); if (entities.ContainsKey(worldPos)) { chexel.f = entities[worldPos].f; chexel.b = ConsoleColor.Black; chexel.t = entities[worldPos].t; } List <FrameEntity> frameEntityCollection = new List <FrameEntity>(frameEntities); foreach (FrameEntity v in frameEntityCollection) { Chexel temp = v.frame.getChexel(worldPos.x, worldPos.y); if (temp.t != ' ') { chexel.t = temp.t; chexel.f = temp.f; chexel.b = temp.b; } } return(chexel); }
public Chexel getRandomChexel() { Chexel toReturn = new Chexel(); toReturn.b = ConsoleColor.Black; toReturn.f = colors[Utils.rand(0, colors.Length)]; toReturn.t = fireChars[Utils.rand(0, fireChars.Length)]; return(toReturn); }