diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2009-02-11 21:49:49 -0500 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2009-02-11 21:49:49 -0500 |
commit | 325f6291557ff38d3992a0fb38a4efbc70aefa58 (patch) | |
tree | 5b81e00ccb367e6182cc9a0efb0163a048212c73 /src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java | |
parent | 2e1192dc0bccd79f00fcfef266809f3d1787aafa (diff) | |
download | fourpuzzle-325f6291557ff38d3992a0fb38a4efbc70aefa58.tar.gz fourpuzzle-325f6291557ff38d3992a0fb38a4efbc70aefa58.tar.bz2 fourpuzzle-325f6291557ff38d3992a0fb38a4efbc70aefa58.zip |
Engine: Added global font
Converted RM2K's RMG2000.fon to a TrueType font using some long and difficult processes (involving first converting to a .bdf, then to a .ttf). With this standard font included in the package, there will be no worry of strange fonts, as TrueType is a standard. Also, probably because of the size of the new font, the white-tail bug has disappeared. This seems rickety, but because this is the only font that should be used, it should be ok. And if the problem ever arises again, the ticket can be reopened. Fixes #6 and #1.
Diffstat (limited to 'src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java')
-rwxr-xr-x | src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java b/src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java index 52a56c4..8f411af 100755 --- a/src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java +++ b/src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java | |||
@@ -8,6 +8,7 @@ package com.fourisland.fourpuzzle.gamestate.mapview; | |||
8 | import com.fourisland.fourpuzzle.Audio; | 8 | import com.fourisland.fourpuzzle.Audio; |
9 | import com.fourisland.fourpuzzle.gamestate.*; | 9 | import com.fourisland.fourpuzzle.gamestate.*; |
10 | import com.fourisland.fourpuzzle.Direction; | 10 | import com.fourisland.fourpuzzle.Direction; |
11 | import com.fourisland.fourpuzzle.Display; | ||
11 | import com.fourisland.fourpuzzle.gamestate.mapview.event.HeroEvent; | 12 | import com.fourisland.fourpuzzle.gamestate.mapview.event.HeroEvent; |
12 | import com.fourisland.fourpuzzle.Game; | 13 | import com.fourisland.fourpuzzle.Game; |
13 | import com.fourisland.fourpuzzle.Layer; | 14 | import com.fourisland.fourpuzzle.Layer; |
@@ -206,7 +207,7 @@ public class MapViewGameState implements GameState { | |||
206 | 207 | ||
207 | g.drawImage(currentMap.renderLower(), 0, 0, Game.WIDTH, Game.HEIGHT, x, y, x+Game.WIDTH, y+Game.HEIGHT, null); | 208 | g.drawImage(currentMap.renderLower(), 0, 0, Game.WIDTH, Game.HEIGHT, x, y, x+Game.WIDTH, y+Game.HEIGHT, null); |
208 | 209 | ||
209 | BufferedImage eventLayer = new BufferedImage(currentMap.getSize().width*16, currentMap.getSize().height*16, BufferedImage.TYPE_INT_ARGB); | 210 | BufferedImage eventLayer = Display.createCanvas(currentMap.getSize().width*16, currentMap.getSize().height*16); |
210 | Graphics2D g2 = eventLayer.createGraphics(); | 211 | Graphics2D g2 = eventLayer.createGraphics(); |
211 | EventList events = currentMap.getEvents(); | 212 | EventList events = currentMap.getEvents(); |
212 | 213 | ||