metanohi-misc-subsites/old-projects/eonaton/game/stuff/backup.20-12-08-23.12/load.js

56 lines
1.4 KiB
JavaScript

window.onload=function(){
START_systems()
scr=new screen()
scr.name="The Sun"
scr.description="The great star"
scr.background="maps/sun.png"
scr.bbackground="#000"
scr.width=640
scr.height=400
scr.viswidth=scr.width
scr.visheight=scr.height
create(scr)
cha=new character()
cha.name="Wiz the Wizard"
cha.description="A poorly drawn wizard, fighting against all evil."
cha.src="char/wizard.png"
cha.width=48
cha.height=64
cha.posX=285
cha.posY=140
cha.dir(0,0,[0,1],[2,3,4,5],[6,7,8,9])
cha.dir(1,1,[0,1],[2,3,4,5],[6,7,8,9])
cha.dir(2,2,[0,1],[2,3,4,5],[6,7,8,9])
cha.dir(3,3,[0,1],[2,3,4,5],[6,7,8,9])
cha.dir(4,4,[0,1],[2,3,4,5],[6,7,8,9])
cha.dir(5,5,[0,1],[2,3,4,5],[6,7,8,9])
cha.dir(6,6,[0,1],[2,3,4,5],[6,7,8,9])
cha.dir(7,7,[0,1],[2,3,4,5],[6,7,8,9])
cha.create()
scr.add(cha)
chab=new character()
chab.name="test"
chab.description="test"
chab.src="char/simplearrows.png"
chab.width=48
chab.height=64
chab.posX=50
chab.posY=160
chab.dir(0,0,[0,1],[2,3,4,5],[6,7,8,9])
chab.dir(1,1,[0,1],[2,3,4,5],[6,7,8,9])
chab.dir(2,2,[0,1],[2,3,4,5],[6,7,8,9])
chab.dir(3,3,[0,1],[2,3,4,5],[6,7,8,9])
chab.dir(4,4,[0,1],[2,3,4,5],[6,7,8,9])
chab.dir(5,5,[0,1],[2,3,4,5],[6,7,8,9])
chab.dir(6,6,[0,1],[2,3,4,5],[6,7,8,9])
chab.dir(7,7,[0,1],[2,3,4,5],[6,7,8,9])
chab.create()
scr.add(chab)
}