ETC
. Disassembler > Mozillayer (preliminary disassembling)
Is this the Mozillayer's background
image?
Yes, and it's a 350x1100 layer. Also, the Netscape's mascot
(courtesy of Netscape Communications inc.) called Mozilla lives in another
layer.
Mozillayer is a single game based demonstration encouraging
us to deploy strong interactive applications with liveconnect technology.
Basically it brings a low level sprite control handled in javascript time.
The follow javascript function has a selector s providing two services
: mozilla mascot movement and background movement.
function putshape(s,x,y) {
if(s==1) {
uga.moveBy(x-posx,y-posy);
posx=x;
posy=y;
} else {
bg.moveBy(0,x*3);
}
}
In the bottom of the page, lives the heart of the game divided
in three components. In fact the mouse sensor, the movement generator,
and the publisher. Mozilla's position is acquired from the mouse x,y coordinates
and reflected for the mozilla instance in applet time. So the background
movement is computed. The final step is to publish each sprite refresh,
it's made calling directly the putshape function through liveconnect technology.
Table of contents
Copyright (C) 1997, Marcio S. Galli
Copyright (C) 1997, Taboca ArtworK