本文整理匯總了Java中com.shatteredpixel.shatteredpixeldungeon.scenes.StartScene類的典型用法代碼示例。如果您正苦於以下問題:Java StartScene類的具體用法?Java StartScene怎麽用?Java StartScene使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
StartScene類屬於com.shatteredpixel.shatteredpixeldungeon.scenes包,在下文中一共展示了StartScene類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: initForRun
import com.shatteredpixel.shatteredpixeldungeon.scenes.StartScene; //導入依賴的package包/類
public static void initForRun(){
float[] regionChances = baseRegionSecrets.clone();
if (StartScene.curClass == HeroClass.ROGUE){
for (int i = 0; i < regionChances.length; i++){
regionChances[i] += 0.6f;
}
}
for (int i = 0; i < regionSecretsThisRun.length; i++){
regionSecretsThisRun[i] = (int)regionChances[i];
if (Random.Float() < regionChances[i] % 1f){
regionSecretsThisRun[i]++;
}
}
runSecrets = new ArrayList<>(ALL_SECRETS);
Random.shuffle(runSecrets);
}
示例2: init
import com.shatteredpixel.shatteredpixeldungeon.scenes.StartScene; //導入依賴的package包/類
public static void init() {
challenges = ShatteredPixelDungeon.challenges();
Generator.initArtifacts();
Actor.clear();
PathFinder.setMapSize( Level.WIDTH, Level.HEIGHT );
Scroll.initLabels();
Potion.initColors();
Wand.initWoods();
Ring.initGems();
Statistics.reset();
Journal.reset();
quickslot.reset();
depth = 0;
gold = 0;
for (limitedDrops a : limitedDrops.values())
a.count = 0;
dewVial = true;
transmutation = Random.IntRange( 6, 14 );
chapters = new HashSet<Integer>();
Ghost.Quest.reset();
Wandmaker.Quest.reset();
Blacksmith.Quest.reset();
Imp.Quest.reset();
Room.shuffleTypes();
hero = new Hero();
hero.live();
Badges.reset();
StartScene.curClass.initHero( hero );
}
示例3: init
import com.shatteredpixel.shatteredpixeldungeon.scenes.StartScene; //導入依賴的package包/類
public static void init() {
version = Game.versionCode;
challenges = ShatteredPixelDungeon.challenges();
seed = DungeonSeed.randomSeed();
Actor.clear();
Actor.resetNextID();
Random.seed( seed );
Scroll.initLabels();
Potion.initColors();
Ring.initGems();
SpecialRoom.initForRun();
SecretRoom.initForRun();
Random.seed();
Statistics.reset();
Notes.reset();
quickslot.reset();
QuickSlotButton.reset();
depth = 0;
gold = 0;
droppedItems = new SparseArray<ArrayList<Item>>();
for (LimitedDrops a : LimitedDrops.values())
a.count = 0;
chapters = new HashSet<Integer>();
Ghost.Quest.reset();
Wandmaker.Quest.reset();
Blacksmith.Quest.reset();
Imp.Quest.reset();
Generator.reset();
Generator.initArtifacts();
hero = new Hero();
hero.live();
Badges.reset();
StartScene.curClass.initHero( hero );
}