Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lesson 20: chaging the player's sprite after hero selection
- Loading branch information
1 parent
e46d43e
commit 62d13ee
Showing
5 changed files
with
85 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
core/src/com/coldwild/dodginghero/logic/objects/CharacterRecord.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.coldwild.dodginghero.logic.objects; | ||
|
||
/** | ||
* Created by comrad_gremlin on 12/15/2016. | ||
*/ | ||
|
||
public class CharacterRecord { | ||
|
||
public final int levelsForHpUpgrade; | ||
public final int levelsForHpRegenUpgrade; | ||
public final int levelsForAttackUpgrade; | ||
public final int levelsForBonusSpawnUpgrade; | ||
|
||
public final String name; | ||
|
||
public CharacterRecord(int lvlHp, int lvlRegen, int lvlAttack, int lvlBonus, String _name) | ||
{ | ||
levelsForHpUpgrade = lvlHp; | ||
levelsForHpRegenUpgrade = lvlRegen; | ||
levelsForAttackUpgrade = lvlAttack; | ||
levelsForBonusSpawnUpgrade = lvlBonus; | ||
name = _name; | ||
} | ||
|
||
public static String CHAR_NAME_HUMAN = "Human"; | ||
public static String CHAR_NAME_SPIDER = "Spider"; | ||
public static String CHAR_NAME_SKELETON = "Mr.Skeletal"; | ||
public static String CHAR_NAME_GHOST = "Ghost"; | ||
public static String CHAR_NAME_SLIME = "Slimey"; | ||
|
||
public static CharacterRecord CHARACTERS[] = { | ||
new CharacterRecord(2, 2, 4, 4, CHAR_NAME_HUMAN), | ||
new CharacterRecord(3, 6, 3, 3, CHAR_NAME_SPIDER), | ||
new CharacterRecord(6, 12, 1, 3, CHAR_NAME_SKELETON), | ||
new CharacterRecord(4, 4, 2, 4, CHAR_NAME_GHOST), | ||
new CharacterRecord(3, 3, 4, 1, CHAR_NAME_SLIME) | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters