Rex's plugins for Construct2
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About

rex_board_hexTx

Plugin, ACE table, Discussion thread
Dependence: None

Introduction
This plugin provides hexagonal physical layout for rex_board plugin.

Usage
Assign this object as the parameter in "Action:Setup layout" in rex_board plugin, to configure the board to be a hexagonal board.
Layout
There are 4 kinds of layout mode set by properties "Axis" and "Indent".
  • Left-Right
  • Left-Right + Indent first
  • Up-Down
  • Up-Down + Indent first
User could set it on properties table or by "Action:Set layout", or "Action:Set layout by number".
Position of each cell
In properties table, "X at (0,0)", and "Y at (0,0)" is the physical position mapped from logical (0,0). "Width" and "Height" is the size of chess. Or use "Action:Set position offset", "Action:Set cell size" to set these properties.

Direction
These expressions are the code of direction.
For Left-Right axis:
  • Expression:DIRLRRIGHT
  • Expression:DIRLRDOWNRIGHT
  • Expression:DIRLRDOWNLEFT
  • Expression:DIRLRLEFT
  • Expression:DIRLRUPLEFT
  • Expression:DIRLRUPRIGHT
For Up-Down axis:
  • Expression:DIRUDDOWNRIGHT
  • Expression:DIRUDDOWN
  • Expression:DIRUDDOWNLEFT
  • Expression:DIRUDUPLEFT
  • Expression:DIRUDUP
  • Expression:DIRUDUPRIGHT
These could be used used in
  • "Condition:Pick neighbor chess", or "Action:Pick neighbor chess" in rex_board plugin.

Transfer physical position from logical position
Get physical position from logical position by
  • Physical X = Expression:LXY2PX
  • Physical Y = Expression:LXY2PY

Create a free web site with Weebly
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About