HexGates - Create logical circuits using hexagonal cells!

It's a sandbox game where you can create logic circuits with a limited amount of cells. While inspired by logic-arrows.io, it uses a completely different grid system and output logic.

Tutotial

To establish a connection between different regions of a map, you have to do the following steps:

  1. Select a hex type in the bottom part of the screen, using mouse wheel or digit keys on your keyboard.
  2. Place it in a line to connect one place to another, using left mouse button or touch screen.
  3. Assign outputs:
    a. On keyboard: use letters WEDXZA. LSHIFT allows to modify far outputs. Use S to switch mode. Press LCTRL to clear outputs.
    b. Using mouse/touch screen: select the same hex type as the hex you want to modify, press the desired hex on the map and start assigning outputs. Tap the hex again to switch mode. Tap any other area to finish modification.

To press a button (purple hex), clear selection by pressing ` (~) keyboard key or try to select an already selected hex type, and then press the desired button.

Cell types

  • RED: activates on 1 or more inputs
  • ORANGE: activates on 2 or more inputs
  • YELLOW: activates when no inputs
  • GREEN: activates when odd count of inputs
  • CYAN: activates when 1 or more inputs and not active or no inputs and already active
  • BLUE: activates when 2 inputs and not active or no inputs and already active
  • PURPLE: activates when 1 or more inputs or toggled with mouse click

Controls

  • Left Mouse Button / Q: place hex, press button
  • Right Mouse Button / R: remove hex
  • Middle Mouse Button: scroll map
  • 1-7 keys / mouse wheel: select hex type
  • ` (~): clear selection
  • Arrow keys: move cursor
  • D/X/Z/A/W/E: toggle respective near output
  • Shift + D/X/Z/A/W/E: toggle respective far output
  • S: toggle far output mode
  • Control/Command: clear outputs
  • Space bar: pause / unpause simulation
  • -/+: change simulation speed
  • ; (:): load map (desktop sandbox only)
  • ' ("): save map (desktop sandbox only)

Lore

It's a submission for Raylib 6.x 6-day gamegam. It has only 3 levels, whcich currently have no evaluation logic so it's impossible to "beat" them, but they're still a good way to learn mechanics.

I initially planned it as a sandbox game, where you can build anything you want. Unfortunately, in web build I couldn't implement map saving/loading mechanism. but it still exists for desktop builds (but, I couldn't upload them in time).

Thanks to Ray for such an opportunity to participate in such a competition!

GitHub repository

Leave a comment

Log in with itch.io to leave a comment.