Companion

object Companion

Types

Link copied to clipboard
class EmptyBullet(initialX: Int, initialY: Int) : PlayerBullet
Link copied to clipboard

Properties

Link copied to clipboard

Key events which is used to store the functions of the game player instance when player pressing the specified keys.

Link copied to clipboard
const val STATE_LEFT: Int = 1
Link copied to clipboard
const val STATE_RIGHT: Int = 2
Link copied to clipboard
const val STATE_STILL: Int = 0
Link copied to clipboard
const val VK_C: Int = 67

Constant for the "C" key.

Link copied to clipboard
const val VK_DOWN: Int = 40

Constant for the non-numpad down arrow key.

Link copied to clipboard
const val VK_ESCAPE: Int = 27

Constant for the ESCAPE virtual key.

Link copied to clipboard
const val VK_LEFT: Int = 37

Constant for the non-numpad left arrow key.

Link copied to clipboard
const val VK_RIGHT: Int = 39

Constant for the non-numpad right arrow key.

Link copied to clipboard
const val VK_SHIFT: Int = 16

Constant for the SHIFT virtual key.

Link copied to clipboard
const val VK_UP: Int = 38

Constant for the non-numpad up arrow key.

Link copied to clipboard
const val VK_X: Int = 88

Constant for the "X" key.

Link copied to clipboard
const val VK_Z: Int = 90

Constant for the "Z" key.

Functions

Link copied to clipboard

Register the key events in keyEvents to KeyBinds.