Universal Map Editor released

Miscellaneous Forums/Blitz Showcase/Universal Map Editor released

map_load() load a map file
map_scroll() set "camera" position
map_viewport() set viewport (for splitscreen)
map_draw() draw map

it's easy

here is a example included:




Include "mapengine\mapengine.bb"

width=640
height=480
Graphics width,height,0,1

error=map_load("0.map","")
If error>0 Then end


MoveMouse width/2,height/2
While Not KeyHit(1)
mx=MouseX()
my=MouseY()
MoveMouse width/2,height/2

map_scrollx=map_scrollx-(mx-width/2)
map_scrolly=map_scrolly-(my-height/2)

SetBuffer BackBuffer()
Cls

tile_animate()
map_draw()

Text 0,0,"X:"+Str$(map_scrollx)+" Y:"+Str$(map_scrolly)

Flip
Wend