Skip to content

[Secondary] Gamepad Grid Cursor & Tile Navigation #8

Description

@MeriAlguero

[Secondary] Gamepad Grid Cursor & Tile Navigation

Priority: Secondary / Post-MVP
Labels: enhancement, gameplay, secondary

Summary

Replace mouse raycasting with a grid-based cursor controlled by a gamepad D-Pad/Analog stick to allow players to select tiles and move units.

Tasks

  • Create a visual GridCursor prefab (highlighted border or hover effect over tiles).
  • Implement a GridCursorController that listens to Maps vector input from the active player's gamepad.
  • Clamp cursor movement within grid boundaries (0 to 7 on X and Y axes).
  • Implement tile selection: pressing Submit (A) on a unit selects it; pressing Submit (A) on a highlighted tile moves the unit.
  • Pressing Cancel (B) deselects the current unit or cancels target selection.

Acceptance Criteria

  • Pushing the analog stick/D-Pad moves the cursor cleanly from tile to tile.
  • Pressing A selects units and moves them if the target tile is within valid move range.
  • Pressing B cleanly cancels tile selection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions