自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Mobile Game

为祖国健康工作五十年

  • 博客(24)
  • 收藏
  • 关注

转载 The Basics of the MMAPI for Java Developers->Media Capture

The Basics of the MMAPI for Java Developers By Michael Juntao Yuan, Kevin Sharp. Sample Chapter is provided courtesy of Addison Wesley Professional. Date: Apr 15, 2005.Sav

2006-07-26 14:01:00 1640

转载 The Basics of the MMAPI for Java Developers -> Advanced Media Playback

The Basics of the MMAPI for Java Developers By Michael Juntao Yuan, Kevin Sharp. Sample Chapter is provided courtesy of Addison Wesley Professional. Date: Apr 15, 2005.Sav

2006-07-26 14:00:00 1268

转载 The Basics of the MMAPI for Java Developers -> Introduction to the MMAPI

The Basics of the MMAPI for Java Developers By Michael Juntao Yuan, Kevin Sharp. Sample Chapter is provided courtesy of Addison Wesley Professional. Date: Apr 15, 2005.Sav

2006-07-26 13:56:00 1530

转载 Thread-safe caching object with file and HTTP implementations

From: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/302997 Title: Thread-safe caching object with file and HTTP implementations Submitter: Nicola

2006-06-21 11:10:00 2052

转载 编码引起的空白显示页面问题的解决

http://www.joomlar.org/index.php?option=com_content&task=view&id=10&Itemid=26在windows操作系统上使用IE作为浏览器时。常常会发生这样的问题:在浏览使用UTF-8编码的网页时,浏览器无法自动侦测(即没有设定“自动选择”编码格式时)该页面所用的编码。即使网页已经声明过编码格式:,由此造成某些含有中文UTF-8编码的

2006-04-20 15:04:00 1809

原创 查询域名的小程序

"""File: dns.pyAuthor: [email protected]: http://blog.csdn.net/timium"""from socket import *import string, os, sys, shutilfrom time import timeclass whoisserver:    def __init__(self):     

2006-03-19 18:40:00 1322

转载 urllib2 - The Missing Manual

From: http://www.voidspace.org.uk/python/articles/urllib2.shtmlurllib2 - The Missing ManualFetching URLs With Pythonurllib2 Tutorial Introduction Fetching URLs Coping With E

2006-01-19 21:23:00 2393

原创 byte的值也能是-255??

