Resize screen in Android

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
Parkey
Regular
Posts: 69
Joined: Thu Feb 02, 2012 11:52 am
Contact:

Resize screen in Android

#1 Post by Parkey » Tue Jul 23, 2013 5:29 pm

Hello!

I have a question about building for Android. My game is configured for 800x600. I've tested the game in a smartphone and it works well, but in another one that has a bigger screen doesn't fill the whole screen.

Is it there any option so that the game resize the according to the smartphone screen?


Thanks!

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Resize screen in Android

#2 Post by PyTom » Tue Jul 23, 2013 7:46 pm

It should automatically resize to fill the smartphone screen (it may leave letterboxes or pillarboxes as appropriate). Can you use a camera to take a picture of the problem?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Parkey
Regular
Posts: 69
Joined: Thu Feb 02, 2012 11:52 am
Contact:

Re: Resize screen in Android

#3 Post by Parkey » Wed Jul 24, 2013 4:52 pm

Hello!

Here I put a couple of images. As you said, it leave pillarboxes, but I don't know why or how to solve it... The presplash screen fills the screen, maybe it's because is a bigger image? Shouldn't it to fill the whole screen anyway?
IMG-20130724-WA0003.jpg
The pillarboxes
But now I have two more questions. I hope you could help me :)

-The first one is that the game works perfect at the pc, but when I build the game for Android there is a little... bug, I think, in one imagemap. As you can see at the second image, there is always an imagemap button always selected. Every imagemap button works good, so I don't know why it's always selected :S
IMG-20130724-WA0002.jpg
First question.
The second question is about the Android build process. When I run rapt and build the game, it creates the .apk. But the cmd seems like paused at the end and do not seem to do anything. In fact, I have always to close it. But it creates the .apk, so I don't know if this is a problem or what.
I attach another image so that you can see when happens this.
cmd error.jpg
Cmd error.
Thanks PyTom!

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]