Skip to content
vr-thi edited this page Jul 17, 2017 · 1 revision

Jenga:

The tower consists of an amount wooden Jenga blocks. You have to try to pull out one of the blocks and put it on the top of the tower in the right angle. After that it is the next players turn. The first player who doesn´t manage to put a brick on top because the tower falls loses the game.

Controls:

The game can be played with keyboard and Fly-Stick. You can use the Fly-Stick or Fly-Stick Simulator to grab or push bricks out of the jenga tower. After placing the brick in the correct angle (+/- 30°) you can change the player with "o". If the tower falls while your turn you lose and your score increases.

Scripts:

Script InteractableItem: Collision detection of bricks with ground. If one brick except the first row and the brick you selected touches the ground you lose.

Script TopBlockPlacer: Calculates the angle of you placed brick. Only in correct angle you can change Player (+/- 30°).

Script TowerInteractivity:

  • Function select(): selects the first brick you want to select and highlights it with green colour. You can´t choose another one.
  • Function deselect(): deselects the selected brick. Only called when changing the player.
  • Function changeRow(): changes the row of the selected brick to the top one. If the top row has already 3 bricks it adds one Row to the tower.
  • Function NrOfPlayers(): returns number of players.
  • Function GetHeight(): returns the current height of the tower.

Clone this wiki locally