Portrait Android games

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
Saiffyros
Newbie
Posts: 14
Joined: Sun May 21, 2017 10:13 pm
Contact:

Portrait Android games

#1 Post by Saiffyros »

Hey, newbie here.

I'm struggling with a game for android.

I'm trying to make this game in that portrait format, so I've set the resolution to:

Init python:
gui.init (390, 700)

That gave the screen format I wanted, but I had to adjust some things.

The text length so that it would be limited to that screen, the in-game menus had to be limited too. Same with the names of the characters...

I was able to do that.

But the load/save button doesn't apear to me I can't find a way to configure it into my screen 390-700

Is there a GUI and screen code ready for portrait games?

I have in mind games like these:

https://play.google.com/store/apps/deta ... L&hl=pt-br

https://play.google.com/store/apps/deta ... n&hl=pt-br

Is that what I really have to do? Is there an easier way?

Rodrigo
Attachments
Screenshot_2017-05-21-22-12-39-423.jpeg
Screenshot_2017-05-21-22-12-34-611.jpeg
Sem título.png
Last edited by Saiffyros on Mon May 22, 2017 11:49 am, edited 1 time in total.

User avatar
Divona
Miko-Class Veteran
Posts: 678
Joined: Sun Jun 05, 2016 8:29 pm
Completed: The Falconers: Moonlight
Organization: Bionic Penguin
itch: bionicpenguin
Contact:

Re: Portrait Android games

#2 Post by Divona »

All the screen menu haven't been made to fit portrait size of the mobile, I'm afraid. You could show only "screen navigation" first, and then Save, Load, and other screens after the interaction. If it's me, I probably just wipe all the default UI screens and do a redesign of the UI that would work better on mobile devices.

EDIT: Wondering if Legacy UI would work better in mobile portrait mode, though.
Completed:
Image

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Portrait Android games

#3 Post by Imperf3kt »

I did just this (in 720x1280, but it will scale) for my project.
I'll give you the screens code later after I get out of work. Shoot me a PM if I don't reply within 2 days - I probably forgot.

For an approximate example, follow the Cooking with RWBY link in my signature.
You probably could just copy what I have in the 0.05a PC versionand modify it to suit your needs as its not archived.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
Taleweaver
Writing Maniac
Posts: 3428
Joined: Tue Nov 11, 2003 8:51 am
Completed: Metropolitan Blues, The Loyal Kinsman, Daemonophilia, The Dreaming, The Thirteenth Year, Adrift, Bionic Heart 2, Secrets of the Wolf, The Photographer
Projects: The Pilgrim's Path, Elspeth's Garden, Secret Adventure Game!
Organization: Tall Tales Productions
Location: Germany
Contact:

Re: Portrait Android games

#4 Post by Taleweaver »

Moved to Ren'Py Questions.
Scriptwriter and producer of Metropolitan Blues
Creator of The Loyal Kinsman
Scriptwriter and director of Daemonophilia
Scriptwriter and director of The Dreaming
Scriptwriter of Zenith Chronicles
Scriptwriter and director of The Thirteenth Year
Scriptwriter and director of Romance is Dead
Scriptwriter and producer of Adrift
More about me in my blog
"Adrift - Like Ever17, but without the Deus Ex Machina" - HigurashiKira

Saiffyros
Newbie
Posts: 14
Joined: Sun May 21, 2017 10:13 pm
Contact:

Re: Portrait Android games

#5 Post by Saiffyros »

Imperf3kt wrote:I did just this (in 720x1280, but it will scale) for my project.
I'll give you the screens code later after I get out of work. Shoot me a PM if I don't reply within 2 days - I probably forgot.

For an approximate example, follow the Cooking with RWBY link in my signature.
You probably could just copy what I have in the 0.05a PC versionand modify it to suit your needs as its not archived.
Hey. Amazing. I've download your game and I think it's exactly what I need.

I really appreciate your help. I'll PM you for sure.

Saiffyros
Newbie
Posts: 14
Joined: Sun May 21, 2017 10:13 pm
Contact:

Re: Portrait Android games

#6 Post by Saiffyros »

Divona wrote:All the screen menu haven't been made to fit portrait size of the mobile, I'm afraid. You could show only "screen navigation" first, and then Save, Load, and other screens after the interaction. If it's me, I probably just wipe all the default UI screens and do a redesign of the UI that would work better on mobile devices.

EDIT: Wondering if Legacy UI would work better in mobile portrait mode, though.
Hey,

You're right. Using the Legacy UI you just have to change this under the options.rpy:

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

config.screen_width = 720
config.screen_height = 1280

It scales all the rest for you. Not the same with the new GUI.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Portrait Android games

#7 Post by Imperf3kt »

I was writing a how-to on duplicating the gui I suggested, but I ran out of enthusiasm.

I plan to make the gui publicly available as a boilerplate once finished anyway.

Do feel free to contact me if you want help adjusting it to suit.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]