SlideShare a Scribd company logo
Game Programming
       by
      J2ME


            By
      Hamada Zahera
  hamada.zahera@mufix.org
Outline
•    Java is Everywhere !!
•    Introduction to J2ME: features & Application
•    Your First J2ME Application (Demo#1)
•    Game Design & Architecture
•    Design your first game (Demo#2)
•    Deploying your application


 ٢                  MUFIX Community © 2010
Java Is Everywhere !
• The Power of Java : it can be used not only for
  PC but also many different electronic devices as




 ٣                  MUFIX Community © 2010
Java Editions !!
• J2SE (Java 2 standard edition) is for developing
  desktop applications, GUI and Database
  Application (see J2SE API)

• J2EE (Java 2 enterprise edition ) for Client serve
  applications , for example web sites.

• J2ME (Java 2 micro edition) for applications which
  run on resource constrained devices (small scale
  devices) like cell phones, for example games.


 ٤                     MUFIX Community © 2010
J2ME: (Java 2 Micro Edition)
• J2ME is a java platform which is customized for developing
  applications for embedded devices like Mobile , IPhones ,
  PDAs ,….., etc.




  ٥                    MUFIX Community © 2010
J2ME Architecture
• Basically , J2ME Applications run on a platform which
  is already support by almost of Mobile phones
• By default , there are build-in Packages which support
  common functionality like GUI , I/O ,Bluetooth, Game
  API ,etc . These package called “MIDP”
• Mobile phones are different in hardware configurations
  and resources like memory and feature
• We have two configuration layer of
Embedded Devices : Device with higher
resources : set-top Boxes use CDC and
Device with limited resources use CDLC

  ٦                    MUFIX Community © 2010
MIDP
- Mobile Information Device Profile (MIDP) is a key
  element of J2ME.
- When combined with the Connected Limited
  Device Configuration (CLDC), MIDP provides a
  standard Java runtime environment for today's
  most popular mobile information devices, such as
  cell phones and PDAs

- We have MIDP 1.0 , MIDP 2.0

      Runtime Environment = MIDP+CDLC

 ٧                  MUFIX Community © 2010
CDCL vs CDC
J2ME Connected, Limited Device Configuration (CLDC)
- specifies the Java environment for mobile phone, pager and wireless devices
- CLDC devices are usually wireless
- 160 - 512k of memory available for Java
- typically has limited power or battery operated
- network connectivity, often wireless, intermittent, low-bandwidth (9600bps or
       less)


J2ME Connected Device Configuration (CDC)
- describes the Java environment for digital television set-top boxes, high end
      wireless devices and automotive telematics systems.
- device is powered by a 32-bit processor
- 2MB or more of total memory available for Java
- network connectivity, often wireless, intermittent, low-bandwidth (9600bps or
      less)
٨                             MUFIX Community © 2010
J2ME Features
    JSR   Name                     Description
    75    File Connection          File system, contacts,
          and PIM                  calendar, to-do
    82    Bluetooth                Wireless connections

    135   Mobile Media API         Audio, video,
          (MMAPI)                  multimedia
    184   Mobile 3D                High level 3D graphics
          Graphics
    179   Location API             GPS

٩                     MUFIX Community © 2010
Demo#1 :Your First application
 • Prerequisites :
   - JDK 1.5
   - Install NetBeans with mobility Pack




 ١٠              MUFIX Community © 2010
Game Design
You have to concern with the following :
      – Logic
      – Characters
      – Graphics
      – Sounds




 ١١                  MUFIX Community © 2010
Game Elements
• 1.Sprite : game object like car , ball ,
  persons which has some attributes
  like X,y coordinates and weight ,
  width




 ١٢                MUFIX Community © 2010
Game Elements .. (cont)
• 2.Tiled Layers: dividing the game background
  into small cells to save memory and allow
  other spaces for game objects




 ١٣              MUFIX Community © 2010
e.g. Tiling Game Background




 ١٤          MUFIX Community © 2010
Game Elements .. (cont)
• 3. Layer Manager : it’s a container layer
  which group all game object together ,
  game background so we can manage a
  series of layers simplifying the rendering
  process




 ١٥               MUFIX Community © 2010
Demo#2 : Game app




١٦         MUFIX Community © 2010
Resources
• Books




• Links:
           www.j2meforums.com
١٧            MUFIX Community © 2010
Thank you




١٨    MUFIX Community © 2010

More Related Content

PDF
Mobile Operating System
PDF
ELCE 2010 - State Of Multimedia In 2010 Embedded Linux Devices
PDF
D610 Spec Sheet
PDF
U Ca Nmove
ODP
Introduction to Symbian OS
PPT
Mufix Network Programming Lecture
PPT
Google Summer of Code
PPT
How To Get Your First Job
Mobile Operating System
ELCE 2010 - State Of Multimedia In 2010 Embedded Linux Devices
D610 Spec Sheet
U Ca Nmove
Introduction to Symbian OS
Mufix Network Programming Lecture
Google Summer of Code
How To Get Your First Job

Viewers also liked (18)

PDF
Javafx Overview 90minutes
PPT
Develop Your Skills With Osum
PDF
Javafx Overview 90minutes
PDF
Introduction To Programming (2009 2010)
PDF
Javanowandfuture Chihuahua
PDF
I Phone Session Mufix
PDF
Javafx Overview 90minutes
ODP
Linux Presentation
PPS
Linux Administration
PDF
PDF
Qi -- Lightweight Boot Loader Applied in Mobile and Embedded Devices
PDF
Implementing Lightweight Networking
PPTX
Git & github
PPT
PPT
PPT
Joomla Presentations
Javafx Overview 90minutes
Develop Your Skills With Osum
Javafx Overview 90minutes
Introduction To Programming (2009 2010)
Javanowandfuture Chihuahua
I Phone Session Mufix
Javafx Overview 90minutes
Linux Presentation
Linux Administration
Qi -- Lightweight Boot Loader Applied in Mobile and Embedded Devices
Implementing Lightweight Networking
Git & github
Joomla Presentations
Ad

Similar to Game Programming By J2me (20)

PDF
JavaME Development Workflow - JMDF 2007
PPTX
J2ME mobile app development
PPT
A Taste of Java ME
PPT
MOBILE APPs DEVELOPMENT PLATFORMS
PPTX
Introduction to Mobile programming(J2ME)
PDF
Java me introduction
PDF
Java me introduction
PDF
Java me introduction
PPTX
Introduction to mobile programing (J2ME)
PPTX
2 mobile development frameworks and tools dark temp
PPT
Mobile Application Development MAD J2ME
PDF
Games and Java ME - Have fun and earn some money
PDF
"JavaME + Android in action" CCT-CEJUG Dezembro 2008
PDF
J2me step by step
PPT
Mobile Application Development JEDI
PPTX
PPTX
Mobile operating system..
PDF
010118565.pdf
PPTX
PDF
Javame sdk-datasheet-167819
JavaME Development Workflow - JMDF 2007
J2ME mobile app development
A Taste of Java ME
MOBILE APPs DEVELOPMENT PLATFORMS
Introduction to Mobile programming(J2ME)
Java me introduction
Java me introduction
Java me introduction
Introduction to mobile programing (J2ME)
2 mobile development frameworks and tools dark temp
Mobile Application Development MAD J2ME
Games and Java ME - Have fun and earn some money
"JavaME + Android in action" CCT-CEJUG Dezembro 2008
J2me step by step
Mobile Application Development JEDI
Mobile operating system..
010118565.pdf
Javame sdk-datasheet-167819
Ad

More from SiliconExpert Technologies (13)

PDF
Joining Osum Community And ..
PDF
Sfd Post Event Report
PDF
PDF
Fedora Fs Menoufiya Release 10
PPT
Database Session
PPTX
Eclipse Vs Netbeans
PPT
Introduction to Programming
PPT
How To Write A Cv That Talks For You
PPT
Web Fundamentals
PPT
ugmented Reality BY Dr.Hatem Mohammed
Joining Osum Community And ..
Sfd Post Event Report
Fedora Fs Menoufiya Release 10
Database Session
Eclipse Vs Netbeans
Introduction to Programming
How To Write A Cv That Talks For You
Web Fundamentals
ugmented Reality BY Dr.Hatem Mohammed

Recently uploaded (20)

PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Sports Quiz easy sports quiz sports quiz
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Institutional Correction lecture only . . .
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Pharma ospi slides which help in ospi learning
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Lesson notes of climatology university.
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
O5-L3 Freight Transport Ops (International) V1.pdf
VCE English Exam - Section C Student Revision Booklet
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Sports Quiz easy sports quiz sports quiz
O7-L3 Supply Chain Operations - ICLT Program
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Microbial diseases, their pathogenesis and prophylaxis
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPH.pptx obstetrics and gynecology in nursing
Abdominal Access Techniques with Prof. Dr. R K Mishra
Institutional Correction lecture only . . .
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Pharma ospi slides which help in ospi learning
STATICS OF THE RIGID BODIES Hibbelers.pdf
Lesson notes of climatology university.
Anesthesia in Laparoscopic Surgery in India
Module 4: Burden of Disease Tutorial Slides S2 2025

Game Programming By J2me

  • 1. Game Programming by J2ME By Hamada Zahera hamada.zahera@mufix.org
  • 2. Outline • Java is Everywhere !! • Introduction to J2ME: features & Application • Your First J2ME Application (Demo#1) • Game Design & Architecture • Design your first game (Demo#2) • Deploying your application ٢ MUFIX Community © 2010
  • 3. Java Is Everywhere ! • The Power of Java : it can be used not only for PC but also many different electronic devices as ٣ MUFIX Community © 2010
  • 4. Java Editions !! • J2SE (Java 2 standard edition) is for developing desktop applications, GUI and Database Application (see J2SE API) • J2EE (Java 2 enterprise edition ) for Client serve applications , for example web sites. • J2ME (Java 2 micro edition) for applications which run on resource constrained devices (small scale devices) like cell phones, for example games. ٤ MUFIX Community © 2010
  • 5. J2ME: (Java 2 Micro Edition) • J2ME is a java platform which is customized for developing applications for embedded devices like Mobile , IPhones , PDAs ,….., etc. ٥ MUFIX Community © 2010
  • 6. J2ME Architecture • Basically , J2ME Applications run on a platform which is already support by almost of Mobile phones • By default , there are build-in Packages which support common functionality like GUI , I/O ,Bluetooth, Game API ,etc . These package called “MIDP” • Mobile phones are different in hardware configurations and resources like memory and feature • We have two configuration layer of Embedded Devices : Device with higher resources : set-top Boxes use CDC and Device with limited resources use CDLC ٦ MUFIX Community © 2010
  • 7. MIDP - Mobile Information Device Profile (MIDP) is a key element of J2ME. - When combined with the Connected Limited Device Configuration (CLDC), MIDP provides a standard Java runtime environment for today's most popular mobile information devices, such as cell phones and PDAs - We have MIDP 1.0 , MIDP 2.0 Runtime Environment = MIDP+CDLC ٧ MUFIX Community © 2010
  • 8. CDCL vs CDC J2ME Connected, Limited Device Configuration (CLDC) - specifies the Java environment for mobile phone, pager and wireless devices - CLDC devices are usually wireless - 160 - 512k of memory available for Java - typically has limited power or battery operated - network connectivity, often wireless, intermittent, low-bandwidth (9600bps or less) J2ME Connected Device Configuration (CDC) - describes the Java environment for digital television set-top boxes, high end wireless devices and automotive telematics systems. - device is powered by a 32-bit processor - 2MB or more of total memory available for Java - network connectivity, often wireless, intermittent, low-bandwidth (9600bps or less) ٨ MUFIX Community © 2010
  • 9. J2ME Features JSR Name Description 75 File Connection File system, contacts, and PIM calendar, to-do 82 Bluetooth Wireless connections 135 Mobile Media API Audio, video, (MMAPI) multimedia 184 Mobile 3D High level 3D graphics Graphics 179 Location API GPS ٩ MUFIX Community © 2010
  • 10. Demo#1 :Your First application • Prerequisites : - JDK 1.5 - Install NetBeans with mobility Pack ١٠ MUFIX Community © 2010
  • 11. Game Design You have to concern with the following : – Logic – Characters – Graphics – Sounds ١١ MUFIX Community © 2010
  • 12. Game Elements • 1.Sprite : game object like car , ball , persons which has some attributes like X,y coordinates and weight , width ١٢ MUFIX Community © 2010
  • 13. Game Elements .. (cont) • 2.Tiled Layers: dividing the game background into small cells to save memory and allow other spaces for game objects ١٣ MUFIX Community © 2010
  • 14. e.g. Tiling Game Background ١٤ MUFIX Community © 2010
  • 15. Game Elements .. (cont) • 3. Layer Manager : it’s a container layer which group all game object together , game background so we can manage a series of layers simplifying the rendering process ١٥ MUFIX Community © 2010
  • 16. Demo#2 : Game app ١٦ MUFIX Community © 2010
  • 17. Resources • Books • Links: www.j2meforums.com ١٧ MUFIX Community © 2010
  • 18. Thank you ١٨ MUFIX Community © 2010