From 8468ec529403afadfd347e7e4ca6847749fd896d Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Wed, 6 Jun 2012 10:20:18 -0400 Subject: Added two mobs for second floor and added power counter to status bar --- .../fourisland/frigidearth/MapViewGameState.java | 14 +++++- src/com/fourisland/frigidearth/mobs/FireSnake.java | 55 ++++++++++++++++++++++ src/com/fourisland/frigidearth/mobs/IceSnake.java | 55 ++++++++++++++++++++++ 3 files changed, 123 insertions(+), 1 deletion(-) create mode 100644 src/com/fourisland/frigidearth/mobs/FireSnake.java create mode 100644 src/com/fourisland/frigidearth/mobs/IceSnake.java (limited to 'src') diff --git a/src/com/fourisland/frigidearth/MapViewGameState.java b/src/com/fourisland/frigidearth/MapViewGameState.java index c5e1d47..0e136d5 100644 --- a/src/com/fourisland/frigidearth/MapViewGameState.java +++ b/src/com/fourisland/frigidearth/MapViewGameState.java @@ -4,6 +4,8 @@ */ package com.fourisland.frigidearth; +import com.fourisland.frigidearth.mobs.FireSnake; +import com.fourisland.frigidearth.mobs.IceSnake; import com.fourisland.frigidearth.mobs.Mouse; import com.fourisland.frigidearth.mobs.Rat; import com.fourisland.frigidearth.mobs.Spider; @@ -761,8 +763,16 @@ public class MapViewGameState implements GameState g.drawImage(SystemFont.getCharacter(healthText.charAt(i), healthColor), (i+2)*TILE_WIDTH, 0, TILE_WIDTH, TILE_HEIGHT, null); } - g.drawImage(SystemFont.getCharacter((char) 5, Color.GRAY), (healthText.length()+3)*TILE_WIDTH, 0, TILE_WIDTH, TILE_HEIGHT, null); + g.drawImage(SystemFont.getCharacter('/', Color.ORANGE), (healthText.length()+3)*TILE_WIDTH, 0, TILE_WIDTH, TILE_HEIGHT, null); int b = healthText.length()+4; + String powerText = Integer.toString(Main.currentGame.getAttackPower()); + for (int i=0; i