【找一款弹球游戏】
我貌似玩过
但是这种游戏太多了,也不知道你要得是哪一款
这里都是弹球小游戏
http://www.53u.com/MinJie/TanQiu/
http://down.yx007.com/list/l10.htm
自己慢慢挑吧
不要眼花了就行
【java弹球游戏】
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import java.awt.image.BufferedImage;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class CopyOfBallCrash implements Runnable {
public static void main(final String[] args) {
new Thread(new CopyOfBallCrash()).start();
}
private final int width = 400;
private final int height = 700;
private int mouse_X, mouse_Y;
private final BufferedImage offscreen = new BufferedImage(width, height,
BufferedImage.TYPE_4BYTE_ABGR);
private final JPanel panel = new JPanel();
private final Shape ball = new Shape(100, 100, 1, 1, 20);
private final Shape rect = new Shape(0, 100, 20);
public CopyOfBallCrash() {
final JFrame frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
panel.setPreferredSize(new Dimension(width, height));
ball.setBounds(width, height);
rect.setBounds(width, height);
frame.setContentPane(panel);
panel.addMouseMotionListener(new MouseMotionListener() {
@Override
public void mouseDragged(final MouseEvent e) {}
@Override
public void mouseMoved(final MouseEvent e) {
mouse_X = e.getX();
mouse_Y = e.getY();
}
});
frame.pack();
frame.setVisible(true);
}
public void paint(final Graphics g) {
final Graphics2D g2d = offscreen.createGraphics();
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
g2d.fillRect(0, 0, width, height);
g2d.setColor(Color.blue);
rect.drawRect(g2d, mouse_X);
g2d.setColor(Color.red);
ball.drawOval(g2d, rect);
if (Shape.isLose) g2d.drawString("你输了!!!", 100, 300);
g2d.dispose();
g.drawImage(offscreen, 0, 0, null);
}
@Override
public void run() {
while (true)
paint(panel.getGraphics());
}
}
class Shape {
public int width, height;
public int x, y, vx, vy, r, w, h;
public static boolean isLose;
public Shape(final int x, final int y, final int vx, final int vy, final int r) {
super();
this.x = x;
this.y = y;
this.vx = vx;
this.vy = vy;
this.r = r;
}
public Shape(final int x, final int w, final int h) {
super();
this.x = x;
this.w = w;
this.h = h;
}
public final void setBounds(final int width, final int height) {
this.width = width;
this.height = height;
}
public final void drawOval(final Graphics2D g2d, final Shape shape) {
if (y + h >= height) {
isLose = true;
return;
}
if (x + vx <= 0 || x + vx + w >= width) vx = -vx;
if (y + vy <= 0) vy = -vy;
if (isCrashOutside(shape.x, shape.y, shape.w, shape.h) && y + w >= shape.y)
vy = -vy;
x += vx;
y += vy;
g2d.fillOval(x, y, r, r);
}
public final void drawRect(final Graphics2D g2d, final int mouseX) {
y = height - h;
if (x + w < width && x < mouseX) x++;
if (x > 0 && x > mouseX) x--;
g2d.fillRect(x, y, w, h);
}
public final boolean isCrashOutside(final int x, final int y, final int w,
final int h) {
return (this.x > x ? this.x <= w + x : x <= r + this.x)
&& (this.y > y ? this.y <= h + y : y <= r + this.y);
}
}
【经典弹球游戏】
可能是吧,。就因为这个!?
【求一个经典弹球游戏】
这个我在别人的电脑上也玩过。记得是FLASH类型的游戏。
【这个弹球游戏(打掉MM衣服的一个)哪里有下载?】
hrfyrtydthrtdyh
【求一个益智类弹珠的游戏(英文的) 请看清楚我的描述.... 给出正确的游戏名称或下载地址...】
所谓泡菜游戏,最主要的特点是:反复消耗玩家点卡,重复练功,没有内涵,设计一个只有少数玩家能达到的目标,然后用这些少数玩家的榜样,来吸引众多玩家,投身于送点卡的,不可能实现的追求中...
楼主想要泡菜游戏 可以试试网易的:大唐豪侠 大话西游2 梦幻西游 或腾讯的:QQ幻想 QQ自由幻想 完全支持一个一人静静的打怪,练级,打材料,然后自己能去升级装备,或者靠自己打出装备 而且都不是很老~画面制作也很优秀
希望能帮到你