SHARE
TWEET

Untitled

a guest Aug 18th, 2014 195 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local p = {0,0,0,0}
  2. local cam = {0,0}
  3.  
  4. local function axis(x,y,x2,y2,color)
  5.         gui.box(x,y,x2,y2,color,"#00000040")
  6. end
  7.  
  8. --[[
  9. other locations
  10.  
  11. object 1f3
  12.                 2d8
  13. ]]--
  14.  
  15. local function objects()
  16.         gui.text(94,48,"X1  Y1  subx  Y2  ??? ???  HP TMR","#FFFFFF","#000000f0")
  17.         for i = 0, 4 do
  18.                 if memory.readbyte(0x600+i*32) ~= 0 then axis(memory.readbyteunsigned(0x603+i*32),memory.readbyteunsigned(0x606+i*32),memory.readbyteunsigned(0x603+i*32)+16,memory.readbyteunsigned(0x606+i*32)+32,"#FFFF0080") end
  19.                 gui.text(memory.readbyte(0x603+i*32)+4,memory.readbyte(0x606+i*32)-16,string.format("%d",i),"#000000","#ff0000f0")
  20.                 gui.text(94,7*i+55,string.format("%3d %3d %3d %3d %3d %3d %3d",
  21.                 memory.readbyte(0x603+i*32),
  22.                 memory.readbyte(0x604+i*32),memory.readbyte(0x604+i*32),memory.readbyte(0x607+i*32),
  23.                 memory.readbyte(0x605+i*32),
  24.                 memory.readbyte(0x608+i*32),memory.readbyte(0x609+i*32)),"#FFFFFFf0","#00000060")
  25.         end
  26.        
  27.         for i = 0, 6 do
  28.                 if memory.readbyte(0x4a0+i*16) ~= 0 then axis(memory.readbyteunsigned(0x4a3+i*16),memory.readbyteunsigned(0x4a6+i*16),memory.readbyteunsigned(0x4a3+i*16)+8,memory.readbyteunsigned(0x4a6+i*16)+8,"#FFFF0080") end
  29.                 gui.text(memory.readbyte(0x4a3+i*16),memory.readbyte(0x4a6+i*16)-8,string.format("%d",i),"#000000","#00ff00f0")
  30.  
  31.                 gui.text(94,7*i+95,string.format("%2X  %3d %3d %3d %3d %3d %3d",
  32.                 memory.readbyte(0x4a3+i*16),
  33.                 memory.readbyte(0x4a6+i*16),memory.readbyte(0x4a4+i*16),memory.readbyte(0x4a7+i*16),
  34.                 memory.readbyte(0x4a5+i*16),
  35.                 memory.readbyte(0x4a8+i*16),memory.readbyte(0x4a9+i*16)),"#FFFFFFf0","#00000060")
  36.         end
  37.        
  38.         for i = 0, 6 do
  39.                 gui.text(memory.readbyte(0x2d3+i*8),memory.readbyte(0x2d9+i*8)-32,string.format("%d",i),"#000000","#0000fff0")
  40.         end
  41.  
  42. end
  43.  
  44. local function Stuff()
  45. p[1] = memory.readbyteunsigned(0x603) + memory.readbyte(0x604)/1000
  46. p[3] = memory.readbyteunsigned(0x606) + memory.readbyte(0x607)/1000
  47.  
  48. cam[1] = memory.readbyte(0xeb) + memory.readbyte(0xec)*0x100
  49.  
  50. gui.text(1, 48, string.format("X %.3f (%.3f)\nY %.3f (%.3f)",p[1],p[1]-p[2],p[3],p[3]-p[4]),"#ffffff","#00000000")
  51. gui.text(1, 77, string.format("Xcam: %4d",cam[1]),"#ffffff","#00000000")
  52.  
  53. -- enemy spawn position: if 0x309 side (0 == left, 1 == right) enemy still alive, spawn to opposite side
  54. gui.text(130,200, string.format("subtimer: %d\nEnemies: %d\nSpawned enemies: %3d\nNext enemy in %3d frames", memory.readbyte(0x301), memory.readbyte(0x305), memory.readbyte(0x30b), memory.readbyte(0x307)),"#ffffff","#00000000")
  55.  
  56. p[2] = p[1] - p[2]
  57. p[4] = p[3] - p[4]
  58.  
  59. p[2] = p[1]
  60. p[4] = p[3]
  61. cam[2] = cam[1]
  62.  
  63. objects()
  64.  
  65. end
  66.  
  67. emu.registerafter(Stuff)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top