io.write("TropfLava-Maker included!\n");

--
-- required files:
--  * tropflava%%%%.png (0-29)
--
-- use with:
--  TropfLava:new(x_pos, y_pos, startframe, framerate);
--    where "startframe" is a number from 0..29
--
-- ToDo:
--  * Add Sound
--

TropfLava = {
	gfx = bs.anim.load("tropflava%%%%.png", 0, 29, 0, bs.anim.type.forwardloop);
};
function TropfLava:new(x, y, startframe, framerate)
	local startframe = math.mod(startframe, 29);
	local newanim = bs.anim.duplicate(self.gfx);
	newanim.currentframe(startframe);
	newanim.framerate(framerate);
	return bs.obj.new(x, y, newanim, "visible, killing");
end
