SlideShare a Scribd company logo
1 of 12
HTML 5, Social & Games




Gaurav Vaish
www.mastergaurav.com


                                                   www.edujini.com
                       Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.
Starting Bits
Are you a JavaScript geek?

Have you worked with HTML 5?

Have you ever developed any computer game?

Have you ever developed any pure-JavaScript game?




                                                               www.edujini.com
                                   Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.
HTML 5
A lot of new crazy stuff!

Key items for our purpose:
   •   Canvas
   •   Audio
   •   Video
   •   Local Storage
   •   History
   •   Offline (Cache!)




                                                         www.edujini.com
                             Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.
“Effective Development” Parameters
User Centric:
   •   Usability
   •   Fluid interface
   •   Responsiveness
   •   “Smart” capabilities


Application / Game Centric:
   •   Memory
   •   Speed
   •   Bandwidth
   •   Updates & Notifications


                                                             www.edujini.com
                                 Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.
Canvas
The real playground for all drawing and animations

Key features:
   • Drawing shapes
   • Copying an image / video
   • Transformations
         Scaling
   • Save / Restore




                                                                  www.edujini.com
                                      Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.
Canvas (contd.)
How you actually draw / animate:
   • Define border and/or fill details
   • Draw shapes
     or
     Copy image / video-snapshot
   • Fill and Stroke

   • Do this periodically
         Clean the viewport




                                                                     www.edujini.com
                                         Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.
Hands On…
Let us
   • Draw a simple rectangle,
   • Copy an image, and
   • Take snapshot of a video!




                                                             www.edujini.com
                                 Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.
Local Storage
New HTML 5 Object:
   • localStorage

Properties & Functions:
   •   getItem(“”)
   •   setItem(“”, ?)
   •   removeItem(“”)
   •   clear()
   •   key(index)
   •   length

Event:
   • onstorage

                                                      www.edujini.com
                          Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.
History
Let’s just look at github.com
Object:
   • history

Functions & properties:
   •   pushState(stateObj, title, url)
   •   replaceState(stateObj, title, url)
   •   popState()
   •   state

Events:
   • onpopstate


                                                             www.edujini.com
                                 Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.
Offline / Cache
Simplest but very powerful

Directs browser to “always” cache the files

How to do:
   <html manifest=“file”>


Contents:
   • CACHE MANIFEST
   • File-list



                                                                   www.edujini.com
                                       Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.
How to make all this “effective”?




                                                www.edujini.com
                    Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.
Contact Me
Email: gaurav.vaish@gmail.com
GTalk: gaurav.vaish
Facebook: http://on.fb.me/mastergaurav
Twitter: http://twitter.com/mastergaurav
LinkedIn: http://www.linkedin.com/in/mastergaurav

Personal: http://www.mastergaurav.com




                 Thank You!

                                                              www.edujini.com
                                  Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.

More Related Content

What's hot (6)

PEPY Wordpress workshop-01
PEPY Wordpress workshop-01PEPY Wordpress workshop-01
PEPY Wordpress workshop-01
 
Presentation11
Presentation11Presentation11
Presentation11
 
Child Theme Frameworks
Child Theme FrameworksChild Theme Frameworks
Child Theme Frameworks
 
Score intro wordpress 4.3.2013
Score intro wordpress 4.3.2013Score intro wordpress 4.3.2013
Score intro wordpress 4.3.2013
 
Your first joomla site
Your first joomla siteYour first joomla site
Your first joomla site
 
Mobile for the_people
Mobile for the_peopleMobile for the_people
Mobile for the_people
 

Viewers also liked

พระราชบัญญัติ ควบคุมอาคาร พ.ศ.2535 (ฉบับที่ 2)
พระราชบัญญัติ ควบคุมอาคาร พ.ศ.2535 (ฉบับที่ 2) พระราชบัญญัติ ควบคุมอาคาร พ.ศ.2535 (ฉบับที่ 2)
พระราชบัญญัติ ควบคุมอาคาร พ.ศ.2535 (ฉบับที่ 2)
por
 
[DSBW Spring 2009] Unit 09: Web Testing
[DSBW Spring 2009] Unit 09: Web Testing[DSBW Spring 2009] Unit 09: Web Testing
[DSBW Spring 2009] Unit 09: Web Testing
Carles Farré
 
E4 e pm_webinar_kit_webinar_presentation
E4 e pm_webinar_kit_webinar_presentationE4 e pm_webinar_kit_webinar_presentation
E4 e pm_webinar_kit_webinar_presentation
AIMFirst
 
Cost and material Estimation Summary of
Cost and material Estimation Summary ofCost and material Estimation Summary of
Cost and material Estimation Summary of
Sarita Ranabhat
 

Viewers also liked (20)

Rapid User Manual and Document generation
Rapid User Manual and Document generationRapid User Manual and Document generation
Rapid User Manual and Document generation
 
Question 3
Question 3Question 3
Question 3
 
