Advertisement
jargon

Need this as a macro

Nov 12th, 2020
2,429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. dim as ulong col=0, row=0
  2.  
  3. Dim shared as Resource SP2
  4. SP2 = resource_load(level, "img" + "-" + "SP")
  5. dim shared as fb.image ptr SP
  6. SP = imagecreate(SP2.colspan,SP2.rowspan,0)
  7. for row = 0 to SP2.rowspan -1 step 1
  8. for col = 0 to SP2.colspan -1 step 1
  9.     pset SP,(col,row),SP2.iDat(col,row)
  10. next col
  11. next row
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement