Help with tile size and c++ please

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Svladd Cjelik
    Scout
    • Mar 2008
    • 31

    Help with tile size and c++ please

    Hey everyone,

    Been playing since the late 90's, lurking since the mid 00's, posting on and off for a few years, and now I am finally starting to code.

    I am learning C++ at university, and for my major project I am looking into some serious Roguelike development. It's shaping up to be a sci-fi Roguelike with some adventure aspects mixed in.

    I have my basic map and movement functions working and am learning my way around the curses library and to be honest, I am having a blast!

    My question however, is this.

    How do I change the tile width in the windows terminal? I want square tiles and so far google and forum searches have come up with very little.

    Thanks in advance
    DIRK GENTLY'S HOLISTIC DETECTIVE AGENCY

    We solve the whole crime. We find the whole person.
  • Patashu
    Knight
    • Jan 2008
    • 528

    #2
    I think the program does not have control over that unless it is producing its own window.
    My Chiptune music, made in Famitracker: http://soundcloud.com/patashu

    Comment

    • debo
      Veteran
      • Oct 2011
      • 2402

      #3
      Originally posted by Svladd Cjelik
      Hey everyone,

      Been playing since the late 90's, lurking since the mid 00's, posting on and off for a few years, and now I am finally starting to code.

      I am learning C++ at university, and for my major project I am looking into some serious Roguelike development. It's shaping up to be a sci-fi Roguelike with some adventure aspects mixed in.

      I have my basic map and movement functions working and am learning my way around the curses library and to be honest, I am having a blast!

      My question however, is this.

      How do I change the tile width in the windows terminal? I want square tiles and so far google and forum searches have come up with very little.

      Thanks in advance
      Curses is IMO really nasty to work with as a beginner. You could get the same flavour by rendering in something tamer (like QT), and rendering ASCII characters as fonts or whatever. You'd also have simple control of scaling as well.

      I imagine there's a way to change the tile size from within your program by sending instructions to the underlying shell, but terminals only know rows and columns. The only way to change "tile width" would be to change the font size etc. of the character set your terminal is using, AFAIK.
      Glaurung, Father of the Dragons says, 'You cannot avoid the ballyhack.'

      Comment

      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