求一个游戏程序
要代码 急
给你个反弹球游戏 java的 编译下就行了applet的 安装jdk 代码如下 import t。*; import java。applet。*; public class Ball extends Applet implements Runnable{ int X,Y,moveX,moveY,width,height; Thread newThread; Image OffScreen; Graphics drawOffScreen; public void init() { X=0; Y=0; moveX=2; moveY=3; width =getSize()。
width; height=getSize()。height; OffScreen=createImage(width,height); drawOffScreen= tGraphics(); } public void start() { newThread=new Thread(this); art(); } public void stop() { newThread=null; } public void paint(Graphics g) { tColor(Color。
blue); llRect(0,0,width,height); tColor( d); llOval(X,Y,30,30); // llOval(60,60,30,30); g。
drawImage(OffScreen,0,0,this); } public void update(Graphics g) { paint(g); } public void run() { while(newThread!=null) { repaint(); try { eep(50); } catch(InterruptedException E){} X=X+moveX; Y=Y+moveY; if(X>=(width-30)) { X=width-30; moveX=-moveX; } if(X=(height-30)) { Y=height-30; moveY=-moveY; } if(Y<=0) { Y=0; moveY=-moveY; } } } }。
晕啊 太难了啊
我上传一个俄罗斯方块给你,你自己下载吧
魔兽争霸 可以到 下载
什么游戏
答:网游完美世界聊天系统强悍朋友倍亲密 在游戏中与人交往是必不可少的,如何在游戏中熟练的应用游戏开设的功能与他人沟通呢。这就要依赖游戏所提供的聊天功能了。《完美世界...详情>>
答:详情>>