Chromecast is a digital media streaming device that connects mobile devices to a TV. It allows you to view your phone’s apps through your TV’s large display.
As such, it initially became popular as a way to project TV show and movie apps like Netflix and Hulu. Pretty soon, many other types of Cast-supported apps have been developed. And of course these included games.
And since a Cast receiver app (more on this later) is typically written in HTML5, we jumped right into the action and built a game prototype. We wrote about this experience in a previous blog post.
That first game we developed was a one-player soccer game. We have since then also created a demo for a two-player, split-screen type platform game.
But before we go into the details of that, let’s first clarify a few things about the technical aspects of the Google Cast framework.
If devices were people, then you can think of your TV and mobile device as two individuals speaking different languages, while Chromecast is the interpreter.
That is not entirely accurate though. The exchange of messages actually happens between two apps–the sender and the receiver.
The sender app is installed in a sender device like mobile phones or tablets and can be written for the Android, iOS, or Chrome platforms. On the other hand, the receiver app is written in HTML5 and works in a browser environment within Chromecast.
These two apps are the primary components of the Google Cast framework, a proprietary protocol developed by Google. There are other devices that are also Google Cast-enabled. These include certain smart TVs, TV boxes, and speakers.
The development of our split-screen game prototype for Chromecast involved two teams that worked together closely. One team was in charge of the sender app, while the other focused on the receiver app.
We registered the receiver app with Google Developers, which is a requirement if anyone wants to test any custom apps they built. You receive an application ID upon registration, which the sender app will use to launch the receiver app and send messages back and forth between them.
We decided on a simple side-scrolling runner to showcase the split-screen multiplayer capabilities of the Cast framework. The gameplay involves players tapping on the mobile screen to make a ball jump over obstacles and collect items as it moves from left to right.
The game’s sender app is installed in two different Android phones which are both connected to the same Chromecast device attached to the TV. Both players have to turn on their Cast connections and enter their names to start playing.
This is just a straightforward demo of what can be achieved in Chromecast game development. Games with stunning graphics and more complex mechanics can of course be built with the available technology.
A video showing the split screen prototype in action:
And another one, from a different angle with longer gameplay:
The potential uses of Chromecast games are virtually limitless. One area where they can prove to be highly effective would be for marketing products and services.
This is especially true for companies that engage in outdoor marketing events, such as trade shows, exhibitions, and conventions.
Among the various benefits in using Chromecast games during an event, these two stand out:
Building a game for use with Chromecast was a good challenge for our team. It involved the development of 2 separate yet related apps, namely the sender and the receiver. We learned a lot of lessons that we can apply in our future projects.
We believe the projects we have in mind will be of great interest for companies looking for interactive activities with which to engage their audience. Games played on a big screen are especially attractive to potential customers in exhibitions and other events.
We are truly excited about the possibilities of using HTML5 games and Chromecast to engage target audiences. Let us know your goals and we will do our very best to help you achieve them.
MarketJS is a company that leverages HTML5 to provide cross-platform solutions to clients. We have been serving clients since 2012.
MarketJS offers a variety of products and services:
We can be reached at support at marketjs dot com.
"We found MarketJS very easy to work with, and were impressed with how quickly they delivered and responded to our questions."
Rebecca MacDonald, VP of Marketing, Active Navigation
"MarketJS was very easy to work with, and they were always responsive to our questions and requests"
Jeff Robertson, Vice President of Technology & Operations, Carbon8
"MarketJS consistently delivers quality games on time and on budget. They are a great partner."
Scott Sheppard, President and CTO, MoZeus
"We had a great experience working with MarketJS. They were able to move fast on a tight timeline project and deliver exactly what we required with record time and quality. Definitely will be working with them on future projects to help bring our client’s digital needs to life."
Lauren Boutette, Account Director, Lumency
"MarketJS went above and beyond to deliver our projects tailored to our needs. Very swift and quick response and turnaround time. Highly recommended."
Yazan Al Tamimi, Account Manager, Socialize Agency
"Thanks so much for the work your team did. MarketJS was able to work with us to create a custom solution that exceeded our expectations."
Mike Davis, Sales Manager, ComQi
"We are really satisfied with MarketJS. They are quick to help with any troubleshooting and implementation."
Liliya H., Content Specialist, Telecoming
"It was a great pleasure working with MarketJS, they really helped thinking along with our needs. The delivery of the content was always quick and every custom request we had was possible to develop."
Willem van Ditzhuijzen, Business Development, CreativeClicks
"We are extremely happy with the content and service which MarketJS has provided us."
Matt McPherson, Director / Strategic Accounts , Wildtangent
"MarketJS provided excellent support and responded well to ad-hoc requests."
Seah Li-Wei, Project Manager, Spoon Creative
"MarketJS collaborated with our team really well and delivered quality work."
Kevin MacDonald, CTO, TeachTown
"MarketJS has been outstanding; they were patient and very helpful in delivering quality service that matches our custom game requirements."
Marlon Santos, Researcher and Senior Software Engineer, University of Sydney
"We've worked with MarketJS on a number of games now and always find them to be easy and efficient to work with."
Ben Gilbert, Project Manager, Ichi Worldwide
"We are very pleased working with MarketJS, it was far above our expectations in terms of deliverables."
Didier Seevraz, Digital Media Specialist, Lottotech
"MarketJS was fast, responsive and very customer focused. It was a pleasure to work with them."
Bryan Wursten, Senior Digital Editor, Boy Scouts of America
Our team shall be in touch within 12 hours.