self.bg = display.newBackgroundSprite("#MenuSceneBg.png")
一样的语句为什么我就取不到图片呢?
根据群友提示,看了一下API:
-- create with an image
local sprite1 = display.newSprite("hello1.png")
-- create with a sprite frame
local sprite2 = display.newSprite("#hello2.png")
关于参数,图片的文件名或者精灵框帧名,精灵框帧名有一个字符'#'作前缀,不加#是取单个图片文件的,加#是取plist文件里的索引图片的
看来菜鸟我得先看完API再入门才行啊 (╬ ̄皿 ̄)=○#( ̄#)3 ̄)
;