Making the game screen larger.

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Lightworker
Regular
Posts: 100
Joined: Sun Dec 13, 2015 2:06 pm
Projects: Detroit.exe
Skype: badthai
Contact:

Making the game screen larger.

#1 Post by Lightworker » Mon Aug 15, 2016 8:37 pm

I have a CG that is 1280 x 800 and it does not fit my game screen for obvious reasons.
If I shrink the resolution of the CG, then it messes the CG up.

How do I make my game screen larger?

Code: Select all

scene freedom with flash:
        crop (0, 150, 400, 300)
        linear 3 crop (0, 0, 1280, 800)
pause 3
Thanks in advance.

User avatar
papiersam
Veteran
Posts: 231
Joined: Fri Aug 12, 2016 2:24 pm
Completed: Gem Hunt Beta, 1/Probably, Animunch
Projects: The Panda Who Dreamed
Contact:

Re: Making the game screen larger.

#2 Post by papiersam » Mon Aug 15, 2016 10:16 pm

You mean the height/width of the entire window?

Code: Select all

init -1 python hide:

    ## These control the width and height of the screen.

    config.screen_width = 1280
    config.screen_height = 720

in the options.rpy should do the trick.

Hope that helps.

Lightworker
Regular
Posts: 100
Joined: Sun Dec 13, 2015 2:06 pm
Projects: Detroit.exe
Skype: badthai
Contact:

Re: Making the game screen larger.

#3 Post by Lightworker » Tue Aug 16, 2016 12:41 pm

Can I change it back and fourth throughout the game?
Because I have CGs that are 600 x 800 as well.

User avatar
papiersam
Veteran
Posts: 231
Joined: Fri Aug 12, 2016 2:24 pm
Completed: Gem Hunt Beta, 1/Probably, Animunch
Projects: The Panda Who Dreamed
Contact:

Re: Making the game screen larger.

#4 Post by papiersam » Tue Aug 16, 2016 1:00 pm

Not effectively, as you can see with:

Code: Select all

label start:
    
    python:
        config.screen_width = 800
        config.screen_height = 600
        
    "Size test"
    
    return
But it wouldn't be very good practice to change the size of the window during gameplay anyways.

You could just crop the CG in-game, like:

Code: Select all

image im_crop = im.Crop("CG.png", (0, 0, 800, 600))

label start:
    
    show im_crop
    "Size test"
    
    return
And that wouldn't compromise the quality of the CG. It would be better than trying to resize all the 800x600 CGs. That, or you could just upscale them all to 1280x720.

Anyways, I hope that answers your question, or at least helps you out.

Lightworker
Regular
Posts: 100
Joined: Sun Dec 13, 2015 2:06 pm
Projects: Detroit.exe
Skype: badthai
Contact:

Re: Making the game screen larger.

#5 Post by Lightworker » Tue Aug 16, 2016 7:27 pm

Thanks!

Post Reply

Who is online

Users browsing this forum: Google [Bot], Tesspolar