📄 pulldowngame.java
字号:
// package javagapi;
import java.io.IOException;
import java.io.DataOutputStream;
import java.io.DataInputStream;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
//import javax.microedition.media.*;
/**
* (C) 2002 Sony Ericsson Mobile Communications AB. All rights reserved.
*
* This java code has been automatically generated by a syntax tree
* analyzer from the embedded C source code.
*
* @author LD/SEM/GUN/MI Stefan Olsson
*
* @version 1.0
*/
public class PulldownGame extends GameShell {
/**
* Returns the game name.
*
* @returns The name of this game as a string.
*/
public String getGameName() {
return "Pulldown";
}
// Variables for points, states and High Score stuff
static SGGlobal_t SGGlobal_p = null;
static SGSaveGame_t SGSaveData_p = null;
static byte SGState;
static GAPI_HighscoreList_t SGHighScoreList_p = null;
private static boolean SplashTimeOut = false;
static final short ScoreLMargin = 2; // Left margin for scores
static final short ScoreRMargin = 2; // Left margin for scores
static final short ScoreTMargin = 0; // Top margin for scores
static final short ScorePack = 0; // Amount of pixles subtracted from height in calculations
static final short ObjectW = 8; // Width of game object width
static final short ObjectH = 8; // Heigth of game object width
// Variables set in PulldownGetMenuSetting
static short ScoreRow;
static short FieldTMargin; // Top margin for play field
static short FieldLMargin; // Left margin for play field
static short ScLineOffs; // Offset for score line
static short Cols;
static short Rows;
// Variables for the images used in the game
Image Image_8bit_16;
Image Image_8bit_4096;
Image Image_8bit_1283;
Image Image_8bit_1282;
Image Image_8bit_1281;
Image Image_8bit_1280;
Image Image_8bit_1027;
Image Image_8bit_1026;
Image Image_8bit_1025;
Image Image_8bit_1024;
Image Image_8bit_771;
Image Image_8bit_770;
Image Image_8bit_769;
Image Image_8bit_768;
Image Image_8bit_515;
Image Image_8bit_514;
Image Image_8bit_513;
Image Image_8bit_512;
Image Image_8bit_259;
Image Image_8bit_258;
Image Image_8bit_257;
Image Image_8bit_256;
// Extern final Font_t SystemFontPulldownBitmaps_8bit;
final short SG_BITMAP_1[] = {
0x100,
0x101,
0x102,
0x103,
0x102,
0x101
};
final short SG_BITMAP_2[] = {
0x200,
0x201,
0x202,
0x203,
0x202,
0x201
};
final short SG_BITMAP_3[] = {
0x300,
0x301,
0x302,
0x303,
0x302,
0x301
};
final short SG_BITMAP_4[] = {
0x400,
0x401,
0x402,
0x403,
0x402,
0x401
};
final short SG_BITMAP_5[] = {
0x500,
0x501,
0x502,
0x503,
0x502,
0x501
};
/**
* Try to load images used in game.
*
* @param s What interval (1-6) of images to load (has to do with the *@#
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -