Skip to content

1.0.2

Choose a tag to compare

@DjDisaster DjDisaster released this 04 Nov 13:22
· 38 commits to main since this release

Adds a few new features such as drawing squares

draw square between %number%,[ ]%number% and %number%,[ ]%number% on %object% (coloured|colored|with) %number%,%number%,%number% [(1¦solid)]
draw line between %number%,[ ]%number% and %number%,[ ]%number% on %object% (coloured|colored|with) %number%,%number%,%number%

on load:
	set {t} to new custom map 
	set all pixels of {t} to 0,0,0
	set {_colour::1::*} to 0,0,0
	set {_colour::2::*} to 255,255,255
	set {_x} to 0
	set {_y} to 0
	loop (64 times):
		add 1 to {_n}
		add 1 to {_n2}
		
		set {_colourIndex} to mod({_n}, 2) + 1
		set {_r} to {_colour::%{_colourIndex}%::1}
		set {_g} to {_colour::%{_colourIndex}%::2}
		set {_b} to {_colour::%{_colourIndex}%::3}
		
		set {_xEnd} to min(({_x} + 16), 127)
		set {_yEnd} to min(({_y} + 16), 127)
		draw square between {_x},{_y} and {_xEnd},{_yEnd} on {t} with {_r},{_g},{_b} solid
		
		if mod({_n2}, 8) = 0:
			remove 1 from {_n}
		
		add 16 to {_x}
		if {_x} >= 128:
			set {_x} to 0
			add 16 to {_y}
			
command /GetTestMap:
	trigger:
		give player map of {t}