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

What's hot (20)

PDF
Gradle 3.0: Unleash the Daemon!
Eric Wendelin
 
PPTX
Android presentation - Gradle ++
Javier de Pedro López
 
PDF
About OpenGL and Vulkan interoperability (XDC 2020)
Igalia
 
PPTX
Qt for beginners part 5 ask the experts
ICS
 
PDF
Gradle - the Enterprise Automation Tool
Izzet Mustafaiev
 
PDF
Gradle Introduction
Dmitry Buzdin
 
PDF
An Introduction to Gradle for Java Developers
Kostas Saidis
 
PDF
Overview of the open source Vulkan driver for Raspberry Pi 4 (XDC 2020)
Igalia
 
PDF
Gradle in 45min
Schalk Cronjé
 
PDF
[Image Results] Java Build Tools: Part 2 - A Decision Maker's Guide Compariso...
ZeroTurnaround
 
PPTX
ng4 webpack and yarn in JHipster
Sendil Kumar
 
PDF
Pragmatic software development in kdb+
Ajay Rathore
 
PDF
Devoxx Belgium 2017 - easy microservices with JHipster
Julien Dubois
 
PDF
QtQuick Day 4
Timo Strömmer
 
PDF
Gradle - time for a new build
Igor Khotin
 
PDF
Cloud Spin - building a photo booth with the Google Cloud Platform
Bret McGowen - NYC Google Developer Advocate
 
ODP
Gradle: The Build System you have been waiting for!
Corneil du Plessis
 
PDF
Idiomatic Gradle Plugin Writing - GradleSummit 2016
Schalk Cronjé
 
PDF
Gradle build tool that rocks with DSL JavaOne India 4th May 2012
Rajmahendra Hegde
 
PDF
Javantura v4 - Android App Development in 2017 - Matej Vidaković
HUJAK - Hrvatska udruga Java korisnika / Croatian Java User Association
 
Gradle 3.0: Unleash the Daemon!
Eric Wendelin
 
Android presentation - Gradle ++
Javier de Pedro López
 
About OpenGL and Vulkan interoperability (XDC 2020)
Igalia
 
Qt for beginners part 5 ask the experts
ICS
 
Gradle - the Enterprise Automation Tool
Izzet Mustafaiev
 
Gradle Introduction
Dmitry Buzdin
 
An Introduction to Gradle for Java Developers
Kostas Saidis
 
Overview of the open source Vulkan driver for Raspberry Pi 4 (XDC 2020)
Igalia
 
Gradle in 45min
Schalk Cronjé
 
[Image Results] Java Build Tools: Part 2 - A Decision Maker's Guide Compariso...
ZeroTurnaround
 
ng4 webpack and yarn in JHipster
Sendil Kumar
 
Pragmatic software development in kdb+
Ajay Rathore
 
Devoxx Belgium 2017 - easy microservices with JHipster
Julien Dubois
 
QtQuick Day 4
Timo Strömmer
 
Gradle - time for a new build
Igor Khotin
 
Cloud Spin - building a photo booth with the Google Cloud Platform
Bret McGowen - NYC Google Developer Advocate
 
Gradle: The Build System you have been waiting for!
Corneil du Plessis
 
Idiomatic Gradle Plugin Writing - GradleSummit 2016
Schalk Cronjé
 
Gradle build tool that rocks with DSL JavaOne India 4th May 2012
Rajmahendra Hegde
 
Javantura v4 - Android App Development in 2017 - Matej Vidaković
HUJAK - Hrvatska udruga Java korisnika / Croatian Java User Association
 

Viewers also liked (20)

PPTX
Test driving QML
Artem Marchenko
 
PPTX
Valentine Twister
Ken Sapp
 
PPTX
Youth Ministry Illustrations - Easter Twister
Ken Sapp
 
PPTX
TCEA 2016 creating a game design sequence
Mike Ploor
 
PPTX
Fetc 2016 creating a game design sequence
Mike Ploor
 
PDF
Best Practices in Qt Quick/QML - Part II
ICS
 
PDF
[Webinar] 10 Keys to Ensuring Success for Your Next Qt Project
ICS
 
PDF
Game On: Creating User Assistance for Gamified Products
Marta Rauch
 
PDF
Best Practices in Qt Quick/QML - Part IV
ICS
 
PPTX
Best Practices in Qt Quick/QML - Part I
ICS
 
PDF
Gone in-30-seconds- Simple Past Board Game
Catia Barbosa
 
PDF
Creating Game-like Engagement for Learning
Julie Dirksen
 
PPTX
Number Guessing Game - A 8085 Project
Sneh Pahilwani
 
PPTX
PRESENT SIMPLE GAME REVIEW
Daniela Da Silva Duarte
 
PPTX
Game Passive Voice Simple Past
J6 2011
 
