j2me - graphic [小糊涂的灵感]
2004-10-20 10:38
274 查看
graphic canvas
---image items
transparent.
dubble -buffer
shownotify ?
the
getGameAction() method so that, for example, the expression (getGameAction(keyCode)
== Canvas.LEFT) can be used to check whether the key that corresponds to LEFT has
been pressed (or released).
int width = getWidth( );
int height = getHeight( );
// Fill the background using black
g.setColor(0);
g.fillRect(0, 0, width, height);
// Load an image from the MIDlet resources
if (image == null) {
try {
image = Image.createImage("/ora/ch5/resources/earth.png");
} catch (IOException ex) {
g.setColor(0xffffff);
g.drawString("Failed to load image!", 0, 0, Graphics.TOP |
Graphics.LEFT);
return;
}
}
setcommandlistener
imageitem 是特定的?
canvas -< keypressed
---image items
transparent.
dubble -buffer
shownotify ?
the
getGameAction() method so that, for example, the expression (getGameAction(keyCode)
== Canvas.LEFT) can be used to check whether the key that corresponds to LEFT has
been pressed (or released).
int width = getWidth( );
int height = getHeight( );
// Fill the background using black
g.setColor(0);
g.fillRect(0, 0, width, height);
// Load an image from the MIDlet resources
if (image == null) {
try {
image = Image.createImage("/ora/ch5/resources/earth.png");
} catch (IOException ex) {
g.setColor(0xffffff);
g.drawString("Failed to load image!", 0, 0, Graphics.TOP |
Graphics.LEFT);
return;
}
}
setcommandlistener
imageitem 是特定的?
canvas -< keypressed
相关文章推荐
- 3D图形引擎for j2me[小糊涂的灵感]
- J2ME Nokia UI API Quick Reference[小糊涂的灵感]
- J2ME图书介绍 [小糊涂的灵感]
- why is j2me midp superior to wap?[小糊涂的灵感]
- 我想开展这样的一个j2me项目:实现mobile svg player,[小糊涂的灵感]
- j2me 这个论坛好一点.[小糊涂的灵感]
- J2ME编程之Nokia 7210配置篇[小糊涂的灵感]
- j2me study process list[小糊涂的灵感]
- 把J2ME JAVA 手機軟體轉成EXE檔的工具 [小糊涂的灵感]
- If you whant to download SIS, JAR and JAD file from WAP you have to upload file (in the same catalog) with this: [小糊涂的灵感]
- Game features List Template:[小糊涂的灵感]
- java game 小尺寸设计 [小糊涂的灵感]
- Re: help on converting bytearrayinputstream to objectinputstream [小糊涂的灵感]
- jbuilder光标问题解决的最简单方法 [小糊涂的灵感]
- 但是难道我就不能在JBuilder里面看我可爱的中文了吗?[小糊涂的灵感]
- 游戏贴图问题 [小糊涂的灵感]
- 五子棋判断输赢的算法描述.[小糊涂的灵感]
- Heyy.... I've got some games. Post the games name, and I'll post it 4 u[小糊涂的灵感]
- GameCanvas快速开发吧.[小糊涂的灵感]
- Frame rate test for tile-based games 测试结果.[小糊涂的灵感]