"use strict";

module.exports = function(ecs, game) { // eslint-disable-line no-unused-vars
	ecs.add(function drawStats(entity, context) { // eslint-disable-line no-unused-vars
		context.fillStyle = "white";
		context.font = "18px helvetica";
		var spriteCount = game.entities.find("sprite").length;
		context.fillText("Sprites: " + spriteCount, 20, 35);
		context.fillText("Press Space to add more", 20, 75);
	});
};

"use strict";

module.exports = function(ecs, game) { // eslint-disable-line no-unused-vars
	ecs.add(function drawStats(entity, context) { // eslint-disable-line no-unused-vars
		context.fillStyle = "white";
		context.font = "18px helvetica";
		var spriteCount = game.entities.find("sprite").length;
		context.fillText("Sprites: " + spriteCount, 20, 35);
		context.fillText("Click or press Space to add more", 20, 75);
	});
};

Update message