Archive for 'Image Name'

Simple physics example in corona

The following code snippet will show how to use physic in your game using corona:

local _W = display.contentWidth;
local _H = display.contentHeight;

local physics = require("physics");
physics.start();

local image = display.newImage("icon.png");
image.x = 50;
image.y = 100;
image.name = "myImage";

physics.addBody(image, {density=0.3, friction=0.6, radius=50});

High resolution display is one of the important feature in iPhone 4.It’s resolution is double than that of the standard iPhone resolution.To implement this you don’t need to change any line of code in your project, the only thing you have to do to create two resolutions of resource images i.e the standard and high resolution and append @2x to the name of the high resolution image name and iOS 4 will automatically use the high resolution version if on an iPhone 4 and the low resolution version on the 3G .

We Can Build Your App for You. Lets Get Started !