Skip to content

Commit

Permalink
0.2.4 release prepared
Browse files Browse the repository at this point in the history
  • Loading branch information
trolley813 committed Dec 24, 2017
1 parent 815a865 commit f0cf029
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Binary file added android/assets/holidays/santahat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion core/src/ru/hyst329/openfool/MainMenuScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ internal class MainMenuScreen(private val game: OpenFoolGame) : Screen {
private val stage: Stage = Stage(FitViewport(800f, 480f))
private var logo: Sprite = Sprite(Texture(Gdx.files.internal("logos/mm_logo.png")))
private var hammerAndSickle: Sprite = Sprite(Texture(Gdx.files.internal("holidays/hammersickle.png")))
private var santaHat: Sprite = Sprite(Texture(Gdx.files.internal("holidays/santahat.png")))
private var canStart: Boolean = false
private val newGameButton: VisTextButton
private val settingsButton: VisTextButton
Expand Down Expand Up @@ -94,7 +95,9 @@ internal class MainMenuScreen(private val game: OpenFoolGame) : Screen {
hammerAndSickle.draw(game.batch)
}
Holiday.NEW_YEAR -> {
// TODO: New Year logo
santaHat.setCenter(165f, 430f)
santaHat.setScale(0.3f)
santaHat.draw(game.batch)
}
null -> {

Expand Down
1 change: 1 addition & 0 deletions core/src/ru/hyst329/openfool/OpenFoolGame.kt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class OpenFoolGame : Game() {
assetManager.load("suits/$s.png", Texture::class.java, param)
}
assetManager.load("holidays/hammersickle.png", Texture::class.java, param)
assetManager.load("holidays/santahat.png", Texture::class.java, param)
this.setScreen(MainMenuScreen(this))
}

Expand Down

0 comments on commit f0cf029

Please sign in to comment.