You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DESC : the top sprite , checkVisibility return the wrong value
Steps to Reproduce:
require "cocos.init"
local director = cc.Director:getInstance()
director:setAnimationInterval(1.0 / 60)
local designSize = {width = 1136, height = 640}
local glView = director:getOpenGLView()
if nil == glView then
glView = cc.GLViewImpl:create("Lua Test")
director:setOpenGLView(glView)
end
glView:setDesignResolutionSize(designSize.width, designSize.height, cc.ResolutionPolicy.NO_BORDER)
local scene = cc.Scene:create()
cc.Director:getInstance():runWithScene(scene)
local node = cc.Node:create()
scene:addChild(node)
node:setRotation3D({x = -25, y = 0, z = 0})
local winSize = cc.Director:getInstance():getWinSize()
local spSize = cc.size(500,500)
for i =-1, math.ceil(winSize.width / spSize.width) + 2 do
for j = -1 , math.ceil( winSize.height/spSize.height ) + 3 do
local sprite = cc.Sprite:create("pic_war_map_a_0000.png")
node:addChild(sprite)
sprite:setPosition(i*spSize.width,j*spSize.height)
sprite:setAnchorPoint(0 ,0)
end
test sprite
The text was updated successfully, but these errors were encountered:
Steps to Reproduce:
test sprite
The text was updated successfully, but these errors were encountered: