summary refs log tree commit diff stats
path: root/src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-02-11 21:49:49 -0500
committerStarla Insigna <hatkirby@fourisland.com>2009-02-11 21:49:49 -0500
commit325f6291557ff38d3992a0fb38a4efbc70aefa58 (patch)
tree5b81e00ccb367e6182cc9a0efb0163a048212c73 /src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java
parent2e1192dc0bccd79f00fcfef266809f3d1787aafa (diff)
downloadfourpuzzle-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-xsrc/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java3
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;
8import com.fourisland.fourpuzzle.Audio; 8import com.fourisland.fourpuzzle.Audio;
9import com.fourisland.fourpuzzle.gamestate.*; 9import com.fourisland.fourpuzzle.gamestate.*;
10import com.fourisland.fourpuzzle.Direction; 10import com.fourisland.fourpuzzle.Direction;
11import com.fourisland.fourpuzzle.Display;
11import com.fourisland.fourpuzzle.gamestate.mapview.event.HeroEvent; 12import com.fourisland.fourpuzzle.gamestate.mapview.event.HeroEvent;
12import com.fourisland.fourpuzzle.Game; 13import com.fourisland.fourpuzzle.Game;
13import com.fourisland.fourpuzzle.Layer; 14import 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