SlideShare a Scribd company logo
Creating a Game using Qt Quick

         Angry Developer
Creating a Game using Qt Quick

1. Cutting Edge UI
  1 QML file & images

2. JavaScript binding
   1 JavaScript file

3. Putting it Together
Game: Angry Developer




Playing                 Moving
Angry Developer: Missed




                       Missed
Angry
Angry Developer: Hit “Hurrah!”




                       Destroyed
Happy
QML Elements
State Change




Playing   Angry   Happy   Pig Moving   Pig Destroyed
State Change
Ball Animation




Bouncing Ball Animation   Throw Transition
Bouncing Ball Animation
Throw Transition
QML Logic (2 Timers)


  Pig’s Random
  Movement



  Hit or Miss
Timer Pig’s Movement
Timer Hit or Miss
Step 2. Rich Mobile Apps


                    JavaScript Expressions
                    Import JavaScript Files
                    RSS, XML, JSON, REST
                    Multi Threaded
     JavaScript
JavaScript to build Rich Features

       Qt Container



        JavaScript    QML




          C++ is not Required
JavaScript file: Clock.js
QML Binding
Putting the Game Together




     In 5 easy Steps
Step1/5: Create New Application

1   Create new Mobile Qt Application
    Select Qt for PR1.3
    Remove files
    • mainwindow.ui
    • mainwindow.h
    • mainwindow.cpp
2/5 Add Qt Declarative
2   In Project.pro file add    QT += declarative
                              In our case add this to
                              NativeQMLJS.pro
3/5 Add Qt Declarative

3   In main.cpp, include QtDeclarative and add code
4/5 Add Files


             QML file ,
    Add      Images and        as resources
             JavaScript File


* Make sure your JavaScript file name is lowercase
5/5 Add the Binding

Add the binding in QML file and call JavaScript
 import "clock.js" as MyClock
 …
 Text {
  id:txttime
  text: MyClock.gettime()
 }
Demo

       Angry Developer
3 Steps for FAST development on

                         Develop
 Download                 Logic
  Qt SDK                JavaScript



            Create UI
              QML
Thank You
                    Download MeeGo
                          http://meego.com/downloads


            Get Qt SDK with Qt Quick
                                    http://get.qt.nokia.com



                          Know MADDE
                         http://wiki.maemo.org/MADDE


                                    Questions
                Rajesh.Lal@nokia.com @rajeshlalnokia

More Related Content

PDF
Fun with QML and JavaScript: Embedded Linux Conference 11th April 2011, Hotel...
PPTX
Gradle : An introduction
PDF
Gradle by Example
ODP
Intro to QML / Declarative UI
PDF
In defense of GWT-RPC By Colin Alworth
PDF
Gradle presentation
PDF
Managing dependencies with gradle
Fun with QML and JavaScript: Embedded Linux Conference 11th April 2011, Hotel...
Gradle : An introduction
Gradle by Example
Intro to QML / Declarative UI
In defense of GWT-RPC By Colin Alworth
Gradle presentation
Managing dependencies with gradle

What's hot (20)

PDF
Gradle 3.0: Unleash the Daemon!
PPTX
Android presentation - Gradle ++
PDF
About OpenGL and Vulkan interoperability (XDC 2020)
PPTX
Qt for beginners part 5 ask the experts
 
PDF
Gradle - the Enterprise Automation Tool
PDF
Gradle Introduction
PDF
An Introduction to Gradle for Java Developers
PDF
Overview of the open source Vulkan driver for Raspberry Pi 4 (XDC 2020)
PDF
Gradle in 45min
PDF
[Image Results] Java Build Tools: Part 2 - A Decision Maker's Guide Compariso...
PPTX
ng4 webpack and yarn in JHipster
PDF
Pragmatic software development in kdb+
PDF
Devoxx Belgium 2017 - easy microservices with JHipster
PDF
QtQuick Day 4
PDF
Gradle - time for a new build
PDF
Cloud Spin - building a photo booth with the Google Cloud Platform
ODP
Gradle: The Build System you have been waiting for!
PDF
Idiomatic Gradle Plugin Writing - GradleSummit 2016
PDF
Gradle build tool that rocks with DSL JavaOne India 4th May 2012
PDF
Javantura v4 - Android App Development in 2017 - Matej Vidaković
Gradle 3.0: Unleash the Daemon!
Android presentation - Gradle ++
About OpenGL and Vulkan interoperability (XDC 2020)
Qt for beginners part 5 ask the experts
 
