Author Topic: Anyone know how to program the console like screen on the forum like this one?  (Read 2195 times)

Nekoninja

  • Newcomer
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Hello RPG programmers,

I found a game called zomband at http://www.roguetemple.com/2007/05/10/zomband-and-no-this-is-not-an-angband-variant-p/

The only thing that caught my interesting is console like screen in the middle of the game screen. Does anyone know how to do that? It look like a challenge to code it.

Thank you for any replies,

Bow to me, your evil programmer or I will destroy the internet with my 'delete' button!

Eben

  • Rogueliker
  • ***
  • Posts: 339
  • Karma: +0/-0
  • Controversializer
    • View Profile
    • SquidPony!
Done.

https://github.com/SquidPony

In Java anyway. My library (SquidLib) provides a standard JComponent that you can put text onto in a grid, like in a console but with more control. This means you can add that component to any Swing interface however you like.

In Attack The Geth (my 7dRL this year) I used three panels so that my map, text log, and stats would each have their own font and grid size.