Mophun & J2ME game development trip (5)

xiaoxiao2021-03-06  99

Talk about Mophun has not talked about Java, Java is one of my favorite programming languages, because I am more popular, I have learned: C / Java / PHP / Python / VB / C / C # ~~~~ ~~~~~, no ten kinds, high school self-study QBasic, watch Microsoft's English document, bitter, no information, now regret

. When high school hopes to design Russian squares, it is finally designed in the summer, the summer, because Java is because of her thread function. Later, I learned that I used her time control function, so the game production in other platforms was spectrum. ! ! Python is very love, but very few, no time to review, as a beautiful regret. I didn't give up because of C / C / Java because they most in line with my program style. Unclear.

In fact, Java is a J2ME, which is a sudden success of Sun's ancient strategy. The sudden popularity of mobile phones (in actually the floor of the technology), making the cross-platform Java and the final consumers rather than the more close to the developer, so she succeeded. Despite some people ridicule she: "Compilation, debugging", I think she is still good as a choice, there is no best!

! ! !

The success of J2ME is the success of Java language success. If you can learn from Javadoc documentation with ordinary development tools, you can basically be called a developer. If you have a creative, you have passion, it should be a good developer, if you work, I am very envious You, you are real developers, your application is good and bad, there is a user to evaluate, developers look at technology, users see the essence, their vision is the most important.

J2ME program design and comparison of Mophun programming, I summarize, uncomfortable perspective:

Mophun J2ME

(1) Language: C / C Java

(2) Development Environment: VC / VC.NET / Other JBuilder / Eclipse / Other

(3) Simulator: SDK comes with SDK comes with terminal manufacturers (NOKIA SE SIEMENS)

(4) Development efficiency: Almost in small size, large scale, Java does have advantageous

(5) Application range: Smaller

(6) Network: very similar

~~~~~~~~~~~~~

I can't think of it.

The J2ME program is designed, completely object-oriented, for example, you can put SplashScreen as an object to put it, which program needs a new, very convenient, the most difficult is design, how to make regular Something is put together (if you have this kind of thought, you are doing the game engine, it is very difficult) and let him be reused? This and software project may be linked. Java's huge, let me know how to explain what kind of view and what kind of views, in short, J2ME's programming, starting from the object. For example, I have a simple little ball, you can pack it into the class as an object, then do an interface BallmoveInterface, there is a method in the interface so that we can get the following pump:

Class ball {/ ** /}

Interface BallMoveInterface {/ ** /}

Class Smartball Extends Ball Implements BallmoveInterface {/ ** /}

Class PiTyball Extends Ball Implements BallmoveInterface {/ ** /}

Class Goldball Extends Ball Implements BallmoveInterface {/ ** /}

Different small balls, as long as the method in the BallMoveInterface, the exercise of the ball is solemn, and the music is endless! ! #! ·

I think, J2ME's program is designed, the most important one is to clear the object's model, for example, I start understanding the object-oriented object, A call B, B call A, what should I do, legal? Later, I knew that it was a powerful callback mechanism. After the understanding, the screen switched what was like blowing the ball (blowing a ball, blowing a big air ball, blowing a balloon and playing the ball).

Callback, very important mechanism.

In addition, the algorithm of collision processing in the game is quite, important, I am still lacking in this regard, I hope to go to the PNG format in the abroad, can work in the image layer, so the efficiency may be low, but very accurate.

Just say this, I don't want to talk too much.

talk about it later. ·

转载请注明原文地址:https://www.9cbs.com/read-104000.html

New Post(0)