Before starting, let's take a look at the following questions:
What is the OPhone game development process?
What framework does OPhone Game Development adopt? What are the advantages and disadvantages of this framework?
Is OPhone the same as traditional Java game development?
How does OPhone design the UI? How does the UI interact with logic?
How does OPhone develop game animation effects?
If you encounter the same problem during development, this article will certainly be suitable for you. Don't hesitate. After reading this article, you will surely be able to solve these problems at a glance. Let's get started...
Development Environment used in this article
Jdk-6u10-rc-bin-b28-windows-i586-p-21_jul_2008
Eclipse-java-galileo-win32
OPhone-sdk_windows-1.5.beta
ODT-0.9.0
First of all, make sure that the development environment is set up correctly. There are many tutorials on the Internet. Due to the length of the article, I will not talk about it here. I believe that when you read this article, the environment has been set up.
- Loading and using SDCard in OPhone Simulator
- How to get started with Ophone Widget SDK
- Quick Start: getting started with Ophone and Android
- How to port a j2-api to OPhone
- Combat between Android platform and OPhone
Select Project
Before developing any product, you must first determine the product idea, plan, budget the project development cycle, and then write the project development log during the development process, here we will just talk about this process. During official development, we need to follow a formal process, which may play a huge role in project development and debugging. Well, let's talk about the project selected in this article. The purpose of this article is to make a tutorial, so in the project selection, we chose the Russian square that everyone is familiar with and is very classic, as shown in 1. In this way, we don't have to spend a lot of time introducing the logical rules of the project, so you can understand it better.
Project Creation
Start "Eclipse"-> select "File" menu-> select "New" menu-> select "Project ..." Item, open the "NewProject" dialog box-> select "OPhone"-> "OPhoneProject"-> click "Next", open the "NewOPhoneProject" dialog box, and enter project information, 2.
Project development
After the project is created, we need to start development. At this time, we can first consider what functions and interfaces the game needs, determine the various modules of the game and the framework used for game development. As for the Framework, I suggest using the MVC Framework officially recommended by OPhone. I believe everyone is familiar with this method, the game logic and UI are separated to facilitate project management and maintenance. Therefore, this MVC framework is used in Tetris. In this framework, we will develop various functions and interfaces of the game.