GiderosCodingEasy

Status: Stable

Version: 1.0

Supported platforms:

       

Forum thread

About GiderosCodingEasy

GiderosCodingEasy is a framework for Gideros providing lots of additional stuff that Gideros by itself does not provide.
Starting from anchorpoints for any Sprite and Sprite inherited project, up to master volume, shape primitives, method chaining and lots of other stuff.
Additional it also provides Box2d abstraction layer to combine box2d and gideos object together for easies implementation.

Installation

Include lua files to your Gideros project
Exclude GiderosCodingEasy.lua and Box2dCodingEasy.lua from execution.
Require this two files inside your init.lua or use the provided init.lua

Code example:

--some initial settings
application:setBackgroundColor("yellow")
			:setFps(60)
			:setKeepAwake(true)
			:enableFiltering()

local font = TTFont.new("tahoma.ttf", 70)
local text = TextField.new(font, "Some text")
	--positioning
	:setPosition("center", "center")
	:setPosition(300,250)
	--named colors
	:setTextColor("white")
	:setAnchorPoint(0.5, 0.5)
	:setRotation(45)
	:setShadow(3, 3, "gray", 0.5)
	:setSkew(60)

local test = Shape.new()
	:setFillStyle(Shape.SOLID, "white")
	:drawRoundRectangle(90, 90, 10)
	:setPosition(100, 100)
	:setAnchorPoint(0.5)
	:setRotation(45)
	:setSkewX(45)

local bitmap = Bitmap.new("crate.png")
	:setPosition("center","top")
	:setAnchorPoint(0.5)

stage:addChild(text)
	 :addChild(test)
	 :addChild(bitmap)