Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
epic-64 committed Oct 18, 2024
1 parent 03bc23d commit 0f0f505
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/ScalaScape/ScalaScape.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ end main

class ScalaScape(forceTerminal: Boolean):
private var running = true
private val terminal: Terminal = (new LanternBimbo).makeTerminal(forceTerminal)
private val terminal: Terminal = LanternBimbo.makeTerminal(forceTerminal)
private val screen: Screen = new TerminalScreen(terminal)
private val graphics: TextGraphics = screen.newTextGraphics()
private val state = new GameState
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/ScalaScape/utils/LanternBimbo.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import java.awt.{Font, GraphicsEnvironment}
import javax.swing.JFrame
import javax.swing.WindowConstants.EXIT_ON_CLOSE

class LanternBimbo {
object LanternBimbo {
def makeTerminal(forceTerminal: Boolean): Terminal = {
def getFont(family: String, style: Int, size: Int): Font = {
val availableFonts = GraphicsEnvironment.getLocalGraphicsEnvironment.getAvailableFontFamilyNames
Expand Down

0 comments on commit 0f0f505

Please sign in to comment.