public class Game
extends org.cell2d.CellGame
Modifier and Type | Field and Description |
---|---|
static org.cell2d.Animation |
ANIM_EXPLOSION |
static org.cell2d.Animation |
ANIM_SPACESHIP |
static int |
CMD_DOWN |
static int |
CMD_SELECT |
static int |
CMD_UP |
static org.cell2d.Color |
FADE_COLOR |
static int |
FADE_TIME |
static int |
FONT_WIDTH |
static int |
MAX_SCORE |
static int |
NUM_COMMANDS |
static int |
SCREEN_HEIGHT |
static long |
SCREEN_HEIGHT_FRAC |
static int |
SCREEN_WIDTH |
static long |
SCREEN_WIDTH_FRAC |
static int |
SID_CREDITS |
static int |
SID_INGAME |
static int |
SID_MENU |
static org.cell2d.Sound |
SND_CHANGE_OPTION |
static org.cell2d.Sound |
SND_EXPLODE |
static org.cell2d.Sound |
SND_SELECT |
static org.cell2d.Sprite |
SPR_ARROW |
static org.cell2d.Sprite |
SPR_ASTEROID |
static org.cell2d.SpriteSheet |
SPS_FONT |
Constructor and Description |
---|
Game() |
Modifier and Type | Method and Description |
---|---|
static void |
drawString(java.lang.String s,
org.cell2d.celick.Graphics g,
int x,
int y) |
void |
fadeEnterState(int id) |
int |
getHighScore() |
void |
initActions() |
static void |
main(java.lang.String[] args) |
void |
recordScore(int score) |
addMusic, addMusic, addMusic, addMusic, addMusic, addMusic, addMusic, addMusic, beginTypingString, beginTypingString, bindControl, cancelBindToCommand, cancelTypingString, clearControls, clearMusic, close, commandHeld, commandPressed, commandReleased, enterState, enterState, getBindingCommandNum, getControlsFor, getCurrentState, getFPS, getIconPath, getMaxTypingStringLength, getMouseWheelChange, getMouseX, getMouseY, getMusic, getMusic, getMusicStackTop, getMusicTracks, getMusicTracks, getNumCommands, getScaleFactor, getScreenHeight, getScreenWidth, getState, getTypingString, isFullscreen, loadLoadingAssets, loadNatives, musicIsAtPriority, removeMusic, removeMusic, removeMusic, removeMusic, renderActions, renderLoadingVisuals, setFPS, setFullscreen, setScaleFactor, setScreenHeight, setScreenWidth, startGame, unbindControl, waitToBindToCommand
public static final int NUM_COMMANDS
public static final int CMD_UP
public static final int CMD_DOWN
public static final int CMD_SELECT
public static final int SCREEN_WIDTH
public static final long SCREEN_WIDTH_FRAC
public static final int SCREEN_HEIGHT
public static final long SCREEN_HEIGHT_FRAC
public static final int FONT_WIDTH
public static final org.cell2d.Color FADE_COLOR
public static final int FADE_TIME
public static final int SID_MENU
public static final int SID_CREDITS
public static final int SID_INGAME
public static final int MAX_SCORE
public static org.cell2d.Sprite SPR_ARROW
public static org.cell2d.Sprite SPR_ASTEROID
public static org.cell2d.SpriteSheet SPS_FONT
public static org.cell2d.Animation ANIM_SPACESHIP
public static org.cell2d.Animation ANIM_EXPLOSION
public static org.cell2d.Sound SND_CHANGE_OPTION
public static org.cell2d.Sound SND_SELECT
public static org.cell2d.Sound SND_EXPLODE
public void initActions()
initActions
in class org.cell2d.CellGame
public final void fadeEnterState(int id)
public final int getHighScore()
public final void recordScore(int score)
public static void drawString(java.lang.String s, org.cell2d.celick.Graphics g, int x, int y)
public static void main(java.lang.String[] args)