Gradle - the Enterprise Automation Tool
Gradle Introduction
An Introduction to Gradle for Java Developers
Overview of the open source Vulkan driver for Raspberry Pi 4 (XDC 2020)
Gradle in 45min
[Image Results] Java Build Tools: Part 2 - A Decision Maker's Guide Compariso...
ng4 webpack and yarn in JHipster
Pragmatic software development in kdb+
Devoxx Belgium 2017 - easy microservices with JHipster
QtQuick Day 4
Gradle - time for a new build
Cloud Spin - building a photo booth with the Google Cloud Platform
Gradle: The Build System you have been waiting for!
Idiomatic Gradle Plugin Writing - GradleSummit 2016
Gradle build tool that rocks with DSL JavaOne India 4th May 2012
Javantura v4 - Android App Development in 2017 - Matej Vidaković
Ad

Viewers also liked (20)

PPTX
Test driving QML
PPTX
Valentine Twister
PPTX
Youth Ministry Illustrations - Easter Twister
PPTX
TCEA 2016 creating a game design sequence
PPTX
Fetc 2016 creating a game design sequence
PDF
Best Practices in Qt Quick/QML - Part II
 
PDF
[Webinar] 10 Keys to Ensuring Success for Your Next Qt Project
 
PDF
Game On: Creating User Assistance for Gamified Products
PDF
Best Practices in Qt Quick/QML - Part IV
 
PPTX
Best Practices in Qt Quick/QML - Part I
 
PDF
Gone in-30-seconds- Simple Past Board Game
PDF
Creating Game-like Engagement for Learning
PPTX
Number Guessing Game - A 8085 Project
PPTX
PRESENT SIMPLE GAME REVIEW
PPTX
Game Passive Voice Simple Past
PPT
Past simple game 1
PDF
Making a Game Design Document
PDF
Guide to creation of game concept document
PPTX
Alzheimer's disease
PPTX
Dementia
Test driving QML
Valentine Twister
Youth Ministry Illustrations - Easter Twister
TCEA 2016 creating a game design sequence
Fetc 2016 creating a game design sequence
Best Practices in Qt Quick/QML - Part II
 
[Webinar] 10 Keys to Ensuring Success for Your Next Qt Project
 
Game On: Creating User Assistance for Gamified Products
Best Practices in Qt Quick/QML - Part IV
 
Best Practices in Qt Quick/QML - Part I
 
Gone in-30-seconds- Simple Past Board Game
Creating Game-like Engagement for Learning
Number Guessing Game - A 8085 Project
PRESENT SIMPLE GAME REVIEW
Game Passive Voice Simple Past
Past simple game 1
Making a Game Design Document
Guide to creation of game concept document
Alzheimer's disease
Dementia
Ad

Similar to Angry Developer: Creating a Game in QML and JavaScript for MeeGo N9 @iRajLal (20)

PPS
QML & JavaScript on MeeGo: Flourish Conference 2nd Apr 2011, at UIC Chicago @...
PPSX
Build Cutting edge Mobile Apps using QML and JavaScript for MeeGo N9: Linux F...
PDF
QtQuick Day 1
PDF
Necessitas - Qt on Android - from FSCONS 2011
ODP
PDF
Building the QML Run-time
PDF
Epam mobile meetup 2014 10-15 qt cross-platform solution for mobile development
PDF
Serving QML applications over the network
PDF
PDF
Qt and QML performance tips & tricks for Qt 4.7
PDF
Qt quick (qml)
PPTX
Qt quick at Cybercom Developer Day 2010 by Alexis Menard 7.9.2010
PDF
Welcome - Introduzione - Burkhard Stubert
PDF
Cutest technology of them all - Forum Nokia Qt Webinar December 2009
PPT
Qt Technical Presentation
PDF
Qt Quick in depth
PPT
cpp-2013 #18 Qt Part 2
PPTX
Guided overview of software frameworks qt framework
PPTX
Qt for beginners part 1 overview and key concepts
 
QML & JavaScript on MeeGo: Flourish Conference 2nd Apr 2011, at UIC Chicago @...
Build Cutting edge Mobile Apps using QML and JavaScript for MeeGo N9: Linux F...
QtQuick Day 1
Necessitas - Qt on Android - from FSCONS 2011
Building the QML Run-time
Epam mobile meetup 2014 10-15 qt cross-platform solution for mobile development
Serving QML applications over the network
Qt and QML performance tips & tricks for Qt 4.7
Qt quick (qml)
Qt quick at Cybercom Developer Day 2010 by Alexis Menard 7.9.2010
Welcome - Introduzione - Burkhard Stubert
Cutest technology of them all - Forum Nokia Qt Webinar December 2009
Qt Technical Presentation
Qt Quick in depth
cpp-2013 #18 Qt Part 2
Guided overview of software frameworks qt framework
Qt for beginners part 1 overview and key concepts
 

