diff --git a/gradle.properties b/gradle.properties index 0a87b64..f6dabd3 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -korVersion=0.9.0 +korVersion=0.9.1 jtranscVersion=0.5.15 -kotlinVersion=1.1.2 +kotlinVersion=1.1.2-3 vertxVersion=3.3.3 diff --git a/korge-tic-tac-toe/resources/font/AdobeFnt18.lst b/korge-tic-tac-toe/resources/font/AdobeFnt18.lst deleted file mode 100644 index 7a1a410..0000000 --- a/korge-tic-tac-toe/resources/font/AdobeFnt18.lst +++ /dev/null @@ -1,17 +0,0 @@ -%!Adobe-FontList 1.18 -%Locale:0xc0a - -%BeginFont -Handler:DirectoryHandler -FontType:Invalid -OutlineFileName:C:\Users\soywiz\projects\kor\korge-samples\korge-tic-tac-toe\resources\Font\font.fnt -FileModTime:1488980629 -%EndFont - -%BeginFont -Handler:DirectoryHandler -FontType:Invalid -OutlineFileName:C:\Users\soywiz\projects\kor\korge-samples\korge-tic-tac-toe\resources\Font\font.png -FileModTime:1488980629 -%EndFont - diff --git a/korge-tic-tac-toe/resources/font/font.fnt b/korge-tic-tac-toe/resources/font/font.fnt deleted file mode 100644 index eaa4dee..0000000 --- a/korge-tic-tac-toe/resources/font/font.fnt +++ /dev/null @@ -1,188 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/korge-tic-tac-toe/resources/font/font.png b/korge-tic-tac-toe/resources/font/font.png deleted file mode 100644 index 56d6421..0000000 Binary files a/korge-tic-tac-toe/resources/font/font.png and /dev/null differ diff --git a/korge-tic-tac-toe/resources/particle/particle.pex b/korge-tic-tac-toe/resources/particle/particle.pex deleted file mode 100644 index bdf5fee..0000000 --- a/korge-tic-tac-toe/resources/particle/particle.pex +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/korge-tic-tac-toe/resources/particle/texture.png b/korge-tic-tac-toe/resources/particle/texture.png deleted file mode 100644 index ee4dbd1..0000000 Binary files a/korge-tic-tac-toe/resources/particle/texture.png and /dev/null differ diff --git a/korge-tic-tac-toe/resources/tiled/sample.tmx b/korge-tic-tac-toe/resources/tiled/sample.tmx deleted file mode 100644 index 43446f0..0000000 --- a/korge-tic-tac-toe/resources/tiled/sample.tmx +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - -1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, -1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, -1,1,18,18,18,18,1,49,50,51,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, -1,1,18,18,18,18,1,65,66,67,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, -1,1,18,18,18,1,1,81,82,83,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, -1,1,1,18,18,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, -1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, -1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, -1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, -1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, -1,1,1,1,1,1,1,1,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1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, -1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, -1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, -1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, -1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, -1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/korge-tic-tac-toe/src/com.soywiz.korge.tictactoe/BoardMediator.kt b/korge-tic-tac-toe/src/com.soywiz.korge.tictactoe/BoardMediator.kt index 9408af6..f68b042 100644 --- a/korge-tic-tac-toe/src/com.soywiz.korge.tictactoe/BoardMediator.kt +++ b/korge-tic-tac-toe/src/com.soywiz.korge.tictactoe/BoardMediator.kt @@ -77,10 +77,10 @@ suspend fun Board.reset() { //cell.view?.removeAllComponents() cell.set(Chip.EMPTY) cell.highlight(false) - cell.view!!.scale = 1.0 - cell.view!!.alpha = 1.0 - cell.view["chip"]!!.scale = 1.0 - cell.view["chip"]!!.alpha = 1.0 + cell.view?.scale = 1.0 + cell.view?.alpha = 1.0 + cell.view["chip"]?.scale = 1.0 + cell.view["chip"]?.alpha = 1.0 } } diff --git a/korge-tic-tac-toe/src/com.soywiz.korge.tictactoe/TicTacToe.kt b/korge-tic-tac-toe/src/com.soywiz.korge.tictactoe/TicTacToe.kt index b0ab48c..30ef8c3 100644 --- a/korge-tic-tac-toe/src/com.soywiz.korge.tictactoe/TicTacToe.kt +++ b/korge-tic-tac-toe/src/com.soywiz.korge.tictactoe/TicTacToe.kt @@ -2,10 +2,8 @@ package com.soywiz.korge.tictactoe import com.soywiz.korge.Korge import com.soywiz.korge.animate.AnLibrary -import com.soywiz.korge.bitmapfont.BitmapFont import com.soywiz.korge.input.mouse import com.soywiz.korge.resources.Path -import com.soywiz.korge.resources.ResourcesRoot import com.soywiz.korge.scene.Module import com.soywiz.korge.scene.Scene import com.soywiz.korge.view.Container @@ -33,8 +31,7 @@ object TicTacToeModule : Module() { // Controller class TicTacToeMainScene( - @Path("main.swf") val mainLibrary: AnLibrary, - @Path("font/font.fnt") val font: BitmapFont + @Path("main.ani") val mainLibrary: AnLibrary ) : Scene() { val board = Board(3, 3) lateinit var game: Game