Object.fireImg
Type: String
Default value: nil
Overview

Bullet image. If not specified, then will be used circle shape. The property object.allowShoot should be set to true. To change rate of fire use object.shootVelocity
Examples

Add bullet image
local newAI = require('classes.SimpleAI').newAI
-- enemy instance
local enemy = newAI({group = mainGroup, img = "snailWalk1.png", x = halfW-50, y = display.contentHeight-500, ai_type = "patrol"}) 
enemy.fireImg = "bullet.png" -- add bullet image 
enemy.allowShoot = true -- the object now will fire periodically