set display mode 800,600,32
tilesizex = 32
tilesizey = 32
rem load images
load image "wall.png",1
load image "pacman-open.png",2
load image "pacman-closed.png",3
rem dim map
dim map(21,18)
rem create map
for y=1 to 18
for x=1 to 21
read map(x,y)
if map(x,y)=1 then paste image 1,x*tilesizex,y*tilesizey,1
if map(x,y)=2 then paste image 2,x*tilesizex,y*tilesizey,1
next x
next y
wait key
data 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
data 0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1
data 0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1
data 0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1
data 0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1
data 0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1
data 0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1
data 0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1
data 0,1,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,1
data 0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1
data 0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1
data 0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1
data 0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1
data 0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1
data 0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1
data 0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1
data 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
This is my code so far how can i make the pacman move when i press the keys.