J2's mobile game development diary 1

Source: Internet
Author: User

I am a newbie with a game project. I have some experiences and feel that I can share some things with you. Sorry for the mistake.
Development Environment:
Windows2000 + JBuilder X + semc_j2me_sdk_2_00004_beta
I have never touched on this aspect, because a group of projects is about to start to learn j2_9. After reading the books for two days, I found that JDK is actually quite simple. There are several classes in total. However, if you want to consider the optimal optimization of resources and performance, the requirements for algorithms and data structures are relatively high.
Let's talk about how to build the environment:
1. windows2000 (needless to say)
2. JBuilder X)
3. Because it is a project developed for Sony Ericsson's K700C, JDK uses Sony Ericsson's JDK
4. Use the JDK of the mobile phone in JBuilder. The procedure is Tools-Configure JDKs-Add.
First of all, I would like to understand the structure and level of j2's development. I have read many introductory documents in this order, and I will not go into details here, let's just talk about my understanding.
The core of J2EE is Configuration (CLDC, CDC). above this is Profile (MIDP), and most of our mobile phone development is on Profile, that is, CLDC + MIDP.
If you want to learn more about the history of the development of the channel, you can download the JSR specification read, the address is http://jcp.org
Work on the first day:
It's a bit messy, because I just got into touch with this stuff, and I don't have any practical experience at all (java is just a bit fragmented ). I spent a whole day in the lab with this book and learned about the basic structure of the program. (I strongly recommend sun's second edition of "Design of wireless devices for j2_based devices", which is very pleasant to see ).
The classes that inherit the MIDlet class in the program can be understood as the entry of the program. It is equivalent to winmain in win32. The running process starts from this.
The structure of the MIDlet is
Public class GameMIDlet extends MIDlet {
Public GameMIDlet () {}// constructor. The parameter must be null.
Public void startApp () // start the program (or return to the program after the system is interrupted)
Public void pauseApp () // pause the program (to handle some pause cleaning work, but note that when the system encounters a call or such an event, the program is not suspended, but the entire process is suspended, run startAPP () again ())
Public void destroyApp (boolean con) // destroy the job .}
I have written so much today. Let's talk about displayable and Graphics tomorrow. In addition, let's take a look at the structure of the mobile games on the j2's phone.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.