While Circle Chain is still waiting to score its 1000-th download in the App Store (download it! Remember I will give away the source code once I reach 1,000 downloads), I continue with my experiment of porting the game with various development tools.
Giderios Studio is a complete environment for mobile application and game development. Using Giderios Studio you can write your code, manage your assets, preview your assets and see the console output of your application using an integrated IDE.
I am finding this tool very intuitive and interesting, mainly thanks to its built-in code editor which is really useful since there aren’t that much lua syntax highlighters.
While I will make a complete review of the software later, this time I am showing you the code needed to create the same prototype I made with Corona SDK
local background = Bitmap.new(Texture.new("background.png"))
local container = Sprite.new()
for i=1,10 do
local greenCircle = Bitmap.new(Texture.new("greencircle.png"))
local randomDirection = math.rad(math.random(0,359))
greenCircle.xSpeed = 2*math.cos(randomDirection)
greenCircle.ySpeed = 2*math.sin(randomDirection)
for i=1,container:getNumChildren() do
if currentCircle:getX()<0 then
if currentCircle:getX()>480 then
if currentCircle:getY()<0 then
if currentCircle:getY()>320 then
I recommend to have a look at this official tutorial to set up your first application, and then test the code I am giving you.
I am also giving you the complete project folder to download.