Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Game Size  (Read 661 times)

MrSidnet

  • Bay Watcher
    • View Profile
Game Size
« on: April 22, 2007, 09:00:00 pm »

I'm wondering if there's a way to make the play screen larger. Essentially, i want the game larger, while still retaining the original dimensions.

*Full screen stretches things (plus I like to have the Wiki open while I'm playing)
*I have been playing with the init.txt file, making the screen size 800x375.  Exactly 1.25 times larger than the default.  This makes the text funny too, so I even went as far as to create a new font file called curses_800x375.bmp (editing the original bmp file and making it 1.25x larger too, of course).  That completely gibbled the text making it unreadable.

Right now my resolution is at 1152x864.  By changing my desktop resolution to a horrendous 800x600 makes it perfect for playing, but of course that is laborious to change and messes with my desktop icons.  Another solution is to quit my bitching and play like a man, but I would prefer most other alternatives.

Thanks for hearing my chatter.

Logged

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: Game Size
« Reply #1 on: April 22, 2007, 09:19:00 pm »

Hrm, if you stretch the original font file from 128x192 to exactly 160x240, it should size correctly with the new window.  What does it look like when you do that?
Logged
The Toad, a Natural Resource:  Preserve yours today!

MrSidnet

  • Bay Watcher
    • View Profile
Re: Game Size
« Reply #2 on: April 22, 2007, 10:53:00 pm »

I suppose the only way to describe it, is it looks like everything is made of neon lights.

I made the curses_640x300.bmp from 128x192 to 160x240.

Then I changed the init file:


code:
 
[WINDOWEDX:800]
[WINDOWEDY:375]
[FONT:curses_800x375.bmp]

Edit:  Oh right, forgot to link to the screen shot: http://img153.imageshack.us/my.php?image=tempzi7.jpg

and heres the bmp file I used (because I accidentally uploaded it to image shack...) http://img241.imageshack.us/my.php?image=curses800x375ka2.png

Edit 2:

Oh, I think because Photoshop did some anti aliasing; that's why it looks funny. Just gotta figure out how to resize without it doing that...

[ April 23, 2007: Message edited by: MrSidnet ]

Logged

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: Game Size
« Reply #3 on: April 22, 2007, 11:08:00 pm »

Yeah, that's just the transparent color magenta bleeding through.  You can rescale it in plain old MS Paint to avoid that I think, though I'm sure Photoshop probably has an option somewhere.
Logged
The Toad, a Natural Resource:  Preserve yours today!

MrSidnet

  • Bay Watcher
    • View Profile
Re: Game Size
« Reply #4 on: April 22, 2007, 11:12:00 pm »

Yea PS has the option
Resample Image: Nearest Neighbour
(along with a thwack load of others.
It's still looking weird, so I'll try MS Paint.
Logged

MrSidnet

  • Bay Watcher
    • View Profile
Re: Game Size
« Reply #5 on: April 22, 2007, 11:23:00 pm »

no, It's still the same.

[WINDOWEDX:800]
[WINDOWEDY:375]
[FONT:curses_800x375.bmp]

curses_800x375.bmp
has the dimensions 160x240

Right now the text has difficulties scaling properly (Im assuming) making the letters have thick and thin lines.

Logged

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: Game Size
« Reply #6 on: April 22, 2007, 11:44:00 pm »

What do you mean by the 'same'?  Is it still purple?  Or is that gone at least?

If you are at 800x375, each glyph will be 10x15.  That should work, and it should be transfering the bmp pixel to pixel without stretching.  Looking at a screen would help if the bmp looks fine.

[ April 23, 2007: Message edited by: Toady One ]

Logged
The Toad, a Natural Resource:  Preserve yours today!

MrSidnet

  • Bay Watcher
    • View Profile
Re: Game Size
« Reply #7 on: April 23, 2007, 12:06:00 am »

Sorry, "the same" meant it looked as if I did no editing at all, and simply resized it.  Here's an example here. You can really see what I mean in the zoomed in part, on the w and s. http://img218.imageshack.us/my.php?image=temp2ne0.jpg

Looking at the 160x240 image, I can visually see that the glyphs are 10x15 (I counted).

Logged

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: Game Size
« Reply #8 on: April 23, 2007, 12:38:00 am »

What do the glyphs look like in the BMP?  Stretching 8x12 to 10x15 will create artifacts like that by itself.  Do you have a link to the curses bmp you are using?  If the glyphs look bad in the BMP, you'll get the same thing in the game.  If they are bad there, you'll have to clean them manually.  If the BMP is fine and the screen itself is the only problem, I'll have to fix it up.

[ April 23, 2007: Message edited by: Toady One ]

Logged
The Toad, a Natural Resource:  Preserve yours today!

MrSidnet

  • Bay Watcher
    • View Profile
Re: Game Size
« Reply #9 on: April 23, 2007, 12:45:00 am »

Yea there are artifacts in the 800x375 bmp file.  Maybe I can tinker with another ratio, and find something more suitable.  Otherwise, I think I might attempt to manually reconstruct it.  Although, I dont know how well that would work...

Anyway, here's the file here: http://img181.imageshack.us/my.php?image=curses800x375rk3.png

I remember reading in another post that the graphics are hard wired into the code, so that prevents scaling, zoom, and other fancy effects.  I understand the amount of work to code for all of that.  I would have to agree with most people here, bug fixes and interface issues/shortcuts are probably time better spent.

[ April 23, 2007: Message edited by: MrSidnet ]

Logged

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: Game Size
« Reply #10 on: April 23, 2007, 01:19:00 am »

It'll auto-squish/stretch when the dims don't match up, but yeah, most of the graphics and interfaces are hard-coded right now at 80x25.  It's something I eventually want to change, but it'll take some time.  I'll probably just convert several interface screens every release and when they are all done then allowing customization won't be that difficult.  I have some code sitting around for proportional fonts etc. from my half-finished graphics projects that I can clean up and use for things like that.  The interfaces are the main obstacle.
Logged
The Toad, a Natural Resource:  Preserve yours today!

Core Xii

  • Bay Watcher
    • View Profile
Re: Game Size
« Reply #11 on: April 23, 2007, 01:22:00 am »

I avoided my icons getting messed up all the time by having my desktop position them automatically (top to bottom, left to right).

The 640x300 resolution was too small for me too, but a 2x zoom of 1280x600 was too big... so I changed my resolution to 1280x600. It takes some time to get used to, but was worth it.

Logged
Reality is for people who lack imagination