PPT
Past simple game 1
Paulina Rivarola
 
PDF
Making a Game Design Document
Equal Experts
 
PDF
Guide to creation of game concept document
Emma Westecott
 
PPTX
Alzheimer's disease
Muhammad Ahsan
 
PPTX
Dementia
Richa Khatiwada
 
Test driving QML
Artem Marchenko
 
Valentine Twister
Ken Sapp
 
Youth Ministry Illustrations - Easter Twister
Ken Sapp
 
TCEA 2016 creating a game design sequence
Mike Ploor
 
Fetc 2016 creating a game design sequence
Mike Ploor
 
Best Practices in Qt Quick/QML - Part II
ICS
 
[Webinar] 10 Keys to Ensuring Success for Your Next Qt Project
ICS
 
Game On: Creating User Assistance for Gamified Products
Marta Rauch
 
Best Practices in Qt Quick/QML - Part IV
ICS
 
Best Practices in Qt Quick/QML - Part I
ICS
 
Gone in-30-seconds- Simple Past Board Game
Catia Barbosa
 
Creating Game-like Engagement for Learning
Julie Dirksen
 
Number Guessing Game - A 8085 Project
Sneh Pahilwani
 
PRESENT SIMPLE GAME REVIEW
Daniela Da Silva Duarte
 
Game Passive Voice Simple Past
J6 2011
 
Past simple game 1
Paulina Rivarola
 
Making a Game Design Document
Equal Experts
 
Guide to creation of game concept document
Emma Westecott
 
Alzheimer's disease
Muhammad Ahsan
 
Dementia
Richa Khatiwada
 
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 @...
Raj Lal
 
PPSX
Build Cutting edge Mobile Apps using QML and JavaScript for MeeGo N9: Linux F...
Raj Lal
 
PDF
QtQuick Day 1
Timo Strömmer
 
PDF
Necessitas - Qt on Android - from FSCONS 2011
Johan Thelin
 
ODP
Meet Qt
account inactive
 
PDF
Building the QML Run-time
Johan Thelin
 
PDF
Epam mobile meetup 2014 10-15 qt cross-platform solution for mobile development
Ivan Marinov
 
PDF
Serving QML applications over the network
Jeremy Lainé
 
PDF
QtEmbedded
Adenilson Cavalcanti
 
PDF
Qt and QML performance tips & tricks for Qt 4.7
Pasi Kellokoski
 
PDF
Qt quick (qml)
Elena Kotina
 
PPTX
Qt quick at Cybercom Developer Day 2010 by Alexis Menard 7.9.2010
CybercomChannel
 
PDF
Welcome - Introduzione - Burkhard Stubert
QT-day
 
PDF
Cutest technology of them all - Forum Nokia Qt Webinar December 2009
Nokia
 
PPT
Qt Technical Presentation
Daniel Rocha
 
PDF
Qt Quick in depth
Develer S.r.l.
 
PPT
cpp-2013 #18 Qt Part 2
Amazon Web Services
 
PPTX
Guided overview of software frameworks qt framework
Benjamin Cottrell
 
PPTX
Qt for beginners part 1 overview and key concepts
ICS
 
QML & JavaScript on MeeGo: Flourish Conference 2nd Apr 2011, at UIC Chicago @...
Raj Lal
 
Build Cutting edge Mobile Apps using QML and JavaScript for MeeGo N9: Linux F...
Raj Lal
 
QtQuick Day 1
Timo Strömmer
 
Necessitas - Qt on Android - from FSCONS 2011
Johan Thelin
 
Building the QML Run-time
Johan Thelin
 
Epam mobile meetup 2014 10-15 qt cross-platform solution for mobile development
Ivan Marinov
 
Serving QML applications over the network
Jeremy Lainé
 
Qt and QML performance tips & tricks for Qt 4.7
Pasi Kellokoski
 
Qt quick (qml)
Elena Kotina
 
Qt quick at Cybercom Developer Day 2010 by Alexis Menard 7.9.2010
CybercomChannel
 
Welcome - Introduzione - Burkhard Stubert
QT-day
 
Cutest technology of them all - Forum Nokia Qt Webinar December 2009
Nokia
 
Qt Technical Presentation
Daniel Rocha
 
Qt Quick in depth
Develer S.r.l.
 
cpp-2013 #18 Qt Part 2
Amazon Web Services
 
Guided overview of software frameworks qt framework
Benjamin Cottrell
 
Qt for beginners part 1 overview and key concepts
ICS
 
Ad

More from Raj Lal (20)

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

Recently uploaded (20)

PDF
Python basic programing language for automation
DanialHabibi2
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
July Patch Tuesday
Ivanti
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Python basic programing language for automation
DanialHabibi2
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
July Patch Tuesday
Ivanti
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 

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