Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package
- {
- import net.flashpunk.FP;
- public class GC
- {
- [Embed(source = "assets/assassin.png")]
- public static const PLAYER:Class;
- [Embed(source = "assets/soldier spear.png")]
- public static const SOLDIER1:Class;
- [Embed(source = "assets/soldier spear 2.png")]
- public static const SOLDIER2:Class;
- [Embed(source = "assets/soldier spear 3.png")]
- public static const SOLDIER3:Class;
- private var enemySprite:Spritemap;
- [Embed(source = 'assets/mountains.png')]
- public static const BACKGROUND:Class;
- public static const ENEMY_SPEED:Number = 5;
- public static const ENEMY_SPAWN_CHANCE:Number = 0.95;
- public static const jumpDist:int = 112;
- public static const trenchDist:int = 165;
- public static const TYPE_ENEMY:String = "enemy";
- public function GC() {
- public static var soldierNum:int = FP.rand(4);
- if (soldierNum == 0){
- enemySprite = new Spritemap(SOLDIER1,13,26);
- }else if (soldierNum == 1) {
- enemySprite = new Spritemap(SOLDIER2,13,26);
- }else {
- enemySprite = new Spritemap(SOLDIER3,13,26);
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment