Firewall Defense: a simple web game illustrating how to integrate the Google Play game services web API.
To use this code, you must create your own application instance and client ID's in the Developer Console. Please refer to the instructions on how to set up Google Play game services for a web application for more information.
After setting up your own application and getting your own Client ID and setting up achievements and leaderboards, place your ID's in the gameservices.js
file. Additionally, put your Client ID in the data-clientid
attribute of the SignIn button in the index.html
file.
To run on your local machine, run python -m SimpleHTTPServer
in the firewall-defense
directory and then navigate to localhost:8000
in your web browser.
Copyright (C) 2013 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.