4 Kids
Programmier Dir Dein Spiel!
4 Kids
4 Kids
4 Kids
fun getNextDropMove(column: Int): Move? {
val cells = field.getColumnCell(column).reversed()
if (cells.isEmpty()) {
return null
}
var hole: TileCell? = null
cells.forEach { nextCell ->
if (hole == null) {
if (nextCell.tile.isHole()) {
hole = nextCell
}
} else if (nextCell.tile.isTile()) {
return Move(hole!!.position, nextCell.position)
}
}
return null
}
4 Kids
4 Kids
fun main() {
val name = "stranger" // Declare your first variable
println("Hi, $name!") // ...and use it!
print("Current count:")
for (i in 0..10) { // Loop over a range from 0 to 10
print(" $i")
}
}
4 Kids
4 Kids
4 Kids
4 Kids
4 Kids
4 Kids
4 Kids
JVM
Win
Mac
Linux
JS
Browser
Win
Mac
Linux
Native
Android
IOS
KorGE
Libs
Common
Code
Kotlin
Compiler
LLVM IR
4 Kids
4 Kids
4 Kids
4 Kids
4 Kids
4 Kids
Spiel Logik
src/commonMain/kotlin/j4k/candycrush/
GameMechanics.kt
Grafik Assets
src/commonMain/resources
Tests
src/commonTest/kotlin/steps/
Step1.kt
4 Kids
4 Kids
4 Kids
4 Kids
GameField
Row
Tile
4 Kids