screenmelt.lua 272 B

123456789101112131415
  1. -- title: melty
  2. -- author: pixelbath
  3. -- desc: reference for screen melt effect
  4. function TIC()
  5. for x=1,238 do
  6. for y=1,134 do
  7. if math.random()>0.55 then
  8. dx = math.random(-1,1)
  9. dy = math.random(-1,1)
  10. pix(x ,y , pix(x + dx,y + dy))
  11. end
  12. end
  13. end
  14. end