游戏中有个奇怪的bug,通过输出无数信息,终于定位到了问题所在。发现是输出的一个byte变量的值是-255...static byte actionId;static String msg;static void method1(){    msg = "actionId1:"+actionId;    method2();}static void method2(){   msg += " ac

2006-01-15 00:08:00 1499

原创 教你怎么做蘑菇~

还不错,学会了不少东西http://blog.linuxeden.com/post/67386/1025

2005-12-27 02:08:00 1444

原创 首选3d建模工具: Blender

特点: 开源,小巧(only 6+M),功能强大,操作方便,扩展性强

2005-12-25 19:26:00 1733 1

转载 一篇很好的讲Thread的文章

FROM: http://www.j2me.org/yabbse/index.php?board=10;action=display;threadid=2482 J2ME and Multithreading« on: September 17, 2004, 04:40:54 am »---------------------------------------------------------

2005-12-21 13:06:00 1429

转载 各手机icon尺寸

Application Icon sizesFrom J2me wikiMany phones use many different size icons to display next to the applications name. Please add to and edit this list when you can confirm exactly what the maximum i

2005-12-21 12:55:00 2461

原创 m3g导出工具

m3gexporter:http://www.m3gexporter.comExport184:http://www.digi-element.com/Export184/registration.htmfor Maya:http://www.alias.com/eng/partners/conductors_program/plugins/m3gexport_for_maya.shtmlBlen

2005-12-17 00:33:00 1439

原创 为什么要用Python?

原因只有一个:开发效率!如果你没有接触过Python,强烈建议你抽空去了解一下。http://python.org/python的用途非常广泛,相关的资料也很多。建议找个tutorial看看。

2005-12-11 16:35:00 1307

原创 getPixel()和getRGB()的问题

用DirectGraphics.getPixels(int[] ..., TYPE_INT_xxxx_xxxx) 得到的颜色值不准确。因为nokia的手机内部使用的是TYPE_USHORT_565_RGB的格式,在getPixels(int[])时需要进行映射。更严重的是,不同位置的同种颜色的点,get出来的颜色值也可能不一样(遇到过了这种情况,但还没发现规律。如果你知道,请告诉我:)。比如白色(

2005-12-11 16:02:00 2324

原创 Nokia资源文件路径的问题

如果jar包里有一个资源文件,路径为 "/test/abc.ext"那么可以用以下方式中都可以把这个文件读进来:getClass().getResourceAsStream("/test/abc.ext");getClass().getResourceAsStream("st/abc.ext");getClass().getResourceAsStream("abc.ext");getClass(

2005-12-11 15:58:00 1093

原创 translate() 和 DirectGraphics 的问题

忘了什么问题了。发现再写。

2005-12-11 15:58:00 1091

原创 GameCanvas全屏尺寸的问题

很多人都问过我这个问题,解释了很多遍,干脆写出来。Q: 为什么我在setFullScreenMode(true)后,调用getWidth(),getHeight()得到的屏幕尺寸比实际尺寸小?A: 因为当Canvas没有被显示时,调用setFullScreenMode(true)后,并不会立即生效。在生效过后,系统会回调sizeChanged(int w, int h) 来通知屏幕大小已经改变。p

2005-12-11 15:56:00 1570 1

原创 当我们把一个Image画到它本身上面...

当我们把一个Image画到它本身上面,会出现什么情况呢?如下例子:Image img = Image.createImage(100,50);Graphics g = img.getGraphics();g.setColor(0xff0000);g.fillrect(0,0,10,10);g.drawImage(img,dx=10,dy=10,0);也许,结果和你预想的有所不同。原因很简单,由于源

2005-12-11 15:54:00 988

原创 主要机型对应的音频格式以及震动功能列表

看到一片不错文章:http://jcodeworks.com/developersfxguide.html整理了一个表格  Device Melody Wave Vibra 1 FX at a time 3650/6600/N-Gage mid0 amr - - 7650 - wav - - Moto V525/V600 mid0 amr Y - Sagem myV65/myV75 ? wav -

2005-12-11 15:51:00 1710

原创 UTF-8 Decoder & Encoder

有的手机不支持utf8. 需要时直接copy。 UTF-8 Decoder:String decode(byte[] b,int start,int len) {    StringBuffer s = new StringBuffer();    int end = start + len;    for (int i = start; i         byte b = b[i++];   

2005-12-11 15:41:00 1556

原创 用Proguard混淆后出现Preverify Error的解决办法

在proguard的参数中加上:-dontusemixedcaseclassnames因为windows文件名是大小写无关的. 如果还是不行,可以试试 -dontoptimize另外还有其他可选参数:-overloadaggressively-allowaccessmodification

2005-12-11 15:36:00 1015

原创 利用GameCanvas的offscreen_buffer

MIDP2.0增加了GameCanvas类,其中包含了一个offscreen_buffer,可以随时调用flushGraphics()来把它画到屏幕上,游戏的结构也可以变得简单一些。但是,为了移植方便,大多数时候还是用的MIDP1.0的结构。GameCanvas中是这样定义的:private Image offscreen_buffer;我们无法得到这个Image的reference,但是可以通过

2005-12-11 15:33:00 1063

原创 PNG图像压缩

有的图片,旋转90度过后再压缩会小很多,这个方法是根据filter想到的,因为filter是按行的。用bad的png压缩, 银月那把剑,横着压出来3016B, 竖着只有2625B。

2005-03-29 18:21:00 1176

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除