[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-707732-105":59,"doc-detail-707732-en":130,"doc-similar-707732":264},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","learning-html5-game-programming-a-hands-on-guide-to-building-online-games-using-canvas-svg-and-webgl","Learning HTML5 Game Programming - A Hands-on Guide to Building Online Games Using Canvas, SVG, and WebGL","","A hands-on guide to building online games with HTML5, using core web technologies including Canvas, SVG, and WebGL. The book introduces HTML5 fundamentals and the associated JavaScript concepts, then walks through setting up a development environment and working with browser and tooling. It progresses through practical features such as notifications, drawing APIs, and user-focused interfaces, supported by annotated sample code and end-of-chapter exercises to reinforce learning through iterative code tweaks.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/learning-html5-game-programming-a-hands-on-guide-to-building-online-games-using-canvas-svg-and-webgl/707732/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/learning-html5-game-programming-a-hands-on-guide-to-building-online-games-using-canvas-svg-and-webgl/707732.png","ImageObject",300,407,{"name":92,"@type":93},"Danger Angel","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-18","2026-11-15",true,{"@type":102,"interactionType":103,"userInteractionCount":81},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What technologies does the book emphasize for building HTML5 online games?","Question",{"text":112,"@type":113},"It focuses on Canvas, SVG, and WebGL, alongside HTML5 and JavaScript fundamentals used to create interactive online experiences.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does the book support learning in each chapter?",{"text":117,"@type":113},"Each title includes fully annotated sample code and many chapters end with exercises that encourage revisiting and adjusting the code.",{"name":119,"@type":110,"acceptedAnswer":120},"What early topics are introduced before deeper game development work?",{"text":121,"@type":113},"The book starts with HTML5 basics, then moves into development environment setup and practical JavaScript learning, including core language concepts and DOM interaction.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},707732,1794702768,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":81,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":145,"preview_urls":146},962090769052,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","Learning HTML5 Game Programming  \nVisit [informit.com/learningseries](informit.com/learningseries) for a complete list of available publications.  \nThe Addison-Wesley Learning Series is a collection of hands-on programming guides that help you quickly learn a new technology or language so you can apply what you’ve learned right away.  \nEach title comes with sample code for the application or applications built in the text. This code is fully annotated and can be reused in your own projects with no strings attached. Many chapters end with a series of exercises to encourage you to reexamine what you have just learned, and to tweak or adjust the code as a way of learning.  \nTitles in this series take a simple approach: they get you going right away and leave you with the ability to walk off and build your own application and apply the language or technology to whatever you are working on.  \nLearning HTML5 Game Programming  \nA Hands-on Guide to Building Online Games Using Canvas, SVG, and WebGL  \nJames L. Williams  \nUpper Saddle River, NJ • Boston • Indianapolis • San Francisco New York • Toronto • Montreal • London • Munich • Paris • Madrid Cape Town • Sydney • Tokyo • Singapore • Mexico City  \nMany of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and the publisher was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals.  \nThe author and publisher have taken care in the preparation of this book, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein.  \nThe publisher offers excellent discounts on this book when ordered in quantity for bulk purchases or special sales, which may include electronic versions and/or custom covers and content particular to your business, training goals, marketing focus, and branding interests. For more information, please contact:  \nU.S. Corporate and Government Sales  \n(800) 382-3419  \n[corpsales@pearsontechgroup.com](corpsales@pearsontechgroup.com)[ ](corpsales@pearsontechgroup.com)For sales outside the United States, please contact:  \nInternational Sales  \n[international@pearson.com](international@pearson.com)  \nVisit us on the Web: [informit.com/aw](informit.com/aw)  \nLibrary of Congress Cataloging-in-Publication Data:  \nWilliams, James L. (James Lamar), 1981-  \nLearning HTML5 game programming : a hands-on guide to building online games using Canvas, SVG, and WebGL / James L. Williams.  \n[p. cm](p. cm).  \nISBN 978-0-321-76736-3 (pbk. : alk. paper) 1. Computer games—Programming. 2. HTML (Document markup language) I. Title.  \nQA76 .76.C672W546 2011  \n794.8’1526—dc23  \n2011027527  \nCopyright © 2012 Pearson Education, Inc.  \nAll rights reserved. Printed in the United States of America. This publication is protected by copyright, and permission must be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise. For information regarding permissions, write to:  \nPearson Education, Inc.  \nRights and Contracts Department  \n501 Boylston Street, Suite 900  \nBoston, MA 02116  \nFax (617) 671-3447  \nISBN-13: 978-0-321-76736-3  \nISBN-10: 0-321-76736-5  \nText printed in the United States on recycled paper at RR Donnelly in Crawfordsville, Indiana.  \nFirst printing September 2011  \nAssociate Publisher  \nMark Taub  \nSenior Acquisitions Editor  \nTrina MacDonald  \nDevelopment Editor  \nSonglin Qiu  \nManaging Editor  \nKristy Hart  \nProject Editor  \nAnne Goebel  \nCopy Editor  \nBart Reed  \nIndexer  \nTim Wright  \nProofreader  \nSheri Cain  \nTechnical Reviewers  \nRomin Irani Pascal Rettig Robert Schwentker  \nPubli","cbCaimZFblCAaF1V","https://ap.wps.com/l/cbCaimZFblCAaF1V","pdf",7331825,254,"English","# Table of Contents\n## Chapter 1 Introducing HTML5\n## Chapter 2 Setting Up Your Development Environment\n## Chapter 3 Learning JavaScript","[{\"question\":\"What technologies does the book emphasize for building HTML5 online games?\",\"answer\":\"It focuses on Canvas, SVG, and WebGL, alongside HTML5 and JavaScript fundamentals used to create interactive online experiences.\"},{\"question\":\"How does the book support learning in each chapter?\",\"answer\":\"Each title includes fully annotated sample code and many chapters end with exercises that encourage revisiting and adjusting the code.\"},{\"question\":\"What early topics are introduced before deeper game development work?\",\"answer\":\"The book starts with HTML5 basics, then moves into development environment setup and practical JavaScript learning, including core language concepts and DOM interaction.\"}]","Learning HTML5 Game Programming - A Hands-on Guide to Building Online Games Using Canvas, SVG, and WebGL | PDF",640,26,[147,151,155,159,163,167,171,175,179,183,187,192,197,202,207,212,217,222,227,231,235,240,245,250,255,260],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/e1d41779bacf454cb49c49e3316d6858.webp",983,1269,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/5e9e5ee69dbac052a7565ee94e89cd28.webp",982,1251,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/b2abc5cf7f1ab9d2e040678d0f97f8b9.webp",981,1250,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/4e494f1809750348fc4108428f1527b1.webp",980,1248,{"page_no":24,"url":164,"width":165,"height":166},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/bf7681fc78915bdf5399f7c30fc3bd20.webp",979,1247,{"page_no":29,"url":168,"width":169,"height":170},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/0027a0eb916b111505478ecf1915befa.webp",978,1246,{"page_no":34,"url":172,"width":173,"height":174},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/4e9681db124ce805217d6bd350f8a12c.webp",977,1245,{"page_no":39,"url":176,"width":177,"height":178},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/9f81193d65d2f1911357df1380f8c22f.webp",976,1243,{"page_no":44,"url":180,"width":181,"height":182},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/62dbc98118407added40022a6356fb3c.webp",975,1242,{"page_no":52,"url":184,"width":185,"height":186},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/6bafaf90e7b559c820018eb63c431cb7.webp",974,1241,{"page_no":188,"url":189,"width":190,"height":191},11,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/e8d04138c4b984634f01f508c42e72dd.webp",973,1240,{"page_no":193,"url":194,"width":195,"height":196},12,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/35a342d936919b284bf3f5f10f238a06.webp",972,1238,{"page_no":198,"url":199,"width":200,"height":201},13,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/233d7d8db354e4125c56f4e2e049b0ad.webp",971,1237,{"page_no":203,"url":204,"width":205,"height":206},14,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/1780930f4f0139b81eaf4412b93df62e.webp",970,1236,{"page_no":208,"url":209,"width":210,"height":211},15,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/13ec8214cb01f84a490667b6da237ac8.webp",969,1234,{"page_no":213,"url":214,"width":215,"height":216},16,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/3785901a16b0c0940f9e3b0e4de51b18.webp",968,1233,{"page_no":218,"url":219,"width":220,"height":221},17,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/e0effbfa41a70f501d84a4f842739292.webp",967,1232,{"page_no":223,"url":224,"width":225,"height":226},18,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/5763b35427c41e3a2883729aa0da12fd.webp",966,1231,{"page_no":56,"url":228,"width":229,"height":230},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/b1614fb61eaac837e7a7746539d0c786.webp",965,1229,{"page_no":46,"url":232,"width":233,"height":234},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/ea59e6db04d66a2509e77bb9300598f3.webp",964,1228,{"page_no":236,"url":237,"width":238,"height":239},21,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/ea1477bda38646fdebc3e367dfefed24.webp",963,1227,{"page_no":241,"url":242,"width":243,"height":244},22,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/51ac0cd207a06e3b80daa18005b90be3.webp",962,1226,{"page_no":246,"url":247,"width":248,"height":249},23,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/53b324660eb58cbf89f03141b18ab401.webp",961,1224,{"page_no":251,"url":252,"width":253,"height":254},24,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/6799b969eace4dc620543f32625dd7ed.webp",960,1223,{"page_no":256,"url":257,"width":258,"height":259},25,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/0dcbe98a0e3b22ca72e47c0a27e7ba97.webp",959,1222,{"page_no":145,"url":261,"width":262,"height":263},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-15/bfe625e0e2d9af450254aef7e1e0af59.webp",958,1220,{"list":265,"token":66},[266,272,278,284,290,296,302,308,315,321],{"doc_id":267,"doc_title":268,"file_type":137,"home_preview_img_url":269,"slug":270,"view_count":14,"category_name":30,"create_tm":271},721612,"Complete JavaScript - Professional Tips and Tricks","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230025022643/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796175479&Signature=wDwZ15Mmmft%2Byu4wWEr6WEheXtg%3D","complete-javascript-professional-tips-and-tricks",1795060939,{"doc_id":273,"doc_title":274,"file_type":137,"home_preview_img_url":275,"slug":276,"view_count":188,"category_name":30,"create_tm":277},345931,"HiQPdf Software - HTML to PDF Converter Library","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911145611/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796175479&Signature=j9j%2FVx6sHvXnHCC5Cd%2FPq%2FCLMVE%3D","hiqpdf-software-html-to-pdf-converter-library",1790059426,{"doc_id":279,"doc_title":280,"file_type":137,"home_preview_img_url":281,"slug":282,"view_count":31,"category_name":30,"create_tm":283},7629,"Learning PHP MySQL And JavaScript With jQuery CSS And HTML5","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229696633210/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796175479&Signature=zmjHq2rTugDlgSfInZzJ64IlzoM%3D","learning-php-mysql-and-javascript-with-jquery-css-and-html5",1776332408,{"doc_id":285,"doc_title":286,"file_type":137,"home_preview_img_url":287,"slug":288,"view_count":81,"category_name":30,"create_tm":289},706878,"HTML5 Games - Novice to Ninja","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230015637314/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796175479&Signature=8h7ESI9qhKWbJDPj4ctqhV6m45E%3D","html5-games-novice-to-ninja",1794694509,{"doc_id":291,"doc_title":292,"file_type":137,"home_preview_img_url":293,"slug":294,"view_count":145,"category_name":30,"create_tm":295},81639,"Render in the Loop Vector Graphics Generation via Visual Self Feedback","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808633727/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796175479&Signature=s7WTLktlT0OBVhVqZ1rKijktu1Y%3D","render-in-the-loop-vector-graphics-generation-via-visual-self-feedback",1784175049,{"doc_id":297,"doc_title":298,"file_type":137,"home_preview_img_url":299,"slug":300,"view_count":19,"category_name":30,"create_tm":301},694785,"SVG Tutorial - SVG - Getting Started","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230006941458/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796175479&Signature=%2FUiVuHass7gmlqllev5ETcBE%2BRg%3D","svg-tutorial-svg-getting-started",1794347758,{"doc_id":303,"doc_title":304,"file_type":137,"home_preview_img_url":305,"slug":306,"view_count":8,"category_name":30,"create_tm":307},760749,"JavaScript for Impatient Programmers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044250531/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796175479&Signature=qPnwpHJaruN55H8v9uFlWPhk5Vc%3D","javascript-for-impatient-programmers",1795908973,{"doc_id":309,"doc_title":310,"file_type":137,"home_preview_img_url":311,"slug":312,"view_count":313,"category_name":30,"create_tm":314},7281,"Html5 Javascript and Jquery","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229696611480/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796175479&Signature=yFcnqmaf1INuzrc9cwl1X0Z7xFM%3D","html5-javascript-and-jquery",59,1776330359,{"doc_id":316,"doc_title":317,"file_type":137,"home_preview_img_url":318,"slug":319,"view_count":203,"category_name":30,"create_tm":320},391877,"Interview Questions to Ask a Web Developer - Screening Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917710240/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796175479&Signature=RN85OOEQY5%2FwPQdH7dCfJfGeRrI%3D","interview-questions-to-ask-a-web-developer-screening-guide",1790359764,{"doc_id":322,"doc_title":323,"file_type":137,"home_preview_img_url":324,"slug":325,"view_count":223,"category_name":30,"create_tm":326},391785,"Interview Questions to Ask a Senior Software Engineer (.NET) - Xobin","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917406593/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796175479&Signature=WDnaCv3t3nM6C2r4DCv12W85O2o%3D","interview-questions-to-ask-a-senior-software-engineer-net-xobin",1790358731]