Question 1 Evaluation
Question 1 Evaluation Question 1 Evaluation
Question 1 Evaluation
 
Process Simulate: How to display disabled messages (by clicking „Do not show ...
Process Simulate: How to display disabled messages (by clicking „Do not show ...Process Simulate: How to display disabled messages (by clicking „Do not show ...
Process Simulate: How to display disabled messages (by clicking „Do not show ...
 
Teknologix e4 e mtd webinar presentation
Teknologix e4 e mtd webinar presentationTeknologix e4 e mtd webinar presentation
Teknologix e4 e mtd webinar presentation
 
Business Law PPT
Business Law PPTBusiness Law PPT
Business Law PPT
 
Floor plans
Floor plansFloor plans
Floor plans
 
แนวทางการพิจารณากฎหมายลักษณะละเมิด
แนวทางการพิจารณากฎหมายลักษณะละเมิดแนวทางการพิจารณากฎหมายลักษณะละเมิด
แนวทางการพิจารณากฎหมายลักษณะละเมิด
 
Concept of save max boiler design (1)
Concept of save max boiler design (1)Concept of save max boiler design (1)
Concept of save max boiler design (1)
 
Spirax Sarco Product Overview
Spirax Sarco Product OverviewSpirax Sarco Product Overview
Spirax Sarco Product Overview
 
พระราชบัญญัติ ควบคุมอาคาร พ.ศ.2535 (ฉบับที่ 2)
พระราชบัญญัติ ควบคุมอาคาร พ.ศ.2535 (ฉบับที่ 2) พระราชบัญญัติ ควบคุมอาคาร พ.ศ.2535 (ฉบับที่ 2)
พระราชบัญญัติ ควบคุมอาคาร พ.ศ.2535 (ฉบับที่ 2)
 
The basics of UNIT testing
The basics of UNIT testing The basics of UNIT testing
The basics of UNIT testing
 
[DSBW Spring 2009] Unit 09: Web Testing
[DSBW Spring 2009] Unit 09: Web Testing[DSBW Spring 2009] Unit 09: Web Testing
[DSBW Spring 2009] Unit 09: Web Testing
 
Control oil mechanism
Control oil mechanismControl oil mechanism
Control oil mechanism
 
E4 e pm_webinar_kit_webinar_presentation
E4 e pm_webinar_kit_webinar_presentationE4 e pm_webinar_kit_webinar_presentation
E4 e pm_webinar_kit_webinar_presentation
 
กฎหมายว่าด้วยการอนุรักษ์ทรัพยากรธรรมชาติกับสิ่งแวดล้อม
กฎหมายว่าด้วยการอนุรักษ์ทรัพยากรธรรมชาติกับสิ่งแวดล้อมกฎหมายว่าด้วยการอนุรักษ์ทรัพยากรธรรมชาติกับสิ่งแวดล้อม
กฎหมายว่าด้วยการอนุรักษ์ทรัพยากรธรรมชาติกับสิ่งแวดล้อม
 
Cost and material Estimation Summary of
Cost and material Estimation Summary ofCost and material Estimation Summary of
Cost and material Estimation Summary of
 
ความรู้ทั่วไปเกี่ยวกับสิ่งแวดล้อม 1
ความรู้ทั่วไปเกี่ยวกับสิ่งแวดล้อม 1ความรู้ทั่วไปเกี่ยวกับสิ่งแวดล้อม 1
ความรู้ทั่วไปเกี่ยวกับสิ่งแวดล้อม 1
 
Contribuição da Eficiência Energética na Expansão da Oferta de Energia
Contribuição da Eficiência Energética na Expansão da Oferta de EnergiaContribuição da Eficiência Energética na Expansão da Oferta de Energia
Contribuição da Eficiência Energética na Expansão da Oferta de Energia
 
เอกสารฝึกอบรมผักไฮโดรโปนิกส์
เอกสารฝึกอบรมผักไฮโดรโปนิกส์เอกสารฝึกอบรมผักไฮโดรโปนิกส์
เอกสารฝึกอบรมผักไฮโดรโปนิกส์
 

Similar to jsFoo - HTML5 and Social Games

Application Quality with Visual Studio 2010
Application Quality with Visual Studio 2010Application Quality with Visual Studio 2010
Application Quality with Visual Studio 2010
Anna Russo
 
Html5 today
Html5 todayHtml5 today
Html5 today
Roy Yu
 

Similar to jsFoo - HTML5 and Social Games (20)

eLearning Suite 6 Workflow
eLearning Suite 6 WorkfloweLearning Suite 6 Workflow
eLearning Suite 6 Workflow
 
Converge SE 2011 Building a Strong Foundation
Converge SE 2011 Building a Strong FoundationConverge SE 2011 Building a Strong Foundation
Converge SE 2011 Building a Strong Foundation
 
Video in ELearning
Video in ELearningVideo in ELearning
Video in ELearning
 
Lift Introduction
Lift IntroductionLift Introduction
Lift Introduction
 
Html5 - the new kid on the block
Html5 - the new kid on the blockHtml5 - the new kid on the block
Html5 - the new kid on the block
 
Surviving a Hackathon and Beyond
Surviving a Hackathon and BeyondSurviving a Hackathon and Beyond
Surviving a Hackathon and Beyond
 
Extend your reach - making your website accessible to everyone
Extend your reach - making your website accessible to everyoneExtend your reach - making your website accessible to everyone
Extend your reach - making your website accessible to everyone
 
Mad scientist-roadshow
Mad scientist-roadshowMad scientist-roadshow
Mad scientist-roadshow
 
Video and Audio in Learning
Video and Audio in LearningVideo and Audio in Learning
Video and Audio in Learning
 
Application Quality with Visual Studio 2010
Application Quality with Visual Studio 2010Application Quality with Visual Studio 2010
Application Quality with Visual Studio 2010
 
Edtech Without a Budget
Edtech Without a BudgetEdtech Without a Budget
Edtech Without a Budget
 
Fast Track to Adobe Captivate
Fast Track to Adobe CaptivateFast Track to Adobe Captivate
Fast Track to Adobe Captivate
 
OU Media Player at a11yLDN 2012
OU Media Player at a11yLDN 2012OU Media Player at a11yLDN 2012
OU Media Player at a11yLDN 2012
 
Html5 today
Html5 todayHtml5 today
Html5 today
 
Rapid Innovative Design Notes
Rapid Innovative Design NotesRapid Innovative Design Notes
Rapid Innovative Design Notes
 
Search Engines and Flash: Secrets, Tricks, and Black Magic
Search Engines and Flash: Secrets, Tricks, and Black MagicSearch Engines and Flash: Secrets, Tricks, and Black Magic
Search Engines and Flash: Secrets, Tricks, and Black Magic
 
FocusOnLearning Conference 2016 Austin, TX
FocusOnLearning Conference 2016 Austin, TXFocusOnLearning Conference 2016 Austin, TX
FocusOnLearning Conference 2016 Austin, TX
 
Mocast Postmortem
Mocast PostmortemMocast Postmortem
Mocast Postmortem
 
CollabSphere 2018 - Java in Domino After XPages
CollabSphere 2018 - Java in Domino After XPagesCollabSphere 2018 - Java in Domino After XPages
CollabSphere 2018 - Java in Domino After XPages
 
SharePoint Conference Recap - Adoption Session
SharePoint Conference Recap - Adoption SessionSharePoint Conference Recap - Adoption Session
SharePoint Conference Recap - Adoption Session
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 

jsFoo - HTML5 and Social Games

  • 1. HTML 5, Social & Games Gaurav Vaish www.mastergaurav.com www.edujini.com Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.
  • 2. Starting Bits Are you a JavaScript geek? Have you worked with HTML 5? Have you ever developed any computer game? Have you ever developed any pure-JavaScript game? www.edujini.com Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.
  • 3. HTML 5 A lot of new crazy stuff! Key items for our purpose: • Canvas • Audio • Video • Local Storage • History • Offline (Cache!) www.edujini.com Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.
  • 4. “Effective Development” Parameters User Centric: • Usability • Fluid interface • Responsiveness • “Smart” capabilities Application / Game Centric: • Memory • Speed • Bandwidth • Updates & Notifications www.edujini.com Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.
  • 5. Canvas The real playground for all drawing and animations Key features: • Drawing shapes • Copying an image / video • Transformations  Scaling • Save / Restore www.edujini.com Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.
  • 6. Canvas (contd.) How you actually draw / animate: • Define border and/or fill details • Draw shapes or Copy image / video-snapshot • Fill and Stroke • Do this periodically  Clean the viewport www.edujini.com Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.
  • 7. Hands On… Let us • Draw a simple rectangle, • Copy an image, and • Take snapshot of a video! www.edujini.com Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.
  • 8. Local Storage New HTML 5 Object: • localStorage Properties & Functions: • getItem(“”) • setItem(“”, ?) • removeItem(“”) • clear() • key(index) • length Event: • onstorage www.edujini.com Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.
  • 9. History Let’s just look at github.com Object: • history Functions & properties: • pushState(stateObj, title, url) • replaceState(stateObj, title, url) • popState() • state Events: • onpopstate www.edujini.com Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.
  • 10. Offline / Cache Simplest but very powerful Directs browser to “always” cache the files How to do: <html manifest=“file”> Contents: • CACHE MANIFEST • File-list www.edujini.com Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.
  • 11. How to make all this “effective”? www.edujini.com Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.
  • 12. Contact Me Email: gaurav.vaish@gmail.com GTalk: gaurav.vaish Facebook: http://on.fb.me/mastergaurav Twitter: http://twitter.com/mastergaurav LinkedIn: http://www.linkedin.com/in/mastergaurav Personal: http://www.mastergaurav.com Thank You! www.edujini.com Copyright © 2011, Edujini Labs Pvt. Ltd. All rights reserved.