Android Open Source - shapemergency Easy Game Config






From Project

Back to project page shapemergency.

License

The source code is released under:

GNU General Public License

If you think the Android project shapemergency listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.adsg0186.shapemergency.testgame1.config;
/*from w  w  w.  j  a  v a2  s  . com*/
import com.adsg0186.shapemergency.testgame1.BonusFactory;
import com.adsg0186.shapemergency.testgame1.TargetUtils;
import com.github.adsgray.gdxtry1.engine.velocity.BlobVelocity;
import com.github.adsgray.gdxtry1.engine.velocity.VelocityIF;

public class EasyGameConfig extends BaseGameConfig implements GameConfigIF {

    public EasyGameConfig() {
        super();
        // now override some values:
        difficultyLevel = 0; // Easy
        numEnemies = 4;
        initialShields = 2;
        initialHitPoints = 75;
        bossScoreIncrement = 1000000000; // never? James doesn't like Bosses.
        bonusDropperChance = 5;
        bonusDeathChance = 100;
        bonusDropperBossPointDiff = bossScoreIncrement; // so always?
        damageDefender = true; // can't make it *too* easy
        bossFireRate = 2;
        bonusDropSpeed = -9; // make them drop slower
        bonusDropperLifeTime = 1000;
        shieldLifeTime = 500;
        shieldsUpOverride = true; // no limits on deploying shields
        defaultEnemyFireLoop = TargetUtils.fireAtDefenderLoop(2000, TargetUtils.targetMissileSource, 1);
        angryEnemyFireLoop = TargetUtils.fireAtDefenderLoop(500, TargetUtils.angryTargetMissileSource, 1);
        defaultEnemyBombVel = new BlobVelocity(0, -10);
    }

    protected void initBonuses() {
        bonuses.add(BonusFactory.get().scoreBonus(15));
        bonuses.add(BonusFactory.get().hitPointBonus(10));
        bonuses.add(BonusFactory.get().shieldBonus(2));
    }

    @Override
    public VelocityIF angryEnemyBombVel() {
        return new BlobVelocity(0,-15);
    }
}




Java Source Code List

com.adsg0186.shapemergency.GameActivity.java
com.adsg0186.shapemergency.GameScreen.java
com.adsg0186.shapemergency.HelpView.java
com.adsg0186.shapemergency.HighScoreView.java
com.adsg0186.shapemergency.MainActivity.java
com.adsg0186.shapemergency.SettingsView.java
com.adsg0186.shapemergency.testgame1.AngryTargetMissileSource.java
com.adsg0186.shapemergency.testgame1.BonusFactory.java
com.adsg0186.shapemergency.testgame1.BossTargetMissileSource.java
com.adsg0186.shapemergency.testgame1.CreateEnemyTrigger.java
com.adsg0186.shapemergency.testgame1.DefenderCollisionTrigger.java
com.adsg0186.shapemergency.testgame1.FiringGameTest.java
com.adsg0186.shapemergency.testgame1.GameSound.java
com.adsg0186.shapemergency.testgame1.MissileBlobSource.java
com.adsg0186.shapemergency.testgame1.MissileCollisionTrigger.java
com.adsg0186.shapemergency.testgame1.ShieldCollisionTrigger.java
com.adsg0186.shapemergency.testgame1.TargetMissileSource.java
com.adsg0186.shapemergency.testgame1.TargetUtils.java
com.adsg0186.shapemergency.testgame1.Vibrate.java
com.adsg0186.shapemergency.testgame1.blobs.BonusDropper.java
com.adsg0186.shapemergency.testgame1.blobs.BonusIF.java
com.adsg0186.shapemergency.testgame1.blobs.BossEnemy.java
com.adsg0186.shapemergency.testgame1.blobs.DamagableIF.java
com.adsg0186.shapemergency.testgame1.blobs.DamagerIF.java
com.adsg0186.shapemergency.testgame1.blobs.DefaultEnemy.java
com.adsg0186.shapemergency.testgame1.blobs.EnemyBomb.java
com.adsg0186.shapemergency.testgame1.blobs.EnemyFactory.java
com.adsg0186.shapemergency.testgame1.blobs.EnemyIF.java
com.adsg0186.shapemergency.testgame1.blobs.FiringBlobDecorator.java
com.adsg0186.shapemergency.testgame1.blobs.FlashMessage.java
com.adsg0186.shapemergency.testgame1.blobs.HitpointBonusDecorator.java
com.adsg0186.shapemergency.testgame1.blobs.ScoreTextDisplay.java
com.adsg0186.shapemergency.testgame1.blobs.ShieldRing.java
com.adsg0186.shapemergency.testgame1.config.BaseGameConfig.java
com.adsg0186.shapemergency.testgame1.config.EasyGameConfig.java
com.adsg0186.shapemergency.testgame1.config.GameConfigIF.java
com.adsg0186.shapemergency.testgame1.config.GameConfig.java
com.adsg0186.shapemergency.testgame1.config.GamePreferences.java
com.adsg0186.shapemergency.testgame1.config.InsaneGameConfig.java
com.adsg0186.shapemergency.testgame1.config.SavedGame.java