More from Raj Lal (20)

PDF
Executive Presence Workshop - Gina Grahame
PDF
Creativity, AI, and Human-Centered Innovation
PDF
TEAMCAL AI - PITCH DECK Voice and AI.pdf
PDF
Teamcalendar.AI presskit 1.0
PPTX
UX Workshop: How to design a product with great user experience
PDF
Workshop Stanford University - 28th July 2018 on Website Optimization
PDF
The art and science of website optimization
PPTX
UX Workshop - Talent 2 Talent Conference, Ryerson University, Toronto Canada,...
PDF
Why Toastmasters - The story of a fisherman
PDF
Build Amazing Camera Apps for Superphones - Silicon Valley Code Camp, 6 Oct, ...
PDF
Evolution of User Interface - Digital Web & Design Innovation Summit SFO 20 S...
PPS
Designing Killer Apps for Mobile Devices ModevUX May 9 2013 mclean VA - @iRajLal
PPT
Html5 Whats around the bend
PPTX
Accessible design with html5 JS Everywhere 2012 Oct 26 Fairmont Hotel San Jos...
PPTX
Accessibility on Windows Phone - Windows Phone Meetup at Nokia - 16 October @...
PPTX
Accessible design - HOW Interactive Design Conference Washington DC SEPT 27-2...
PPSX
Accessible Design with HTML5 - HTML5DevConf.com May 21st San Francisco, 2012 ...
PPT
Developing Apps for Nokia Windows Phone VSLiv Conference May 15, 2012 @iRajLal
PPT
Upgrade Your Website to HTML5 - VSLive Conference New York @iRajLal
PDF
Fun with silverlight4 Table of Content @iRajLal
Executive Presence Workshop - Gina Grahame
Creativity, AI, and Human-Centered Innovation
TEAMCAL AI - PITCH DECK Voice and AI.pdf
Teamcalendar.AI presskit 1.0
UX Workshop: How to design a product with great user experience
Workshop Stanford University - 28th July 2018 on Website Optimization
The art and science of website optimization
UX Workshop - Talent 2 Talent Conference, Ryerson University, Toronto Canada,...
Why Toastmasters - The story of a fisherman
Build Amazing Camera Apps for Superphones - Silicon Valley Code Camp, 6 Oct, ...
Evolution of User Interface - Digital Web & Design Innovation Summit SFO 20 S...
Designing Killer Apps for Mobile Devices ModevUX May 9 2013 mclean VA - @iRajLal
Html5 Whats around the bend
Accessible design with html5 JS Everywhere 2012 Oct 26 Fairmont Hotel San Jos...
Accessibility on Windows Phone - Windows Phone Meetup at Nokia - 16 October @...
Accessible design - HOW Interactive Design Conference Washington DC SEPT 27-2...
Accessible Design with HTML5 - HTML5DevConf.com May 21st San Francisco, 2012 ...
Developing Apps for Nokia Windows Phone VSLiv Conference May 15, 2012 @iRajLal
Upgrade Your Website to HTML5 - VSLive Conference New York @iRajLal
Fun with silverlight4 Table of Content @iRajLal

Recently uploaded (20)

PDF
Approach and Philosophy of On baking technology
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Unlocking AI with Model Context Protocol (MCP)
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
KodekX | Application Modernization Development
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Encapsulation theory and applications.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Cloud computing and distributed systems.
PDF
cuic standard and advanced reporting.pdf
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
sap open course for s4hana steps from ECC to s4
PDF
NewMind AI Weekly Chronicles - August'25 Week I
Approach and Philosophy of On baking technology
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Network Security Unit 5.pdf for BCA BBA.
Unlocking AI with Model Context Protocol (MCP)
“AI and Expert System Decision Support & Business Intelligence Systems”
KodekX | Application Modernization Development
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Encapsulation theory and applications.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Cloud computing and distributed systems.
cuic standard and advanced reporting.pdf
Machine learning based COVID-19 study performance prediction
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
MIND Revenue Release Quarter 2 2025 Press Release
sap open course for s4hana steps from ECC to s4
NewMind AI Weekly Chronicles - August'25 Week I

Angry Developer: Creating a Game in QML and JavaScript for MeeGo N9 @iRajLal