Skip to content

phiat/colorbars-clj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

colorbars-clj

colorbars-clj

A Clojure library designed to make rpg-style stat bars, using clansi for coloring. There may be color correction issues when using different colorized terminals.

You want pretty, colored, terminal-outputted stat bars for your rogue-like game? Try this...

Usage

Leiningen users add this to your :dependencies in project.clj:

[colorbars-clj "0.2.0-SNAPHOT"]

then use like this:

(use 'colorbars-clj)
(def hp 9)      ;; verbose for example
(def mhp 10)
(def width 20)

(hp-bar hp mhp width)

a pretty hit point bar

see intro for more

suggestions welcome!

License

Copyright © 2013 Patrick Ryan - phiat

Distributed under the Eclipse Public License, the same as Clojure.

About

A toy Clojure library for making nice, colored stat bars for use in games. Uses clansi for color.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published