The Chromecast USB device is thought of as a device to beam content onto big screens. Its mainly used to beam movies and tv shows.
This “casting” action is done by sending bits wirelessly from phone to the Chromecast USB, attached to a giant screen.
Being techies, we often wonder …
We spent some time looking into the documentation. It appears that the phone (sender) can be programmed to beam data to the chromecast USB (receiver).
Based on this simple theory, we could build an interactive game. We could have the user do stuff on the phone, and the results get beamed onto the big screen.
We set about building a soccer game. We narrowed it down to the one thing people love seeing: goals!
A: Penalty kicks!
We first designed a simple wireframe diagram, to classify all objects and entities in the both parts.
We split the project into 2 teams.
Team A worked on the sender app, using Android, Cordova and HTML5.
Team B worked on the receiver app, using HTML5.
Both teams had to work on their own challenges, as well as communicate with each other by setting common standards for transmitting data.
Team A had to build an Android (Cordova) app that has a small HTML5 game, that allows user to flick the soccer ball. The view captures that of the player, looking down at his/her feet.
It was initially tricky to place the game into Cordova, but we managed it with a good frame rate. The next challenge was having the phone sync up to the Chromecast USB. This involved careful, step by step following of instructions in the developer docs. Once that’s done, we had to translate that into actionable code in the app.
Team B had to design the goalie and goal scene. They had to figure out where the ball should come out from, given a set of data passed over by the sender app.
Based on the data (generated by the user’s swiping motion), the soccer ball should move/curl accordingly, into the goal net.
To make it challenging, we had a rather smart goalie who would block the user’s shots, deflecting it away from the goal.
The game loop is kept simple: score as many goals with 10 shots. Once the 10 shots are done, we show a quick rundown of results.
The entirety of the receiver is written using HTML5, our top choice for multi-platform code.
Here’s a quick video. We added a few fun sound effects as well.
Video - Everyone loves a good finger workout
Figure 2 - Goalie is chilling
Figure 3 - Goalie working hard to block that shot
We hope that this article serves as a blueprint for future innovation in Chromecast games.
Ping us if you’ve made something cool, and would like to share it.
|Split Screen Chromecast HTML5 Games||07-21-2017|
|Funny Faces: Spatial Memory Game for Kids||05-17-2017|
|HTML5 Game for Cognitive Training||05-15-2017|
|Classic Game of Tic Tac Toe with New Fun Features||04-05-2017|
|4 in a Row: Two-Player HTML5 Game with a Chat System||04-04-2017|
|Smart Soccer: Physics-based Game with a Smart AI||04-03-2017|
|New 3D Game: Jumpee Land||04-03-2017|
|Escape from Aztec: New and Exciting Endless Runner Game||03-31-2017|
|Social Blackjack: Card Game with Friends||02-13-2017|
|Wasteland Warriors: a real time multiplayer game||11-28-2016|
|We built a Google Chromecast game||02-02-2016|
|Rising Cost Per Install In The App Economy||08-24-2015|
|New HTML5 Game: Monsters and Cake||07-24-2015|
|New HTML5 Game: Street Fight||05-15-2015|
|New HTML5 Game: Taxi Pickup||04-18-2015|
|Merchandising done right||02-28-2015|
|Superbowl Ad Recap : Clash of Clans||02-10-2015|
|The Old Game Flow Design||01-29-2015|
|New HTML5 Game: Guess The Celebrity||01-20-2015|
|New HTML5 Game: Leave Me Alone||01-12-2015|
|HTML5 Endless Runner: History and Design Thinking||12-14-2014|
|New HTML5 Game: Snowball Office Fight||11-15-2014|
|Thinking HTML5 with castle walls and moats||11-07-2014|
|Thoughts on Supercell videos||11-05-2014|
|New HTML5 Game: Hidden Objects Pirate Adventures||11-03-2014|
|Would a brand spend $20,000 to acquire 10,000 users?||10-09-2014|
|New HTML5 Game: Banana Jungle||10-08-2014|
|New HTML5 Game: Snowball Fight||10-08-2014|
|New HTML5 Game: Totem Volcano||09-12-2014|
|New HTML5 Game: Shark Attack||07-22-2014|
|Good old times with OpenRA||05-24-2014|
|Announcement: We acquired Artists&Clients||05-16-2014|
|New HTML5 game: Pop Star Dentist 2||05-06-2014|
|Indie Reality Check: Guidelines||03-23-2014|
|New HTML5 game: Slots Beach||01-27-2014|
|HTML5 Game Development Workshop||01-21-2014|
|How we can all learn from Jay-Z||12-22-2013|
|Product launch: Triumphs and Tribulations||12-12-2013|
|3 AM days and ways to avoid them||12-11-2013|
|When the errors keep coming, what do you do?||12-05-2013|
|What a great producer does||12-03-2013|
|Mini-Detachment Experiment 1: Stop reading tech news||11-29-2013|
|New game: Monster Mash||11-23-2013|
|Gmail is winning on mobile||11-20-2013|
|Why software matters||11-06-2013|
|Serendipity as a game mechanic||11-05-2013|
|A blast from the past: Buenos Aires||10-28-2013|
|Upcoming event worth attending||10-28-2013|
|New game: Sector 49||10-25-2013|