axmol/samples/Cpp/TestCpp/Resources/Published-iOS/MainScene.js

11 lines
247 B
JavaScript

//
// MainScene class
//
var MainScene = function(){};
// Create callback for button
MainScene.prototype.onPressButton = function()
{
// Rotate the label when the button is pressed
this.helloLabel.runAction(cc.RotateBy.create(1,360));
};