Tag:Zhang Xiaotu

  • Background image tiling with cocos2d-x binding Lua


    Usage context:First, create a panel in cocos studio as the background layer, in which you need to tile the pictures. The code is as follows:The notes indicate the wrong method I used, which should be noted. local panelPage1 = ccui.Helper:seekWidgetByName(uiNode, “Panel_page1”) local panelRepeatBg1 = ccui.Helper:seekWidgetByName(panelPage1, “Panel_repeat_bg”) –Note 1: don’t use plist method to specify the […]