HTML and CSS Reference
In-Depth Information
deepTile: tiles.deep.add(new Tile("deep_bridge"))
})
tiles.add(new AbyssTile("abyss"));
},
afterInit: function(game) {
var tiles = game.tiles, sprites = game.sprites
tiles.deep.bind(sprites);
}}
Add new script tags to the HTML file, and view the result, as seen in Figure 6-2 .
Figure 6-2. Endless pit
Smooth Transitions
This is the most interesting part of this chapter: how to make smooth transitions between surfaces (see Figure 6-3 ).
Figure 6-3. Surfaces
 
Search WWH ::




Custom Search