Beginning Facebook. Development. Game Apps. Wayne Graham. Apress*



Similar documents
Practical Android Projects Lucas Jordan Pieter Greyling

Programming 3D Applications with HTML5 and WebGL

Beginning Nokia Apps. Development. Qt and HTIVIL5 for Symbian and MeeGo. Ray Rischpater. Apress. Daniel Zucker

Learning HTML5 Game Programming

Beginning Android Web

RARITAN VALLEY COMMUNITY COLLEGE ACADEMIC COURSE OUTLINE. CISY 105 Foundations of Computer Science

Course Information Course Number: IWT 1229 Course Name: Web Development and Design Foundation

IE Class Web Design Curriculum

GAME DESIGN AND DEVELOPMENT TECHNOLOGY. Game Design and Development Technology I

WEB DEVELOPMENT COURSE (PHP/ MYSQL)

Best practices building multi-platform apps. John Hasthorpe & Josh Venman

«compl*tc IDIOT'S GUIDE. Android App. Development. by Christopher Froehlich ALPHA. A member of Penguin Group (USA) Inc.

The Definitive Guide to Google AdWords

Retool your HTML/JavaScript to go Mobile

Information Technology Cluster

WAYNESBORO AREA SCHOOL DISTRICT CURRICULUM INTRODUCTION TO COMPUTER SCIENCE (June 2014)

"Charting the Course... MOC B Server Virtualization with Windows Hyper-V and System Center. Course Summary

Interactive solutions

Table of Contents. Adding Build Targets to the SDK 8 The Android Developer Tools (ADT) Plug-in for Eclipse 9

HTML5. Turn this page to see Quick Guide of CTTC

Elgg 1.8 Social Networking

Learn GameSalad for. ios: Game. Development for. iphone, ipad, and HTML5. David Guerineau. Apress*

WEB DEVELOPMENT IA & IB (893 & 894)

Web Foundations Series Internet Business Associate

ERIE COMMUNITY COLLEGE COURSE OUTLINE A. COURSE TITLE: CS WEB DEVELOPMENT AND PROGRAMMING FUNDAMENTALS

Firefox for Android. Reviewer s Guide. Contact us: press@mozilla.com

Domains and Competencies

The "Eclipse Classic" version is recommended. Otherwise, a Java or RCP version of Eclipse is recommended.

Interactive Multimedia Courses-1

Animation Overview of the Industry Arts, AV, Technology, and Communication. Lesson Plan

Revision Number: 1. CUFANM301A Create 2D digital animations

Mobility Introduction Android. Duration 16 Working days Start Date 1 st Oct 2013

COURSE SYLLABUS EDG 6931: Designing Integrated Media Environments 2 Educational Technology Program University of Florida

CMS, CRM, shopping carts, Web applications

