Workshop

4 Kids

Programmier Dir Dein Spiel!

4 Kids

4 Kids

  • Veröffentlichung 12 April 2012
  • Entwickler: King.com
  • Publisher: Activision
  • Dez. 2013 500 mio Downloads
  • Erreichte Platz 1 der meist herunterladenen iPone Spielen.
  • Einnahmen von ca  circa
    633.000 Dollar / Tag

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

  • Prägnant
  • Sicher
  • Interoperabel
  • Optimales Tooling

 

  • Frei & OpenSource

4 Kids

4 Kids

K

or

G

E

4 Kids

K

or

otlin

G

E

4 Kids

K

or

otlin

C

outines

G

E

4 Kids

or

otlin

C

outines

G

E

ame

ngine

K

4 Kids

K

or

G

E

JVM

image/svg+xml
image/svg+xml

Win

Mac

image/svg+xml
image/svg+xml

Linux

JS

Browser

image/svg+xml

Win

Mac

image/svg+xml

Linux

image/svg+xml

Native

image/svg+xml

Android

IOS

image/svg+xml

KorGE
Libs

Common
Code

Kotlin
Compiler

LLVM IR

4 Kids

IntelliJ IDEA

4 Kids

IntelliJ IDEA

4 Kids

IntelliJ IDEA

4 Kids

IntelliJ IDEA

4 Kids

IntelliJ IDEA

4 Kids

IntelliJ IDEA

Spiel Logik

src/commonMain/kotlin/j4k/candycrush/
GameMechanics.kt

Grafik Assets

src/commonMain/resources

Tests

src/commonTest/kotlin/steps/
Step1.kt

4 Kids

IntelliJ IDEA

Test Starten

4 Kids

IntelliJ IDEA

4 Kids

IntelliJ IDEA

TODO

4 Kids

GameField

Row

Tile

4 Kids

Slides

Candy Crush Workshop

By Tobse Fritz

Candy Crush Workshop

JavaLands 4 Kids - Programmier Dir Dein Spiel !

  • 477