OUYA Controls Screen

A place for Ren'Py tutorials and reusable Ren'Py code.
Forum rules
Do not post questions here!

This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Post Reply
Message
Author
User avatar
PyTom
Ren'Py Creator
Posts: 16096
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:

OUYA Controls Screen

#1 Post by PyTom »

I've been porting Moonlight Walks over to OUYA, and I created a small controls screen, since the Ren'Py controls are
not all that discoverable. The screen looks like:
ouya-20130707-234201.png
It is shown when the game first starts, and then is accessible through an action from the main menu.

You can grab the code from:

https://github.com/renpytom/moonlight-w ... /game/ouya

To use it, add:

Code: Select all

    call ouya_instructions_once
to the splashscreen, and add code like:

Code: Select all

            if renpy.variant('ouya'):
                textbutton _("Help") action Start('ouya_instructions')
            else:
                null
to the main menu. (This code requires RAPT 6.15.8+, which will be out in the next few days.)

Feel free to customize this as you see fit.

(Thanks go to Sapphi and Komi for suggestions on the look and wording.)
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: No registered users