Roguelike Movement

RLDBAR Sidenote #2: Vim Keys and Diagonal Movement

2 minute read Published:

Vim key movement, and moving diagonally
In this second sidenote to the main RLDBAR tutorial, we’re going to make a very small, but very useful change: diagnonal movement, and allowing users to move via VIM keys. The first, diagonal movement, opens up many more tactical options over just being able to move in the cardinal directions (north, south, east, west), and will give the player more flexibility. Adding in support for VIM key movement (h, j, k, l, y, u, b, n) will give our game a bit more reach to users without full keyboards (not that we’ve implemented number pad support yet… :P ).