How do I create a mobile (Phone) game that can cast to a wifi enabled TV?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By BioMech101

Hello Everyone,

I have a question about how I would go about creating a game that can “Cast” or display the game to wifi enabled tv? Think of say the “cast” feature on mobile phones that can push the viewed content displayed on the phone to the tv. I would like to do this so that the phone itself becomes the controller for the game. Providing a much more immersive gaming experience for the player.

In fact, this has been the sole reason why I have not become a “mobile gamer” myself since I enjoy using the big screen. So I have been mainly a PS4 gamer. However, since my friends are all gaming on different consoles. Xbox, PS4, PC, and mobile. The only “console” they all have in common is mobile phones. So I would like to target mobile but still get the big screen expirence we get from dedicate consoles. Any ideas on how we can do this with Godot?

Thank you all so much in advance for any and all advice and help.

  • Richard

Have you seen AirConsole?

Dlean Jeans | 2019-06-07 07:45

Yes I have however, you can’t play just any mobile game using that service. It requires an additional app download, plus it’s just that a service requiring $5.00 dollars a month to use. No I’m looking for a native built-in feature we as developers can use in Godot engine in our games allowing us to upon selecting the option in game, to display the game on your tv.

Then once the game detects the tv is connected, to display virtual controls on the phone itself. This would be (pun intended) game changing! If anyone knows a way to code this using current Godot 3x please let me know. If not could we ask for this feature to be implemented in a future release? Thank you everyone for reading.

BioMech101 | 2019-06-07 09:13

I made a game with this, play it here (warning: it’s quite rough).

You don’t need to download anything at all, you could just access its website (https://www.airconsole.com/) from your phone’s browser. They got a storefront only to serves as a way to generate revenue for game developers. You can just distribute it for free like I just did above. But all of this requires your game to be HTML5.

Technically, your question means replicating something similar to that. I haven’t seen such a thing before made in Godot but I believe it’s possible.

I suggest building a Godot prototype to send data from mobile to your TV then go from there. Maybe check out the Godot networking tutorial in the docs and on YouTube.

Dlean Jeans | 2019-06-07 10:08

:bust_in_silhouette: Reply From: jagc

You must be looking for networking functions and classes. You can start there.

Here’s a link.

Thank you for the link, I will begin looking into this as I feel being able to provide a big screen experience to mobile phone gamers is the future for mobile gaming. :slight_smile: If no developers decide to work on this. I’ll do what I can to add the features to the engine or at least make it a plugin so other developers can also benefit from this.

If you have more resources, links, ideas on how to implement this please let me know!
Thank you so much everyone!

  • Richard aka BioMech101

BioMech101 | 2019-06-08 22:22