MarketJS
  • MarketJS
  •   Contact  
  •   Case Studies  
  •   Blog  

We built a Google Chromecast game

Jan 24, 2017
5 minute read

Alt text

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 …

What if, we could build a game with Chromecast?

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!

Q: What’s the closest thing to scoring goals?

A: Penalty kicks!

We first designed a simple wireframe diagram, to classify all objects and entities in the both parts.

Flow diagram for the game

Alt text Figure 1 - Clear separation of the flow

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’s challenges

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’s challenges

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.

Demo

Here’s a quick video. We added a few fun sound effects as well.

 

Video - Everyone loves a good finger workout

Screenshots

Alt text

Figure 2 - Goalie is chilling

.Alt text

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.

Design  Marketing  Games  Soccer  Chromecast 

About the blog

MarketJS is a company that leverages HTML5 to provide cross-platform solutions to clients. We have been serving clients since 2012.

Here's a summary of what we do:

  1. We operate a B2B marketplace for other companies and brands to license high quality games.
  2. We help companies reskin or rebrand existing games from our portfolio.
  3. We launch white label game portals for clients.
  4. We design and develop bespoke games for brands, which include advergames, lead generation games, newsgames, and social impact games
  5. We develop game solutions for taxis, airlines, hospitals, schools and more.
  6. We build playable ads for app and gaming companies

This blog is dedicated to HTML5, game development, product design, startups, and life in general.

If you're a large organization interested in using HTML5, we highly recommend reading our case studies.

How to reach us

Subscribe

Contact

Follow

Recent blog posts

5 Design Tips For Real Money HTML5 Games
4 Common Missed Opportunities in Reskinning Games for Brands and Agencies
Split Screen Chromecast HTML5 Games
Funny Faces: Spatial Memory Game for Kids
HTML5 Game for Cognitive Training
Classic Game of Tic Tac Toe with New Fun Features
4 in a Row: Two-Player HTML5 Game with a Chat System
Smart Soccer: Physics-based Game with a Smart AI
New 3D Game: Jumpee Land
Escape from Aztec: New and Exciting Endless Runner Game
Social Blackjack: Card Game with Friends
Wasteland Warriors: a real time multiplayer game
We built a Google Chromecast game
Rising Cost Per Install In The App Economy
New HTML5 Game: Monsters and Cake
New HTML5 Game: Street Fight
New HTML5 Game: Taxi Pickup
Merchandising done right
Superbowl Ad Recap : Clash of Clans
The Old Game Flow Design
New HTML5 Game: Guess The Celebrity
New HTML5 Game: Leave Me Alone
HTML5 Endless Runner: History and Design Thinking
New HTML5 Game: Snowball Office Fight
Thinking HTML5 with castle walls and moats
Thoughts on Supercell videos
New HTML5 Game: Hidden Objects Pirate Adventures
Would a brand spend $20,000 to acquire 10,000 users?
New HTML5 Game: Banana Jungle
New HTML5 Game: Snowball Fight
New HTML5 Game: Totem Volcano
New HTML5 Game: Shark Attack
Good old times with OpenRA
New HTML5 game: Pop Star Dentist 2
Indie Reality Check: Guidelines
New HTML5 game: Slots Beach
HTML5 Game Development Workshop
How we can all learn from Jay-Z
Product launch: Triumphs and Tribulations
3 AM days and ways to avoid them
When the errors keep coming, what do you do?
What a great producer does
Mini-Detachment Experiment 1: Stop reading tech news
New game: Monster Mash
Gmail is winning on mobile
Timely donation
Why software matters
Serendipity as a game mechanic
A blast from the past: Buenos Aires
Upcoming event worth attending
New game: Sector 49
Make meaning
New game: Vampire Dress Up
New game: Kitten Bounce
New game: Ships and Monsters
iOS7 Mobile Safari: Big Branding Opportunity
New game: Mouse and Cheese
New game: Whats My Brand?
New game: Royal Princess Dress Up
New game: Feed the Grandma
New game: Pop Star Dentist
Mobile first mentality
How to focus
On raising money
98 percent of everything is crap
Common Fallacy #1
Offline advertising done right
Blogging from the phone
Re-write
Avoid gatekeepers, and focus
Refresher - Mobile HTML5 browsers
A dataset that I enjoy
On the Paul Graham accent debacle

All tags (39)

Acquisition  Advertising  Artists  Artwork  Blackberry  Card  Casino  Causes  Christmas  Chromecast  Cost Per Install  Design  Entrepreneurship  Firefox  Focus  Games  HTML5  Hidden Object  Insane  Licensing  Life  Marketing  Merchandise  Multiplayer  NSFW  Opera  Pirates  Project Management  Real World  Self-Development  Server  Soccer  Strategy  Supermarket  Tizen  Travel  Venture Capital  Workshop  iOS7 
Company
  • About us
  • Jobs
  • Contact us
  • Terms of Service
  • Privacy
  • Blog
  • Case Studies
  • 12 Ways To Work With MarketJS
  • Testimonials
  • Free HTML5 Games
  • Press
  • Podcast
Services
  • Game Reskin Services
  • Marketing Games
  • Microsite Games
  • HTML5 Playable Ads
  • Messenger HTML5 Games
  • Custom Development
  • Lead Generation Games
  • Game Leaderboard System
  • Game Login System
  • Contactless Digital Signage Games
  • Digital Signage Games
  • Private Label Games
  • Telco & mobile operators
  • Airlines and IFE providers
  • Bespoke Games
  • Google Play Instant App
  • Game Feed API
  • Trade Show Games
  • Carnival Games
  • Exhibition Games
  • Corporate Event Games
Categories
  • Web Games
  • Mobile Games
  • Browser Games
  • Retro HTML5 Games
  • Classic HTML5 Games
  • HTML5 Mobile Games
  • Kids Games
  • Educational Games
  • Multiplayer Games
  • Puzzle Games
  • Branded Games
  • Mini HTML5 Games
  • Browser Games For Sale
  • Offline HTML5 Games
New solutions
  • Skill Based Games
  • NFT Game Development
  • Skill Based Game Development
  • Real Money Games
  • Skill Based Games Vendor
  • Skill Based Games Supplier
Other solutions
  • Android Games
  • iOS Games
  • iPhone Games
  • Android APK
  • iPad HTML5 Games
  • iPhone HTML5 Games
  • Android HTML5 Games
  • HTML5 Games
  • Mobile HTML Game
  • H5 Games
  • OEM Games
White Label Solutions
  • White Label Games
  • HTML5 Game Library
  • HTML5 Games Portal
  • Mobile Games Portal
  • Subscription Games Portal
  • SMS Games Portal
  • Games For Online Events, Virtual Conferences, Exhibitions and Webinars
More white label games
  • Spin The Wheel
  • Crack The Egg
  • Roll The Dice
  • Trivia
  • Board Games
  • Slots
  • Endless Runner
  • Grab and Win (Claw Machine)
  • Select a Picture and Win
  • Memory Match and Win
  • Scratch and Win
  • Gamification With Coupon Codes, Vouchers and QR Codes
Mobile Analytics
All content on this website, excluding any 3rd party logos is copyright MarketJS.com, 2011 - 2022