Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. scenes={}
  2.  
  3. function store_scene(scn)
  4. for x=0,15 do
  5. for y=0,15 do
  6. local t={}
  7. local sp=mget(x,y)
  8. add(t,{x,y,sp})
  9. add(scn,t)
  10. end
  11. end
  12. end
  13.  
  14. function draw_scene(scn)
  15. --for min,max,index do ...
  16. local j=0
  17. for k,v in pairs(scn) do
  18. --loop through the screen and place the sprites e.g.
  19. spr(k.sp,k.x,k.y)
  20. end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement