Hung-Chi's Blog on github

Cocos2d-x Lua for loop



Decrease

for i = 30, 0, -2 do --Decrease i by 2 until it reaches 0
	print(i)
end

Similar Posts


Comments


Advertisement