import Enum from './enum';
import Game from './game';

export let TileTypes = new Enum('EMPTY','FLOOR','WALL');

export class Tile {
	constructor(x, y, chr){
		this.x = x;
		this.y = y;
		this.chr = chr;
	}
	draw(){
		Game.display.draw(this.x, this.y, this.chr, '#fff');
	}
}
import Enum from './enum';
import Game from './game';

export let TileTypes = new Enum('EMPTY','FLOOR','WALL');

export class Tile {
	constructor(x, y, chr, fg){
		this.x = x;
		this.y = y;
		this.chr = chr;
		this.fg = fg;
	}
	draw(){
		Game.display.draw(this.x, this.y, this.chr, this.fg);
	}
}
Add Foreground property to Tile class
Add Foreground property to Tile class

Makes the foreground color of tiles not hard-coded.
