Home / Companies / PubNub / Blog / Post Details
Content Deep Dive

Turn Your Phone into a Motion Controller with Polymer

Blog post from PubNub

Post Details
Company
Date Published
Author
Michael Carroll
Word Count
3,495
Company Posts That Month
7
Language
English
Hacker News Points
-
Post removed?
No
Summary

The blog post explores how to transform a smartphone into a motion controller for real-time gaming using PubNub and Polymer, akin to devices like the Wii or Xbox Kinect. It provides a step-by-step guide on creating a customizable Material Design gamepad called PubMote, which can interface with HTML5 games through a web browser. The PubMote can feature various elements such as arrow keys, accelerometer bars, and action buttons, and is built using Polymer's Core and Paper elements following the Material Design standards. The process involves installing and importing necessary Polymer components and PubNub elements, setting up data binding and event handling, and incorporating accelerometer functionality to detect device tilts and shakes. The guide concludes by demonstrating how to integrate the PubMote with JavaScript-based browser games, exemplified through a modification of a Pac-Man game to use the PubMote for input.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 4 221 43 19 +92%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.