diff --git a/src/main/kotlin/group/ouroboros/potrogue/builders/GameColors.kt b/src/main/kotlin/group/ouroboros/potrogue/builders/GameColors.kt index 7f66752..2dec323 100644 --- a/src/main/kotlin/group/ouroboros/potrogue/builders/GameColors.kt +++ b/src/main/kotlin/group/ouroboros/potrogue/builders/GameColors.kt @@ -4,6 +4,7 @@ import org.hexworks.zircon.api.color.TileColor object GameColors { //TODO: Change these colors to our own custom theme + //We set some colors for tiles val WALL_FOREGROUND = TileColor.fromString("#75715E") val WALL_BACKGROUND = TileColor.fromString("#3E3D32") diff --git a/src/main/kotlin/group/ouroboros/potrogue/builders/GameTileRepository.kt b/src/main/kotlin/group/ouroboros/potrogue/builders/GameTileRepository.kt new file mode 100644 index 0000000..9b96b3a --- /dev/null +++ b/src/main/kotlin/group/ouroboros/potrogue/builders/GameTileRepository.kt @@ -0,0 +1,31 @@ +package group.ouroboros.potrogue.builders + +import group.ouroboros.potrogue.builders.GameColors.FLOOR_BACKGROUND +import group.ouroboros.potrogue.builders.GameColors.FLOOR_FOREGROUND +import group.ouroboros.potrogue.builders.GameColors.WALL_BACKGROUND +import group.ouroboros.potrogue.builders.GameColors.WALL_FOREGROUND +import org.hexworks.zircon.api.data.CharacterTile +import org.hexworks.zircon.api.data.Tile +import org.hexworks.zircon.api.graphics.Symbols + +object GameTileRepository { + //Factory for creating tile objects, we use basic CharacterTiles here but Zircon can indeed use GraphicalTiles(textured) which will come later. + + //Empty Tile + val EMPTY: CharacterTile = Tile.empty() + + //Floor Tile + val FLOOR: CharacterTile = Tile.newBuilder() + .withCharacter(Symbols.INTERPUNCT) + .withForegroundColor(FLOOR_FOREGROUND) + .withBackgroundColor(FLOOR_BACKGROUND) + .buildCharacterTile() + + //Wall Tile + val WALL: CharacterTile = Tile.newBuilder() + .withCharacter('#') + .withForegroundColor(WALL_FOREGROUND) + .withBackgroundColor(WALL_BACKGROUND) + .buildCharacterTile() + +} \ No newline at end of file