Beispiel #1
0
        public override void initialize()
        {
            x = 1;
            y = 7;

            orientation = DGlobal.MapOrientations.NORTH;

            map = new DMap(this.mApp.graphics);
            map.loadMap("TestMap");

            DCharacter testCharacter = new DCharacter(this.mApp.graphics);

            testCharacter.loadCharacter("Goblin");
            testCharacter.setPosition(1, 2);
            map.addCharacter(testCharacter);

            testCharacter = new DCharacter(this.mApp.graphics);
            testCharacter.loadCharacter("Goblin");
            testCharacter.setPosition(2, 4);
            map.addCharacter(testCharacter);

            testCharacter = new DCharacter(this.mApp.graphics);
            testCharacter.loadCharacter("Goblin");
            testCharacter.setPosition(3, 6);
            testCharacter.setRightArmEquipped(true);
            map.addCharacter(testCharacter);
        }