Game Development Reference
In-Depth Information
Here is the complete code for the Level1.as class:
package com.efg.games.notanks
{
/**
* ...
* @author Jeff Fulton
*/
public class Level1 extends Level {
public function Level1() {
backGroundTile = 23;
enemyIntelligence = 60;
enemyShotSpeed = 2;
ammoPickUp = 20;
backGroundMap = [
[26,24,25,0,26,26,26,26,26,0,0,26,26,26,26,26,0,24,25,26],
[27,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27],
[29,0,28,0,0,0,24,25,0,24,25,0,24,25,0,0,0,27,0,29],
[27,0,28,0,27,0,0,0,0,0,0,0,0,0,0,27,0,29,0,27],
[29,0,0,0,29,0,0,30,0,0,0,0,31,0,0,29,0,0,0,29],
[0,0,28,0,26,0,0,31,0,0,0,0,31,0,0,26,0,26,0,0],
[0,0,0,0,0,0,0,31,0,0,0,0,31,0,26,0,0,0,0,0],
[26,26,26,0,0,26,0,30,30,30,30,30,30,0,0,0,0,26,26,26],
[0,0,0,26,0,0,0,0,0,0,0,28,0,0,0,0,26,0,0,0],
[0,0,0,0,26,0,0,27,0,27,0,27,0,28,0,26,0,0,0,0],
[27,0,0,0,27,0,0,29,0,29,0,29,0,28,0,27,0,0,0,27],
[29,0,0,0,29,0,0,0,0,0,0,0,0,0,0,29,0,0,0,29],
[27,0,0,0,0,26,0,28,0,28,0,28,28,0,26,0,0,0,0,27],
[29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,29],
[26,24,25,0,0,26,26,26,26,0,0,26,26,26,26,0,0,24,25,26]
];
spriteMap = [
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,22,0,0,0,0,0,9,0,0,20,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[1,0,0,0,0,0,0,0,0,0,0,0,0,0,20,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,9,0,9,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,9,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,20,0,0,0,0,0,9,0,23,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
];
}
}
}
Search WWH ::




Custom Search