hjkl-hero

module
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2026 License: MIT

README

HJKL Hero

A terminal based Vim motion game.

Screenshots

Main Menu

Tutorial Example

Rogue Mode Example

Theme Editor

Vertical Mode

Motivation

I started playing around with Vim motions and saw there were games and tutorials but they were either too slow to get to the point or simply were too easy, so I thought why not learn by building a game that I'd enjoy playing, while giving others another way to practice?

Terminal Recommendations

JetBrains Mono

HJKL Hero is designed to be played in a terminal with Unicode support and a monospaced font. If the UI appears misaligned or borders don't line up correctly, try switching to a programming font. I develop and test the game using JetBrains Mono, so it is the recommended font.

Features

  • Learn Vim motions while having fun.
  • Text editing tutorial levels.
  • Procedurally generated dungeon levels.
  • XP/Leveling system with a leaderboard to track stats.

Installation

Download the latest prebuilt binary for your operating system from:

Windows: Extract the downloaded .zip file and run hjkl-hero.exe.

Linux: Extract the downloaded archive and run hjkl-hero. Optionally, add the executable to your PATH to run it from anywhere.

Install with Go

Install the binary directly to your GOBIN:

go install github.com/BosBJJ/hjkl-hero@latest
For Developers (Build from source)
git clone https://github.com/BosBJJ/hjkl-hero.git
cd hjkl-hero
go build -o hjkl-hero ./cmd/hjkl-hero 

How To Play

Tutorial Mode

Follow the instructions on the screen and use :w and :wq to verify map completion.

Rogue Mode

Progress through bigger maps with more enemies on screen with each level, evade or kill enemies until you arrive to the ^ stairs, progress through floors and upgrade your stats to make it easier to reach the end.

Basic Controls

  • h j k l - Move
  • x - Delete character below cursor/MELEE ATK - attack enemy one tile away
  • d + direction - Delete characters in specified direction/RANGED ATK- 4 tile directional ranged attack
  • space - Interact
  • :q! - Quit out of the game
  • :help Show all commands

Current Game Modes

Switch through them by going to the OPTIONS screen and selecting Game Type

  • Tutorial - Goes through currently written commands, gives a small playground to try them out on.
  • Rogue - Use commonly used keys to kill monsters, progress through maps, gather loot and explore procedurally generated maps.
  • Hardcore - Rogue mode where you only have 1 point of health, taking any damage will end the run.

Roadmap

  • More tutorial maps/additional commands
  • Items in rogue mode
  • Character classes
  • Endless mode - when finished you can restart while keeping some stats, increases difficulty
  • Improve enemy pathing

Contributing

Submit a pull request

If you'd like to contribute, please fork the repository and open a pull request to the main branch.

Acknowledgements

Directories

Path Synopsis
cmd
hjkl-hero command
internal
ui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL