require "Cocos2d" require "Cocos2dConstants" local TestScene = class("TestScene",function() return cc.Scene:create() end) function TestScene.create() local scene = TestScene.new() local sp=cc.Sprite:create("dog.png") sp:setPosition(100,100) scene:addChild(sp) return scene end return TestScene