Computer Apps for Careers (#5000)

Responsive Web Design Creative License

Beginning Android 4. Games Development. Mario Zechner. Robert Green

Social Application Guide

Java 7 Recipes. Freddy Guime. vk» (,\['«** g!p#« Carl Dea. Josh Juneau. John O'Conner

Creating a Poster in Powerpoint

Mobile Game and App Development the Easy Way

ACE: After Effects CS6

COMPUTER SCIENCE (5651) Test at a Glance

About Blue Sky Sessions

AdRadionet to IBM Bluemix Connectivity Quickstart User Guide

PCCC PCCC Course Description

Schneps, Leila; Colmez, Coralie. Math on Trial : How Numbers Get Used and Abused in the Courtroom. New York, NY, USA: Basic Books, p i.

SMART NOTEBOOK 10. Instructional Technology Enhancing ACHievement

Information Technology Career Field Pathways and Course Structure

SYST35300 Hybrid Mobile Application Development

Specialized Android APP Development Program with Java (SAADPJ) Duration 2 months

Web Development I & II*

Wilson Area School District Planned Course Guide

Oracle Data Integrator 11g: Integration and Administration

WEB PAGE DESIGN AND DEVELOPMENT 2 COURSE CODE: 5033 (COURSE NAME CHANGES TO ADVANCED WEB DESIGN AND DEVELOPMENT IN )

CG: Computer Graphics

WEB DEVELOPMENT IMMERSIVE GA.CO/WDI

Beginning Windows 8. Mike Halsey Microsoft MVP for Windows. Apress*

How To Develop A Mobile App With Phonegap

How to start with 3DHOP

Preface. Motivation for this Book

Film and Television. Film and Television 299

Facebook Twitter YouTube Google Plus Website . o Zooming and Panning. Panel. 3D commands. o Working with Canvas


Developing Microsoft SharePoint Server 2013 Advanced Solutions

Mobile App Install Ads

Getting Started with the new VWO

JavaFX Session Agenda

Media Arts & Technologies

COMMUNICATION TECHNOLOGY COURSE SUMMARIES

Advanced Web Development SCOPE OF WEB DEVELOPMENT INDUSTRY

Expert Oracle Enterprise

Develop Computer Animation

Michael Noel. Colin Spence. SharePoint UNLEASHED. 800 East 96th Street, Indianapolis, Indiana USA

Power Tools for Pivotal Tracker

[PROFILE / INTRO] 3D Multimedia, Graphics & Web Services

GRD100 Graphic Design Principles I

Dreamweaver CS5. Module 1: Website Development

INTRODUCTION TO INFORMATION TECHNOLOGY CSIT Class Hours: 3.0 Credit Hours: 4.0 Laboratory Hours: 3.0 Revised: August 24, 2012

BIRT: A Field Guide to Reporting

Learning Web App Development

Course 20489B: Developing Microsoft SharePoint Server 2013 Advanced Solutions OVERVIEW

ERIE COMMUNITY COLLEGE COURSE OUTLINE A. COURSE NUMBER CS WEB DEVELOPMENT & PROGRAMMING I AND TITLE:

601/8498/X IAO Level 3 Certificate in Web Design and Development (RQF)

Load and Performance Load Testing. RadView Software October

Unity web- player issues in browsers & in client system

Programming Social Applications

Deploying Cisco Unified Contact Center Express Volume 1

Bridging the Gap: from a Web App to a Mobile Device App

RFP# ADDENDUM No. 1 Questions and Answers

Transcription:

Beginning Facebook Game Apps Development Wayne Graham Apress*

Contents Contents at a Glance... About the Author About the Technical Reviewer Acknowledgments Introduction iv x xi xii xiii Chapter 1: First Steps 1 Gaming in the Browser 1 HTML5 and the Canvas Element 2 Game Terminology 3 Game Views 3 General Terms 8 Game Genres 12 Summary 14 Chapter 2: JavaScript Boot Camp 15 What Is JavaScript? 15 Testing Out JavaScript 18 Firebug 18 Chrome 19 Debugging 20 Comments 21 Data Types 22 Variables 23 Operators 25 Assignment 25 Comparison 26 Arithmetic Operators 26 Logical Operators 27 String Operators 28 Special Operators 30 Data Structures 32 Array 32 Flow Control 34 V

CONTENTS if..else 34 Switch Loops 36 Functions 38 Variable Scope Special Variables 41 Document Object Model 42 Guess the Number Game 43 Getting Good with JavaScript 46 Summary Chapter 3: It's All About Context: Canvas Basics 49 Canvas: The 2D Context 50 First Shape 51 Triangles and Lines 55 Translation and Rotation 58 Simple Motion 60 Debugging Tools 66 What About Mobile? 67 Summary 68 Chapter 4: The Plan: Idea to Design 69 The Design Process 69 Brainstorming 70 Identify Your Audience 71 Identify Your Competition 72 Artistic Direction 73 Project Review 74 Feature Cull 75 Planning Milestones 76 Code 77 Deployment 77 User Testing 78 Launch 78 Summary 79 Chapter 5: Essential Game Components 81 Types of Graphics 81 Graphics Tools 83 Graphics Design Process 85 Sketch 85 Refine 86 Produce 86 Techniques 90 Lighting 90 Depth 94 Color 95 Focus and Blur 96 Movement 96 Drop Shadow 97 35 39 47 vi

i. CONTENTS Audio 97 Creating Sounds 98 Software 98 Hardware 100 Recording 101 Royalty-Free Sounds 102 Preparing Your Audio 103 Understanding Copyright 104 Creative Commons BY(CC-BY) 105 Creative Commons BY Share Alike (CC-BY-SA) 105 Creative Commons 0 (CCO) 105 Gnu General Public License (GPL) 105 Apache 2.0 106 MIT 106 Dual/Multi License 106 Summary 107 Chapter 6: Your First Game: Alien Turtle Invasion 109 Defining the Game 109 Define the Audience 110 Identify the Competition 110 Boilerplate 111 Coding the Engine 114 Adding Textures 136 Adding Sound 140 Summary 143 Chapter 7: Social Components and HTML5 Games 145 Social Mechanics in Games 146 Tic-Tac-Toe 146 The Rules 150 The Board 150 Keeping Track 152 Adding Some Intelligence 156 Going Further 161 Next Steps 170 Summary 170 Chapter 8: Introducing the Facebook Platform 171 The Facebook Development Platform 171 Creating Applications with the Facebook Platform 173 Basic Info 176 Cloud Services 176 Facebook Integration 177 Software Development Kits 178 Your First Facebook Application 178 Prerequisites 178 Facebook Setup 183 Using the Graph API 187 Searching 193 Vli

CONTENTS Facebook Query Language Facebook SDKs Setting up a Development Environment 198 Summary 200 Chapter 9: Facebook Developer Tools 201 Developer App Open Graph Protocol Open Graph Types Open Graph Stories Aggregations Achievements Credits Credit Callback Troubleshooting Roles Insights Summary Chapter 10: Creating Your First Facebook Game 231 Project Planning 231 Define the Rules 231 Identify Your Audience 232 Competition Developing the HTML Game 234 Project Setup 234 Game Code 235 Facebook Integration 249 2.0 Ideas 262 Summary 263 Chapter 11: Adding Facebook Components 265 Adding Levels 265 Adding a Timer 271 Working with Databases on Heroku 273 Recording Puzzle Information 278 Tracking Achievements 283 Assigning Achievements 287 Customizing the Authorization Dialog 288 Creating Your Privacy Policy 290 Defining Your Terms of Service 291 Adding Your Terms of Service Policy 292 Deployment Concerns 293 Summary 298 Chapter 12: Launching Your Game 301 Website 301 WordPress 302 WordPress Plugins 306 Social Plugins 308 Facebook Pages 308 130 198 201 201 203 206 209 210 216 223 223 224 226 229 232 viii

CONTENTS Customizing Your Page 314 Promoting Your Page 320 Advertising 321 Content 321 Plug 321 Targeting Ads 322 Interaction 322 Cycle II 323 Cycle III 323 Driving Likes 323 Create a WordPress Category 324 Facebook Tabs 324 Launch Checklist 329 Content and Style 329 Functional Testing 330 Finishing Touches 330 Ongoing 330 Summary 330 Chapter 13: HTML5 Game Engines 333 Development 333 Open Source 334 Canvas Advanced Animation Toolkit 334 Cocos2d.js 340 Crafty 343 LimeJS 346 melonjs 350 Play My Code 350 PixieEngine 351 Paid Game Engines 352 ImpacUS 353 Isogenic 353 Summary 354 Chapter 14: Facebook Fuzed 355 Game 355 Tiled Map Editor 356 melonjs Framework 362 Creating the Game files 362 Background 373 Facebook Score API 390 Summary 402 Index 405 ix