Downloads containing academy_drawing_general.asc

Downloads
Name Author Game Mode Rating
TSF with JJ2+ Only: Anniversary Bash 21 Levels Jazz2Online Multiple N/A Download file
TSF with JJ2+ Only: Academy Superjazz Battle N/A Download file

File preview

namespace acDrawingGeneral {
	void drawBox(jjCANVAS@ canvas, int originX, int originY, int width, int height, int bodyColor,
			SPRITE::Mode spriteMode, bool borders = false, int borderColor = 0) {
		canvas.drawRectangle(originX, originY, width, height, bodyColor, spriteMode);
		if (borders) {
			canvas.drawRectangle(originX, originY, width, 1, borderColor, spriteMode);
			canvas.drawRectangle(originX, originY, 1, height, borderColor, spriteMode);
			canvas.drawRectangle(originX, originY + height, width, 1, borderColor, spriteMode);
			canvas.drawRectangle(originX + width, originY, 1, height, borderColor, spriteMode);
		}
	}
}