怎么用JAVA编写一个小游戏啊?
来源:百度知道 编辑:UC知道 时间:2024/05/20 17:29:08
给我邮箱我发给你,有俄罗斯方块,迷宫等等
直接上网去搜索吧~
网上多的是,
自己没怎么用JAVA编过游戏,就有个黑白棋
上www.verycd.com搜Java游戏视频,有贪食蛇,俄罗斯方块什么的
技术性太强了
最近写的贪吃蛇
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Point;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.util.ArrayList;
import java.util.Random;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.Timer;
import javax.swing.border.TitledBorder;
import static java.awt.event.KeyEvent.*;
public class study ext