Game Development Reference
In-Depth Information
The code that runs the preceding animation is pretty simple, and is shown following:
Sample Code
local MyText = TextCandy.CreateText({
fontName = "FONT1",
x = screenW*.5,
y = screenH*.5,
text = "ARE YOU READY TO ROCK? ",
originX = "CENTER",
originY = "CENTER",
textFlow = "CENTER",
charSpacing = −5,
lineSpacing = −4,
showOrigin = false,
})
type = TextCandy.DEFORM_CIRCLE,
radius = 120,
autoStep = true,
ignoreSpaces = false,
})
MyText:applyAnimation({
startNow = true,
restartOnChange = true,
charWise = true,
frequency = 60,
alphaRange = 0.5,
})
Widget Candy
URL : www.x-pressive.com/WidgetCandy_Corona/index.html
Price : € 39.95
Platforms : CoronaSDK
This is a third offering from X-Pressive.com . This library deals with creating GUIs using visual
elements. It has functionality for using themes, which means that you can not only create custom
widgets, but you can skin them (change their appearance) on the fly. It provides for most of the
commonly used widgets, including list boxes, radio buttons, check boxes, buttons, and sliders.
One of the salient features of Widget Candy is its ability to scale widgets. You can set the widget
to be a percentage (as in HTML) so that if you run it on a different device, the display element will
scale accordingly. This feature eliminates having to design your UI specifically for every new device.
Figure 13-3 displays some of the UI elements that can be created using Widget Candy.
 
Search WWH ::




Custom Search