Author Topic: libjcsi window size  (Read 6709 times)

penguin_buddha

  • Newcomer
  • Posts: 19
  • Karma: +0/-0
    • View Profile
    • Email
libjcsi window size
« on: September 05, 2012, 03:21:53 PM »
Can someone familiar with the libjcsi library answer a simple question? What are the bounds on which I can draw without throwing errors? The window seems to be 25 X 80, but only throws errors when the 80 is exceeded. It seems to let me draw off the screen in the other direction as far as I want.

Anyone know what the true screen size is and whether its changeable?

XLambda

  • Rogueliker
  • ***
  • Posts: 208
  • Karma: +0/-0
    • MSN Messenger - tau_iota@live.de
    • View Profile
    • The Weird Rogue
Re: libjcsi window size
« Reply #1 on: September 05, 2012, 05:50:37 PM »
Can someone familiar with the libjcsi library answer a simple question? What are the bounds on which I can draw without throwing errors? The window seems to be 25 X 80, but only throws errors when the 80 is exceeded. It seems to let me draw off the screen in the other direction as far as I want.

Anyone know what the true screen size is and whether its changeable?

The window dimensions are standard 80x25. Height and width are static attributes of WSwingConsoleInterface (assuming you want to use the swing console) and thus aren't changeable. Unless, of course, you rewrite the class to fit your desired size.

yam655

  • Rogueliker
  • ***
  • Posts: 59
  • Karma: +0/-0
    • View Profile
Re: libjcsi window size
« Reply #2 on: September 06, 2012, 05:06:49 AM »
Can someone familiar with the libjcsi library answer a simple question? What are the bounds on which I can draw without throwing errors? The window seems to be 25 X 80, but only throws errors when the 80 is exceeded. It seems to let me draw off the screen in the other direction as far as I want.

Anyone know what the true screen size is and whether its changeable?

libjcsi has some idiosyncrasies. Might I recommend one of the alternative libraries?

I know of at least two alternatives to libjcsi.

Eben Howard (one of the authors of libjcsi) has a more Java-like alternative in SquidLib:

    http://squidpony.com/not-games/squidlib/

I've written a small library to help with development of Java Roguelike games. Though we'll officially be releasing later this month, everything is ready now. I'm just trying to have it in Maven Central on the release date.

    https://sites.google.com/site/blackenlib/try-it-out (Java WebStart examples.)

Cheers,
Steven Black

penguin_buddha

  • Newcomer
  • Posts: 19
  • Karma: +0/-0
    • View Profile
    • Email
Re: libjcsi window size
« Reply #3 on: September 06, 2012, 02:20:35 PM »
Thanks for the links. Ill check out SquidLib for now, and Ill be sure to check out Blacken after the official release!