TAILIEUCHUNG - MIDP Game API

Game applications typically employ a single thread to run the game. This thread executes a main loop that repeatedly checks for user input, implements logic to update the state of the game, and then updates the user interface to reflect the new state. Unlike Canvas, the GameCanvas class provides methods that directly support this programming model. | MIDP Game API Khanh Le Introduction Game applications have proven to be one of the most popular uses for Java 2 Micro Edition, so a dedicated Game API is provided in Mobile Information Device Profile version to facilitate game development. This API provides several benefits to the game developer. First, it simplifies game development and provides an environment that is more familiar to game developers. Second, it reduces application size and complexity by performing operations that would otherwise be implemented by the application. Third, because the API can be implemented using native code, it can also improve performance of the frequently used game routines. As with the low-level user interface APIs, applications that use the Game API must be written carefully in order to ensure portability. Device characteristics such as screen size, color depth, and key availability must be accounted for by the developer if application portability is desired. The GameCanvas API The Canvas .

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.