Gideros is a cross-platform development environment for creating amazing games and interactive applications in 2D or 3D. It is easy to pick up, quick to develop and robust to deploy. Code your game once and deploy to Android, iOS, MacOS, tvOS, Windows, HTML 5 and more.
Gideros uses Lua as its scripting language. It is a fast and friendly language which is well established in the world of game development.
To display an image, we first create the Texture object with its reference to an image file and an optional boolean parameter which indicates if the image should be anti-aliased. Then we create a Bitmap object with our Texture, position it at coordinates (100, 100) and add it to the stage, which is the main container for all objects that should be drawn on screen.
local tex = Texture.new("images/ball.png", true) local bmp = Bitmap.new(tex) bmp:setPosition(100, 100) stage:addChild(bmp)
Gideros provides an API for drawing custom shapes. In this example we use a solid red color with a solid fill and a 5px-wide blue line with a fully opaque border. Easy, isn't it?
local shape = Shape.new() shape:setFillStyle(Shape.SOLID, 0xff0000) -- RGB-color red shape:setLineStyle(5, 0x0000ff, 1) shape:beginPath() shape:moveTo(0,0) shape:lineTo(0, 100) shape:lineTo(100, 100) shape:lineTo(100, 0) shape:lineTo(0, 0) shape:endPath() shape:setPosition(200, 100) stage:addChild(shape)
Gideros has an active, friendly community. We have a lively, helpful team of Gideros experts, users and newcomers discussing the future of Gideros and games development. Join us here