Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local _M = {}
- function _M:getImage(item)
- local imgSize = 25
- local inventoryBox = display.newImageRect( item, imgSize, imgSize )
- local function onTouch(event)
- if "ended" == event.phase then
- print("touched rectangle")
- end
- end
- inventoryBox:addEventListener( "touch", onTouch )
- return inventoryBox
- end
- local xTemp = spawnObject()
- return _M
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement