Okay guys I got a bit carried away with this one.
I had a lot of free time.
Weighing in at 1423 lines.
"X adventure"
Programmed in one week.
It features 16 screens and a variety of monsters to kill.
And a small quest to complete.
I intended to add more to the quest but ran out of time.
It lacks a good flexible scripting system and saving system, so the quest is hard coded and it uses a basic password system but the graphics and screens and speech can easily be edited by changing the data.
I enjoyed making this and intend to work on it more, maybe improving the graphics from 4x4 sprites to something more respectable and putting in a proper editor and scripting system.
But until then it is what it is! (And may well be a little buggy =P)
The controls are the basic arrow keys to move, and control to shoot your magic spell.
A tip I'll give you, is DO NOT WASTE YOUR MAGIC!!
There's not much of it going around.
And pick every jewel up, you need them to progress.
Enjoy!
set display mode 320,240,32
sync on
sync rate 60
disable escapekey
set window on
set window title "X Adventure"
set window layout 0,0,0
maximize window
hide mouse
dim screens(100,20,13)
dim obj(300,10)
dim sprites(32,4,4)
dim exits(100,5,6)
dim speechs(100,5,2)
dim speech$(100,5,3)
restore exitdata
for red = 1 to 100
read s
if s < 0 then exit
for cs = 1 to 5 : if exits(s,cs,1) = 0 then exit
next cs
for rd = 1 to 6 : read exits(s,cs,rd) : next rd
next red
restore speechdata
for rsp = 1 to 100
read s
if s < 0 then exit
for cs = 1 to 5 : if speech$(s,cs,1) = "" and speech$(s,cs,2) = "" and speech$(s,cs,3) = "" then exit
next cs
read speechs(s,cs,1)
read speechs(s,cs,2)
read speech$(s,cs,1)
read speech$(s,cs,2)
read speech$(s,cs,3)
next rsp
restore spritedata
for rs = 0 to 32
read col
if col < 0 then exit
sprites(rs,0,0) = col
for ry = 1 to 4 : for rx = 1 to 4
read sprites(rs,rx,ry)
next rx : next ry
next rs
global health as integer
global magic as integer
global screen as integer
global jewels as integer
global keys as integer
global top as integer
global player as integer
menu:
opt = 1
x = 0
entp = 0
m$ = " The evil 'Z' has turned everyone and everything into 4x4 blocks and filled the world with monsters! The world has been pixelised! It is your job as 'X' to kill 'Z' and restore the world to its true resolution!"
do
ink rgb(0,128,0),0
box 0,0,320,207
ink rgb(255,255,255),0
line 0,208,320,208
for dbx = 0 to 304 step 16
draw(1,dbx,0)
draw(1,dbx,192)
next dbx
for dby = 16 to 176 step 16
draw(1,0,dby)
draw(1,304,dby)
next dby
ink 0,0
center text 160,20,"X's Adventure"
center text 160,35,"By John Price"
box 110,80,210,130
ink rgb(255,255,255),0
text 125,82,"Start"
text 125,97,"Password"
text 125,112,"Quit"
text 113,82+((opt-1)*15),">"
w = w - 1
if entp = 0
if w < 0
if opt = 2 and downkey() = 1 then opt = 3: w = 10
if opt = 1 and downkey() = 1 then opt = 2: w = 10
if opt = 2 and upkey() = 1 then opt = 1: w = 10
if opt = 3 and upkey() = 1 then opt = 2: w = 10
endif
else
ink 0,0
box 80,140,240,175
ink rgb(255,255,255),0
center text 160,142,"Enter Password:"
if w < 0
if scancode() = 14 then p$ = left$(p$,len(p$)-1) : w = 10
if scancode() > 0 and scancode() < 11 and len(p$) < 16
p$ = p$ + str$(scancode()-1)
w = 10
endif
if escapekey() = 1 then p$ = "" : entp = 0
if scancode() = 11 then p$ = p$ + "0" : w = 10
if returnkey() = 1 and len(p$) = 16
w = 10
n1 = val(left$(p$,2))
n2 = val(right$(p$,2))
if n2/3 = n1
px = 16*(val(mid$(p$,3)+mid$(p$,4))-1)
py = 16*(val(mid$(p$,5)+mid$(p$,6))-1)
screen = val(mid$(p$,7)+mid$(p$,8))
jewels = val(mid$(p$,9)+mid$(p$,10))
keys = val(mid$(p$,11))
health = val(mid$(p$,12))
magic = val(mid$(p$,13)+mid$(p$,14))
exit
else
ENTP = 0
p$ = ""
endif
endif
endif
center text 160,157,p$
endif
if returnkey() = 1 or spacekey() = 1 and w < 0
select opt
case 1
health = 5
magic = 14
screen = 1
keys = 0
jewels = 0
px = 8*16
py = 7*16
exit
endcase
case 2
entp = 1
endcase
case 3
end
endcase
endselect
w = 20
endif
ox = ox - 1
x = ox
for dm = 1 to len(m$)
c = sin(x*2)*255
ink rgb(0,c,255),0
text x,217+(sin(x*2)*3),mid$(m$,dm)
x = x + 10
next dm
sync
cls
loop
game:
restx = px/16
resty = py/16
restore screendata
for rs = 1 to 100
read se
screens(rs,0,0) = se
if se < 0 then exit
for ry = 1 to 13
for rx = 1 to 20
read screens(rs,rx,ry)
next rx
next ry
next rs
loadscreen()
makeob(6,px,py)
QUEST = 0
do
if quest = 1 then screens(11,4,5) = 0
if quest = 2
quest = 3
speech$(9,1,1) = "Thankyou"
speech$(9,1,2) = "Here is a pass to leave"
speech$(9,1,3) = "the village!"
endif
if screens(screen,0,0) = 1 then ink rgb(0,128,0),0
if screens(screen,0,0) = 2 then ink rgb(128,128,128),0
if screens(screen,0,0) = 3 then ink rgb(64,0,0),0
box 0,0,320,207
ink rgb(255,255,255),0
line 0,208,320,208
text 2,210,"HEALTH: "
ink rgb(255,0,0),0
for dh = 1 to health : text 50+(dh*15),210,"X" : next dh
ink rgb(255,255,255),0
text 2,224," MAGIC: "
ink rgb(0,255,0),0
for dm = 1 to magic : text 58+(dm*5),224,"|" : next dm
ink rgb(255,255,255),0
text 190,210,"JEWELS: "+str$(jewels)
if scancode() = 14
text 190,224," OBJS: "+str$(top)
else
text 190,224," KEYS: "+str$(keys)
endif
ani = ani + 1
if ani > 10
ani = 0
af = af + 1
if af > 1 then af = 0
endif
sma = sma + 3
smy = sin(sma)*2
if af = 0
sprites(11,2,2) = 8
sprites(11,3,3) = 8
sprites(11,3,2) = 1
sprites(11,2,3) = 1
sprites(10,1,1) = 7
sprites(10,4,4) = 7
sprites(10,4,1) = 1
sprites(10,1,4) = 1
sprites(15,2,2) = 4
sprites(15,3,2) = 1
sprites(15,2,3) = 1
sprites(15,3,3) = 4
sprites(4,1,1) = 3
sprites(4,3,1) = 12
sprites(4,2,3) = 3
sprites(4,4,3) = 12
else
sprites(11,2,2) = 1
sprites(11,3,3) = 1
sprites(11,3,2) = 8
sprites(11,2,3) = 8
sprites(10,1,1) = 1
sprites(10,4,4) = 1
sprites(10,4,1) = 7
sprites(10,1,4) = 7
sprites(15,2,2) = 1
sprites(15,3,2) = 4
sprites(15,2,3) = 4
sprites(15,3,3) = 1
sprites(4,1,1) = 12
sprites(4,3,1) = 3
sprites(4,2,3) = 12
sprites(4,4,3) = 3
endif
`Draw terrain
for dsx = 1 to 20
for dsy = 1 to 13
if screens(screen,dsx,dsy) > 0 and screens(screen,dsx,dsy) <= 5
s = screens(screen,dsx,dsy)
draw(s,(dsx-1)*16,(dsy-1)*16)
endif
next dsy
next dsx
`Draw objects
for dob = 1 to top
if obj(dob,1) > 0
ox = obj(dob,2)
oy = obj(dob,3)
cc = 0
`Enemy 2
if obj(dob,1) = 11
obj(dob,5) = obj(dob,5) + 1
if obj(dob,5) > 1
if obj(dob,2) > obj(player,2) then obj(dob,2) = obj(dob,2) - 1
if obj(dob,2) < obj(player,2) then obj(dob,2) = obj(dob,2) + 1
if obj(dob,3) > obj(player,3) then obj(dob,3) = obj(dob,3) - 1
if obj(dob,3) < obj(player,3) then obj(dob,3) = obj(dob,3) + 1
obj(dob,5) = 0
endif
if obj(dob,7) = 2
drop = rnd(2)
if drop = 0 then makeob(7,obj(dob,2),obj(dob,3))
if drop = 1 then makeob(25,obj(dob,2),obj(dob,3))
if drop = 2 then makeob(26,obj(dob,2),obj(dob,3))
deleteob(dob)
endif
cc = 2
endif
`Enemy 1
if obj(dob,1) = 10
select obj(dob,6)
case 0 : obj(dob,3) = obj(dob,3) - 1 : endcase
case 1 : obj(dob,2) = obj(dob,2) + 1 : endcase
case 2 : obj(dob,3) = obj(dob,3) + 1 : endcase
case 3 : obj(dob,2) = obj(dob,2) - 1 : endcase
endselect
obj(dob,5) = obj(dob,5) + 1
if obj(dob,5) > 30 or obj(dob,4) <> 0 then obj(dob,6) = rnd(3) : obj(dob,5) = 0
if obj(dob,7) = 1
drop = rnd(2)
if drop = 0 then makeob(7,obj(dob,2),obj(dob,3))
if drop = 1 then makeob(25,obj(dob,2),obj(dob,3))
if drop = 2 then makeob(26,obj(dob,2),obj(dob,3))
deleteob(dob)
endif
cc = 2
endif
`Block
if obj(dob,1) = 14
if obj(obj(dob,4),1) = 6
if coll(obj(player,2),obj(player,3),16,obj(dob,2)-16,obj(dob,3),16) = 1 then obj(dob,2) = obj(dob,2) + 1
if coll(obj(player,2),obj(player,3),16,obj(dob,2)+16,obj(dob,3),16) = 1 then obj(dob,2) = obj(dob,2) - 1
if coll(obj(player,2),obj(player,3),16,obj(dob,2),obj(dob,3)-16,16) = 1 then obj(dob,3) = obj(dob,3) + 1
if coll(obj(player,2),obj(player,3),16,obj(dob,2),obj(dob,3)+16,16) = 1 then obj(dob,3) = obj(dob,3) - 1
endif
cc = 2
endif
`SEA MONSTERRR LOL
if obj(dob,1) = 27
if obj(dob,5) = 0 then obj(dob,5) = rnd(40)
obj(dob,5) = obj(dob,5) + 1
if obj(dob,5) > 40
obj(dob,5) = rnd(10)+1
a = rnd(7)
if a = 1 then mx = obj(dob,2)+16 : my = obj(dob,3)+16
if a = 3 then mx = obj(dob,2)+16 : my = obj(dob,3)+16
if a = 5 then mx = obj(dob,2)-16 : my = obj(dob,3)+16
if a = 7 then mx = obj(dob,2)-16 : my = obj(dob,3)-16
if a = 0 then mx = obj(dob,2) : my = obj(dob,3)-16
if a = 2 then mx = obj(dob,2)+16 : my = obj(dob,3)
if a = 4 then mx = obj(dob,2) : my = obj(dob,3)+16
if a = 6 then mx = obj(dob,2)-16 : my = obj(dob,3)
bob = makeob(28,mx,my)
obj(bob,5) = a
endif
if obj(dob,7) = 2 then wx = obj(dob,9) : wy = obj(dob,10) : deleteob(dob) : screens(screen,wx,wy) = 4
endif
`super bullet
if obj(dob,1) = 28
select obj(dob,5)
case 1 : obj(dob,2) = obj(dob,2) + 2 : obj(dob,3) = obj(dob,3) + 2 : endcase
case 3 : obj(dob,2) = obj(dob,2) + 2 : obj(dob,3) = obj(dob,3) - 2 : endcase
case 5 : obj(dob,2) = obj(dob,2) - 2 : obj(dob,3) = obj(dob,3) + 2 : endcase
case 7 : obj(dob,2) = obj(dob,2) - 2 : obj(dob,3) = obj(dob,3) - 2 : endcase
case 0 : obj(dob,3) = obj(dob,3) - 2 : endcase
case 2 : obj(dob,2) = obj(dob,2) + 2 : endcase
case 4 : obj(dob,3) = obj(dob,3) + 2 : endcase
case 6 : obj(dob,2) = obj(dob,2) - 2 : endcase
endselect
if obj(dob,4) <> 0
if obj(obj(dob,4),1) = 6 then health = health - 1
deleteob(dob)
endif
cc = 2
endif
`Evil Eye
if obj(dob,1) = 15
bs = 0
bd = 0
if obj(dob,5) > 0 then obj(dob,5) = obj(dob,5) - 1
if obj(dob,5) = 0
if obj(player,3)+16 > obj(dob,3) and obj(player,3) < obj(dob,3)+16
if obj(player,2) < obj(dob,2) and screens(screen,obj(dob,9)-1,obj(dob,10)) = 0 then bx = obj(dob,2)-8 : by = obj(dob,3) : bd = 4 : bs = 1
if obj(player,2) > obj(dob,2)+16 and screens(screen,obj(dob,9)+1,obj(dob,10)) = 0 then bx = obj(dob,2)+8 : by = obj(dob,3) : bd = 2 : bs = 1
endif
if obj(player,2)+16 > obj(dob,2) and obj(player,2) < obj(dob,2)+16
if obj(player,3) < obj(dob,3) and screens(screen,obj(dob,9),obj(dob,10)-1) = 0 then bx = obj(dob,2) : by = obj(dob,3)-8 : bd = 1 : bs = 1
if obj(player,3) > obj(dob,3)+16 and screens(screen,obj(dob,9),obj(dob,10)+1) = 0 then bx = obj(dob,2) : by = obj(dob,3)+8 : bd = 3 : bs = 1
endif
endif
if bs = 1 then obj(dob,5) = 30:bob = makeob(16,bx,by):obj(bob,5) = bd
endif
`EVIL bullet
if obj(dob,1) = 16
select obj(dob,5)
case 1 : obj(dob,3) = obj(dob,3) - 4 : endcase
case 2 : obj(dob,2) = obj(dob,2) + 4 : endcase
case 3 : obj(dob,3) = obj(dob,3) + 4 : endcase
case 4 : obj(dob,2) = obj(dob,2) - 4 : endcase
endselect
if obj(dob,4) <> 0 and obj(obj(dob,4),1) <> 6 and obj(obj(dob,4),1) <> 15
deleteob(dob)
endif
if sqrt((obj(dob,2)-obj(player,2))^2+(obj(dob,3)-obj(player,3))^2) < 14
deleteob(dob)
health = 0
endif
cc = 1
endif
`Bullet
if obj(dob,1) = 9
select obj(dob,5)
case 1 : obj(dob,3) = obj(dob,3) - 4 : endcase
case 2 : obj(dob,2) = obj(dob,2) + 4 : endcase
case 3 : obj(dob,3) = obj(dob,3) + 4 : endcase
case 4 : obj(dob,2) = obj(dob,2) - 4 : endcase
endselect
if obj(dob,4) <> 0
if obj(obj(dob,4),1) = 10 or obj(obj(dob,4),1) = 11 or obj(obj(dob,4),1) = 27
obj(obj(dob,4),7) = obj(obj(dob,4),7) + 1
endif
deleteob(dob)
endif
cc = 2
endif
`Player
if obj(dob,1) = 6
player = dob
if iw > 0 then iw = iw - 1
if iw = 0
if upkey() = 1 then obj(dob,3) = obj(dob,3) - 1 : obj(dob,5) = 1
if downkey() = 1 then obj(dob,3) = obj(dob,3) + 1 : obj(dob,5) = 3
if leftkey() = 1 then obj(dob,2) = obj(dob,2) - 1 : obj(dob,5) = 4
if rightkey() = 1 then obj(dob,2) = obj(dob,2) + 1 : obj(dob,5) = 2
endif
if obj(dob,6) > 0 then obj(dob,6) = obj(dob,6) - 1
if controlkey() = 1 and obj(dob,6) = 0
if magic > 0
magic = magic - 1
if obj(dob,5) = 1 then bx = obj(dob,2) : by = obj(dob,3) - 18
if obj(dob,5) = 2 then bx = obj(dob,2) + 18 : by = obj(dob,3)
if obj(dob,5) = 3 then bx = obj(dob,2) : by = obj(dob,3) + 18
if obj(dob,5) = 4 then bx = obj(dob,2) - 18 : by = obj(dob,3)
bob = makeob(9,bx,by)
obj(bob,5) = obj(dob,5)
obj(dob,6) = 20
else
obj(dob,8) = 30
endif
endif
if obj(dob,7) > 0 then obj(dob,7) = obj(dob,7) - 1
if obj(dob,8) > 0
obj(dob,8) = obj(dob,8) - 1
ink rgb(255,255,255),0
center text obj(dob,2)+8,obj(dob,3)-15,"!"
endif
if obj(dob,4) > 0
co = obj(dob,4)
if obj(co,1) = 21 or obj(co,1) = 22
f = 0
for chk = 1 to 5
if speechs(screen,chk,1) = obj(co,9) and speechs(screen,chk,2) = obj(co,10) then f = 1 : exit
next chk
talk(speech$(screen,chk,1),speech$(screen,chk,2),speech$(screen,chk,3))
if screen = 9 and obj(co,9) = 11 and obj(co,10) = 9 and quest = 0 then quest = 1
if screen = 9 and obj(co,9) = 11 and obj(co,10) = 9 and quest = 3
screens(9,12,9) = 30
speech$(9,1,1) = ""
speech$(9,1,2) = "Thankyou"
speech$(9,1,3) = ""
screens(10,4,2) = 0
screens(10,5,3) = 22
quest = 4
endif
endif
if obj(co,1) = 10 and obj(dob,7) = 0
obj(dob,7) = 20
obj(dob,8) = 30
health = health - 1
endif
if obj(co,1) = 11 and obj(dob,7) = 0
obj(dob,7) = 20
obj(dob,8) = 30
health = health - 1
endif
if obj(co,1) = 30 and screen = 15
talk("You have found","the crystal ball","")
quest = 2
deleteob(co)
endif
if obj(co,1) = 25
deleteob(co)
if health < 5
health = health + 1
endif
endif
if obj(co,1) = 26
deleteob(co)
if magic < 14
magic = magic + 2
if magic > 14 then magic = 14
endif
endif
if obj(co,1) = 12
deleteob(co)
keys = keys + 1
endif
if obj(co,1) = 23
shop()
endif
if obj(co,1) = 13
if keys > 0
deleteob(co)
keys = keys - 1
else
talk("","You need a key!","")
endif
endif
if obj(co,1) = 24
if jewels => 10
jewels = jewels - 10
deleteob(co)
else
talk("You need ten","jewels to pass","")
endif
endif
if obj(co,1) = 7
deleteob(co)
jewels = jewels + 1
endif
if obj(co,1) = 8 or obj(co,1) = 29
ef = 0
for ce = 1 to 5
if exits(screen,ce,1) = obj(co,9) and exits(screen,ce,2) = obj(co,10)
oscreen = screen
screen = exits(oscreen,ce,3)
loadscreen()
makeob(6,(exits(oscreen,ce,4)-1)*16,(exits(oscreen,ce,5)-1)*16)
restx = exits(oscreen,ce,4)
resty = exits(oscreen,ce,5)
resth = health
restm = magic
iw = 30
if exits(oscreen,ce,6) = 1
if len(str$(exits(oscreen,ce,4))) = 1 : sx$ = "0"+str$(exits(oscreen,ce,4)) : else : sx$ = str$(exits(oscreen,ce,4)) : endif
if len(str$(exits(oscreen,ce,5))) = 1 : sy$ = "0"+str$(exits(oscreen,ce,5)) : else : sy$ = str$(exits(oscreen,ce,5)) : endif
if len(str$(screen)) = 1 : ss$ = "0"+str$(screen) : else : ss$ = str$(screen) : endif
if len(str$(jewels)) = 1 : sj$ = "0"+str$(jewels) : else : sj$ = str$(jewels) : endif
if len(str$(magic)) = 1 : sm$ = "0"+str$(magic) : else : sm$ = str$(magic) : endif
sk$ = str$(keys)
sh$ = str$(health)
n1 = rnd(23)+10
n2$ = str$(n1*3)
n1$ = str$(n1)
pass$ = n1$+sx$+sy$+ss$+sj$+sk$+sh$+sm$+n2$
talk("Level Passed!","Password:",pass$)
endif
ef = 1
exit
endif
next ce
if ef = 0 then talk("Better not go","in here.","")
endif
endif
cc = 2
endif
`Collision
obj(dob,4) = 0
if cc > 0
for cob = 1 to top
if cob <> dob
if obj(cob,1) > 0
if coll(obj(dob,2),obj(dob,3),16,obj(cob,2),obj(cob,3),16) = 1
if cc = 2
if coll(obj(dob,2),oy,16,obj(cob,2),obj(cob,3),16) = 1 then obj(dob,2) = ox
if coll(ox,obj(dob,3),16,obj(cob,2),obj(cob,3),16) = 1 then obj(dob,3) = oy
endif
obj(dob,4) = cob
obj(cob,4) = dob
endif
endif
endif
next cob
for dsx = 1 to 20
for dsy = 1 to 13
if screens(screen,dsx,dsy) > 0 and screens(screen,dsx,dsy) <= 5
if obj(dob,1) = 9 and screens(screen,dsx,dsy) = 4 or obj(dob,1) = 28 and screens(screen,dsx,dsy) = 4
else
if coll(obj(dob,2),obj(dob,3),16,(dsx-1)*16,(dsy-1)*16,16) = 1
obj(dob,4) = -1
if cc = 2
if coll(obj(dob,2),oy,16,(dsx-1)*16,(dsy-1)*16,16) = 1 then obj(dob,2) = ox
if coll(ox,obj(dob,3),16,(dsx-1)*16,(dsy-1)*16,16) = 1 then obj(dob,3) = oy
endif
endif
endif
endif
next dsy
next dsx
endif
draw(obj(dob,1),obj(dob,2),obj(dob,3))
` if obj(dob,1) = 27 then draw(4,(obj(dob,9)-1)*16,16+(obj(dob,10)-1)*16)
endif
next dob
if escapekey() = 1
do
ink 0,0
box 80,80,240,145
ink rgb(255,255,255),0
center text 160,82, "Want To Quit?"
center text 160,104, "1- Yes"
center text 160,120, "2- No "
if scancode() = 2 then goto menu
if scancode() = 3 then exit
sync
loop
endif
if health <= 0
talk("","You died.","")
loadscreen()
px = (restx-1)*16
py = (resty-1)*16
makeob(6,px,py)
health = resth
magic = restm
endif
sync
cls
loop
function coll(x1,y1,s1,x2,y2,s2)
if x1+s1 > x2 and x1 < x2+s2
if y1+s1 > y2 and y1 < y2+s2
col = 1
endif
endif
endfunction col
function deleteob(o)
if obj(o,9) > 0 and obj(o,10) > 0 then screens(screen,obj(o,9),obj(o,10)) = 0
obj(o,1) = 0
endfunction
function loadscreen()
for cob = 1 to 300 : obj(cob,1) = 0 : next cob
top = 0
for dy = 1 to 13
for dx = 1 to 20
if screens(screen,dx,dy) > 5
obm = makeob(screens(screen,dx,dy),(dx-1)*16,(dy-1)*16)
obj(obm,9) = dx
obj(obm,10) = dy
if screens(screen,dx,dy) = 27 then screens(screen,dx,dy) = 4
endif
next dx
next dy
endfunction
function makeob(t,x,y)
for ffs = 1 to 300
if obj(ffs,1) = 0 then exit
next ffs
if ffs > top then top = ffs
for dd = 1 to 10
obj(ffs,dd) = 0
next dd
obj(ffs,1) = t
obj(ffs,2) = x
obj(ffs,3) = y
endfunction ffs
function draw(s,x,y)
for dx = 0 to 3
for dy = 0 to 3
if sprites(s,dx+1,dy+1) > 0
select sprites(s,dx+1,dy+1)
case 1 : r = 0: g = 0: b = 0: endcase
case 2 : r = 128: g = 0: b = 0: endcase
case 3 : r = 0: g = 128: b = 255: endcase
case 4 : r = 0: g = 255: b = 0: endcase
case 5 : r = 255: g = 0: b = 0: endcase
case 6 : r = 255: g = 0: b = 255: endcase
case 7 : r = 255: g = 0: b = 0: endcase
case 8 : r = 255: g = 255: b = 0: endcase
case 9 : r = 128: g = 128: b = 128: endcase
case 10 : r = 198: g = 198: b = 198: endcase
case 11 : r = 255: g = 198: b = 0: endcase
case 12 : r = 0: g = 196: b = 255: endcase
case 13 : r = 255: g = 255: b = 255: endcase
endselect
ink rgb(r,g,b),0
box x+(dx*4),y+(dy*4),x+(dx*4)+4,y+(dy*4)+4
endif
next dy:next dx
endfunction
function shop()
notbuy = 0
do
ink 0,0
box 80,80,240,145
ink rgb(255,255,255),0
center text 160,82,"Shop"
ink rgb(255,255,255),0
if scancode() = 2
if jewels => 10
jewels = jewels - 10
health = 5 : exit
else
ink rgb(255,0,0),0
endif
endif
text 82,97, "1- Healing (10J)"
ink rgb(255,255,255),0
text 82,127,"SPACE - Exit"
if scancode() = 3
if jewels => 10
jewels = jewels - 10
magic = 14 : exit
else
ink rgb(255,0,0),0
endif
endif
text 82,112,"2- Magic (10J)"
ink rgb(255,255,255),0
if spacekey() = 1 then exit
sync
loop
talk("Thankyou","Come again","")
endfunction
function talk(t1$,t2$,t3$)
do
ink 0,0
box 80,80,240,130
ink rgb(255,255,255),0
center text 160,82,t1$
center text 160,97,t2$
center text 160,112,t3$
if spacekey() = 1 or returnkey() = 1 then exit
sync
loop
endfunction
exitdata:
` Screen1 X Y Screen2 X Y LP
data 1, 17, 1, 2, 17, 12, 0
data 2, 17, 13, 1, 17, 02, 0
data 2, 19, 1, 3, 19, 12, 0
data 3, 19, 13, 2, 19, 2, 0
data 3, 3, 13, 2, 3, 2, 0
data 2, 3, 1, 3, 3, 12, 0
data 2, 1, 7, 4, 19, 7, 0
data 4, 20, 7, 2, 2, 7, 0
data 4, 3, 1, 5, 3, 12, 0
data 5, 3, 13, 4, 3, 2, 0
data 5, 20, 7, 6, 2, 7, 0
data 6, 1, 7, 5, 19, 7, 0
data 6, 19, 1, 7, 19, 11, 1
data 7, 11, 1, 8, 11, 12, 0
data 8, 11, 13, 7, 11, 2, 0
data 8, 11, 5, 9, 11, 12, 0
data 9, 11, 13, 8, 11, 6, 0
data 8, 1, 3, 10, 19, 3, 0
data 10, 20, 3, 8, 2, 3, 0
data 10, 18, 13, 11, 18, 2, 0
data 11, 18, 1, 10, 18, 12, 0
data 11, 20, 6, 7, 2, 6, 0
data 7, 1, 6, 11, 19, 6, 0
data 11, 3, 3, 12, 3, 3, 0
data 12, 3, 1, 11, 3, 2, 0
data 12, 18, 1, 13, 18, 12, 0
data 13, 18, 13, 13, 18, 2, 0
data 13, 10, 1, 14, 10, 12, 0
data 14, 10, 13, 13, 10, 2, 0
data 14, 1, 6, 15, 19, 7 ,0
DATA 15, 20, 7, 14, 2, 6 ,0
DATA 15, 4, 1, 11, 17, 11 ,0
data 10, 4, 1, 16, 4, 12, 1
data -1
speechdata:
` Screen X Y Words
data 1, 4, 11, "There is a village","to the North. "," "
data 1, 15, 3, "NORTH: Village ","Beware of monsters"," "
DATA 5, 5, 5, "Beware","Evil Sea Monsters",""
data 6, 18, 10, " ","THIS WAY: Village "," "
data 7, 19, 12, "It is much too","dangerous to leave","the village."
data 7, 6, 8, "Life sure is tough","since we were","pixelised."
data 8, 10, 7, "Village Elder's", "House","Vistors Welcome"
data 9, 11, 9, "My crystal ball ","was stolen. Please","get it back for me"
data 8, 13, 7, "We don't see much ","of the Village ","Elder these days."
data 11, 5, 3, "Danger!", "This hole is full ","of monsters."
data 10, 4, 2, "You need a pass ","to leave the ","village. "
data 10, 5, 3, "","Be careful!",""
data 10, 6, 9, "Its a bummer not ","being able to ","leave! "
data 10, 11, 4, "You can only leave","with permission ","from the elder! "
data 11, 11, 7, "The monsters steal","things and hide ","them underground. "
data -1
`HOUSE
`19,18,18,18,20
`02,17,08,17,03
screendata:
`1
data 1
data 01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,08,01,01,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,21,00,00,05,00,01
data 01,00,00,00,05,00,00,00,00,00,05,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,07,07,07,07,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,07,07,07,07,00,01
data 01,00,19,18,18,18,20,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,02,17,08,17,03,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,05,00,00,00,01
data 01,00,00,22,00,00,00,00,05,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01
`2
data 1
data 01,01,08,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,08,01
data 01,00,00,00,00,01,01,01,01,01,01,01,01,15,00,00,05,00,00,01
data 01,00,00,00,00,01,01,01,01,01,01,01,01,00,00,12,05,00,00,01
data 01,00,00,00,00,01,01,01,01,01,01,01,03,00,00,05,05,00,10,01
data 01,00,00,00,00,02,01,01,01,01,03,00,00,00,05,05,00,00,00,01
data 01,05,00,00,00,00,01,01,01,01,00,00,00,00,05,00,00,00,00,01
data 08,24,00,00,00,00,02,01,01,03,00,00,00,00,05,10,00,00,00,01
data 01,05,00,00,00,00,00,00,00,00,00,00,00,00,05,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,05,00,00,10,00,01
data 01,00,00,00,00,00,00,14,00,00,00,00,00,00,05,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,05,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,05,00,00,00,00,01
data 01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,08,01,01,01
`3
data 1
data 01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01
data 01,00,00,00,05,00,11,00,05,00,10,07,05,00,11,26,05,00,00,01
data 01,00,00,00,05,00,00,00,05,00,00,07,05,00,00,26,05,00,00,01
data 01,00,00,00,05,00,00,00,05,00,00,07,05,00,00,26,05,00,00,01
data 01,00,00,00,05,00,00,00,05,00,00,07,05,00,00,26,05,00,00,01
data 01,00,00,00,05,00,00,00,00,00,00,07,05,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,05,00,00,00,00,00,00,07,05,00,00,01
data 01,00,00,00,05,00,00,07,05,00,00,00,05,00,00,07,05,00,00,01
data 01,00,00,00,05,00,00,07,05,00,00,00,05,00,00,07,05,00,00,01
data 01,00,00,00,05,00,00,07,05,00,00,00,05,00,00,07,05,00,00,01
data 01,00,00,00,05,00,10,07,05,00,11,00,05,00,10,07,05,00,00,01
data 01,01,08,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,08,01
`4
data 1
data 01,01,08,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01
data 01,03,00,02,03,00,00,00,13,00,00,00,00,02,01,01,01,01,01,01
data 01,00,00,00,00,00,05,05,05,05,05,00,00,00,01,01,01,01,01,01
data 01,00,00,00,00,05,00,00,00,00,00,05,00,00,01,01,01,01,01,01
data 01,00,00,00,00,05,00,11,00,00,00,05,00,00,02,01,01,01,01,01
data 01,00,00,00,00,05,00,00,00,00,00,00,00,00,00,02,01,01,01,01
data 01,10,00,00,00,05,00,00,00,00,00,00,00,00,00,00,00,00,00,08
data 01,00,00,00,00,05,00,00,00,11,00,05,00,00,01,01,01,01,01,01
data 01,00,00,10,00,00,05,05,05,05,05,00,00,00,01,01,01,01,01,01
data 01,00,00,00,00,05,07,07,00,00,00,00,00,00,01,01,01,01,01,01
data 01,00,00,00,00,05,07,07,00,00,00,00,00,00,01,01,01,01,01,01
data 01,00,00,00,10,05,07,07,00,00,00,00,00,00,01,01,01,01,01,01
data 01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01
`5
data 1
data 01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01
data 01,26,26,26,00,00,00,00,00,00,14,00,00,00,00,00,00,00,15,01
data 01,26,26,26,00,00,00,00,04,04,04,04,04,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,04,04,04,04,04,04,04,00,00,00,00,00,01
data 01,00,00,00,21,00,04,04,04,04,04,04,04,04,04,00,00,00,00,01
data 01,00,00,00,00,00,04,04,27,04,04,04,27,04,04,00,00,00,05,01
data 01,00,00,00,00,00,04,04,04,04,04,04,04,04,04,00,00,00,00,08
data 01,00,00,00,00,00,04,04,04,04,04,04,04,04,04,00,00,00,05,01
data 01,00,00,00,00,00,04,04,04,04,04,04,04,04,04,00,00,00,00,01
data 01,00,00,00,00,00,00,04,04,04,04,04,04,04,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,04,04,04,04,04,00,00,00,00,00,00,01
data 01,05,00,05,00,00,00,00,00,00,14,00,00,00,00,00,00,00,15,01
data 01,01,08,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01
`6
data 1
data 01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,08,01
data 01,00,05,07,07,07,05,00,15,00,01,01,01,01,01,01,01,01,00,01
data 01,00,05,00,00,00,05,00,00,00,01,01,01,01,01,01,01,01,24,01
data 01,00,05,07,00,07,05,00,00,00,01,01,01,01,01,01,01,01,00,01
data 01,00,05,05,14,05,05,00,00,00,01,01,01,01,01,01,01,01,24,01
data 01,00,00,00,00,00,10,00,00,00,01,01,01,01,01,01,01,01,00,01
data 08,00,00,00,00,00,00,00,00,00,01,01,01,01,01,01,01,01,00,01
data 01,00,00,00,00,00,10,00,00,00,02,01,01,01,01,01,01,03,00,01
data 01,00,05,05,14,05,05,00,00,00,00,00,02,01,01,01,03,00,00,01
data 01,00,05,07,00,07,05,00,00,00,00,00,00,00,00,00,00,21,00,01
data 01,00,05,00,00,00,05,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,05,07,07,07,05,00,15,00,01,01,01,01,01,01,01,01,01,01
data 01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01
`7
data 1
data 01,01,01,01,01,01,01,01,01,01,08,01,01,01,01,01,01,01,01,01
data 01,00,00,05,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,05,00,00,00,00,04,04,04,04,04,04,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,04,04,04,04,04,04,00,01
data 01,00,00,19,18,18,18,20,00,00,00,00,04,04,04,04,04,04,00,01
data 08,00,00,02,17,08,17,03,00,00,00,00,04,04,04,04,04,04,00,01
data 01,00,00,00,00,00,00,00,00,00,05,00,00,04,04,04,04,00,00,01
data 01,00,00,00,00,22,00,05,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,05,00,00,00,00,00,19,18,18,18,20,00,00,00,00,01
data 01,00,00,00,00,00,00,05,00,00,02,17,08,17,03,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,22,01
data 01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,08,01
`8
data 1
data 01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01
data 01,00,00,00,00,00,19,18,18,18,18,18,18,18,20,00,00,00,00,01
data 08,00,00,00,00,00,01,17,01,17,01,17,01,17,01,00,05,00,00,01
data 01,00,00,00,00,00,01,17,01,17,01,17,01,17,01,00,00,00,00,01
data 01,00,00,00,00,00,02,17,01,17,08,17,01,17,03,00,00,05,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,21,00,00,22,00,00,05,00,00,00,01
data 01,00,19,18,18,18,20,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,02,17,08,17,03,05,00,00,00,00,00,19,18,18,18,20,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,02,17,08,17,03,00,01
data 01,00,00,00,00,05,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,01,01,01,01,01,01,01,01,01,08,01,01,01,01,01,01,01,01,01
`Elder's hosue
`9
data 2
data 08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08
data 08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08
data 08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08
data 08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08
data 08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08
data 08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08
data 08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08,08
data 08,08,08,08,08,08,01,01,01,01,01,01,01,01,01,08,08,08,08,08
data 08,08,08,08,08,08,01,04,04,00,22,00,04,04,01,08,08,08,08,08
data 08,08,08,08,08,08,01,04,04,00,00,00,04,04,01,08,08,08,08,08
data 08,08,08,08,08,08,01,00,00,00,00,00,00,00,01,08,08,08,08,08
data 08,08,08,08,08,08,01,00,00,00,00,00,00,00,01,08,08,08,08,08
data 08,08,08,08,08,08,01,01,01,01,08,01,01,01,01,08,08,08,08,08
`10
data 1
data 01,01,01,08,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01
data 01,00,02,22,03,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,08
data 01,00,00,00,00,00,00,00,00,00,22,00,19,18,18,18,20,00,00,01
data 01,00,00,19,18,18,18,20,00,00,00,00,01,17,01,17,01,00,00,01
data 01,00,00,01,17,01,17,01,00,00,00,00,02,17,08,17,03,00,00,01
data 01,00,00,02,17,08,17,03,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,05,00,00,00,00,01
data 01,00,00,00,00,22,00,00,00,00,00,00,05,05,05,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,05,05,05,05,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,05,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,08,01,01
`19,18,18,18,20
`02,17,08,17,03
`11
data 1
data 01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,08,01,01
data 01,00,00,00,00,00,05,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,29,00,21,00,05,00,00,00,00,19,18,18,18,20,00,00,00,01
data 01,00,00,00,00,00,05,00,23,00,00,02,17,08,17,03,00,00,00,01
data 01,05,05,05,05,05,05,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,08
data 01,00,00,00,00,00,00,00,00,00,22,00,00,00,00,00,00,00,00,01
data 01,00,00,19,18,18,18,20,00,00,00,00,00,00,05,05,14,05,05,01
data 01,00,00,01,17,01,17,01,00,00,00,00,00,00,05,00,14,00,00,01
data 01,00,00,02,17,08,17,03,00,00,00,00,00,00,05,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,05,00,00,29,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,05,00,00,00,00,01
data 01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01
`12
data 3
data 01,01,08,01,01,01,01,01,01,01,01,01,01,01,01,01,01,08,01,01
data 01,00,00,00,01,01,01,01,01,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,01,01,01,01,01,01,01,01,01,01,01,01,07,00,00,01
data 01,00,00,00,01,01,01,01,01,00,00,00,00,00,00,01,07,00,00,01
data 01,00,00,00,01,01,01,01,01,00,01,01,00,01,00,01,07,00,00,01
data 01,00,00,00,00,00,00,00,01,00,01,00,00,14,00,01,07,00,00,01
data 01,00,00,00,00,00,00,00,14,00,00,00,00,01,01,01,07,00,00,01
data 01,00,00,00,00,00,00,00,01,01,01,01,00,00,01,01,01,01,00,01
data 01,00,00,00,01,01,01,01,01,15,00,00,00,00,00,00,12,01,00,01
data 01,00,00,00,01,01,01,01,01,01,01,00,00,00,00,01,01,01,00,01
data 01,26,26,26,01,01,01,01,01,15,00,00,00,00,00,00,13,00,00,01
data 01,26,26,26,01,01,01,01,01,01,01,01,01,01,01,01,01,01,00,01
data 01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01
`13
data 3
data 01,01,01,01,01,01,01,01,01,08,01,01,01,01,01,01,01,01,01,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,01,01,01,01,00,00,01,01,01,01,00,00,01,01,01,01,00,01
data 01,00,01,00,10,01,00,00,01,11,00,01,00,00,01,00,10,01,00,01
data 01,00,01,00,00,01,00,00,01,00,00,01,00,00,01,00,00,01,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,01,01,01,01,00,00,01,01,01,01,00,00,01,01,01,01,00,01
data 01,00,01,11,00,01,00,00,01,00,10,01,00,00,01,11,00,01,00,01
data 01,00,01,00,00,01,00,00,01,00,00,01,00,00,01,00,00,01,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,08,01,01
`14
data 3
data 01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01
data 01,04,04,04,04,01,00,00,00,00,00,00,02,01,01,01,01,01,01,01
data 01,04,04,04,04,01,15,00,00,00,00,00,00,02,01,01,01,01,01,01
data 01,04,04,04,04,01,00,00,00,00,00,00,00,00,01,01,01,01,01,01
data 01,26,25,26,25,01,00,00,00,00,00,00,00,00,01,01,01,01,01,01
data 08,00,00,00,00,13,00,00,00,00,00,00,14,00,01,01,01,01,01,01
data 01,25,26,25,26,01,00,00,00,00,00,00,00,00,01,01,01,01,01,01
data 01,04,04,04,04,01,00,00,14,00,00,00,00,00,15,00,00,12,02,01
data 01,04,04,04,04,01,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,04,04,04,04,01,15,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,04,04,04,04,01,00,00,14,00,00,00,00,14,00,14,00,00,00,01
data 01,04,04,04,04,01,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,01,01,01,01,01,01,01,01,08,01,01,01,01,01,01,01,01,01,01
`15
data 3
data 01,01,01,08,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01
data 01,04,04,00,04,04,04,04,04,04,04,04,04,04,04,04,04,04,04,01
data 01,04,04,00,04,04,04,27,04,04,04,27,04,04,04,04,04,04,04,01
data 01,04,04,00,04,04,04,04,04,04,04,04,04,04,04,04,04,04,04,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,30,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,08
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,04,04,04,04,04,04,04,04,04,04,04,04,04,04,04,04,04,04,01
data 01,04,04,04,04,04,04,27,04,04,04,27,04,04,04,04,04,04,04,01
data 01,04,04,04,04,04,04,04,04,04,04,04,04,04,04,04,04,04,04,01
data 01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01
`16 mountains
data 2
data 01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01
remstart
data 01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01
data 01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01
remend
data -1
spritedata:
`0 - player
data 0
data 0,0,0,0
data 0,1,1,0
data 0,1,1,0
data 0,0,0,0
`1 - wall right
data 2
data 2,2,2,2
data 2,2,2,2
data 2,2,2,2
data 2,2,2,2
`2 - wall left
data 2
data 2,2,2,2
data 0,2,2,2
data 0,0,2,2
data 0,0,0,2
`3 - wall right
data 2
data 2,2,2,2
data 2,2,2,0
data 2,2,0,0
data 2,0,0,0
`4 - water
data 3
data 3,12,3,3
data 3,3,3,3
data 3,3,12,3
data 3,3,3,3
`5 - bush
data 4
data 0,4,4,0
data 4,4,4,4
data 4,4,4,4
data 0,4,4,0
`6 - player
data 1
data 1,0,0,1
data 0,1,1,0
data 0,1,1,0
data 1,0,0,1
`7 - jewel
data 5
data 0,0,0,0
data 0,5,5,0
data 0,5,5,0
data 0,0,0,0
`8 - exit
data 1
data 1,1,1,1
data 1,1,1,1
data 1,1,1,1
data 1,1,1,1
`9 - magic bullet
data 6
data 0,0,0,0
data 0,6,6,0
data 0,6,6,0
data 0,0,0,0
`10 - bad guy 1
data 7
data 7,0,0,7
data 0,7,7,0
data 0,7,7,0
data 7,0,0,7
`11 - bad guy 2
data 8
data 0,8,8,0
data 8,0,0,8
data 8,0,0,8
data 0,8,8,0
`12 - key
data 10
data 0,0,0,0
data 0,10,10,0
data 0,10,10,0
data 0,0,0,0
`13 - door
data 9
data 10,10,10,10
data 10,1,1,10
data 10,1,1,10
data 10,10,10,10
`14 - block
data 10
data 00,10,10,00
data 10,10,10,10
data 10,10,10,10
data 00,10,10,00
`15 - evil eye
data 4
data 4,4,4,4
data 4,0,0,4
data 4,0,0,4
data 4,4,4,4
`16 - evil bullet
data 5
data 0,0,0,0
data 0,5,0,0
data 0,0,5,0
data 0,0,0,0
`17 - house window
data 2
data 2,2,2,2
data 2,1,1,2
data 2,1,1,2
data 2,2,2,2
`18 - house roof
data 11
data 0,0,0,0
data 11,11,11,11
data 11,11,11,11
data 11,11,11,11
`19 - house roof l
data 11
data 0,0,0,0
data 0,0,11,11
data 0,11,11,11
data 11,11,11,11
`20 - house roof r
data 10
data 10,10,0,0
data 10,10,0,0
data 10,10,11,0
data 11,11,11,11
`21 - sign
data 11
data 2,2,2,2
data 2,1,1,2
data 2,2,2,2
data 0,2,2,0
`22 - person
data 1
data 1,0,0,1
data 0,1,1,0
data 0,1,1,0
data 1,0,0,1
`23 - shop
data 1
data 3,3,3,3
data 2,0,0,2
data 3,3,3,3
data 3,3,3,3
`24 - jdoor
data 9
data 10,10,10,10
data 10,5,5,10
data 10,5,5,10
data 10,10,10,10
`25 - health pickup
data 5
data 0,0,0,0
data 0,5,0,0
data 0,5,5,0
data 0,0,0,0
`26 - magic pickup
data 4
data 0,0,0,0
data 0,4,4,0
data 0,0,4,0
data 0,0,0,0
`27 - sea monster
data 4
data 4,3,3,4
data 3,4,4,3
data 4,4,4,4
data 4,4,4,4
`28 - super evil bullet
data 4
data 0,0,0,0
data 0,8,8,0
data 0,8,8,0
data 0,0,0,0
`29 - hole
data 2
data 0,2,2,0
data 2,1,1,2
data 2,1,1,2
data 0,2,2,0
`30 - crystal ball
data 3
data 0,3,3,0
data 3,13,13,3
data 3,13,13,3
data 0,3,3,0
data -1