simple Sprite Rotated

 function setup()
displayMode(FULLSCREEN)
tocar = {}
estrellas = {}


  end

  function draw()
      background(15, 18, 14, 255)
      xx = 0
      yy = 0 
      conteotoques = 0
    
      for f,touch in pairs(tocar) do
        conteotoques = conteotoques + 1
        xx = touch.x
        yy = touch.y
        end
        if conteotoques == 1 then
          --  sound(SOUND_HIT, 25656)
            table.insert(estrellas,{
            t = readImage("Platformer Art:Block Special"),
            x = xx,
            y = yy,
            tamano = math.random(60,130),
            velocidad = math.random(2),
            direccion = math.random(360),
            fade = 80,
            r = 20,
            g = 8,
            b = 30
            })
            
            end
            for e,g in pairs(estrellas) do
                tint(g.r,g.g,g.b,g.fade)
                pushMatrix()
                translate(g.x,g.y)
                rotate(g.fade)
                sprite(g.t,0,0,g.tamano)
                popMatrix()
                
                g.x = g.x+g.velocidad*math.cos(math.rad(-g.direccion))
                g.y = g.y+g.velocidad*math.sin(math.rad(-g.direccion))
                g.fade = g.fade + 19
             
                end
      end
    
       function touched(touch)
         if CurrentTouch.state == ENDED then
          tocar[touch.id]=nil
          else
             tocar[touch.id]=touch
          end
         
         end