目 录
前 言...........................................................................................................................................1
第一章 开发技术和开发平台 ...............................................................................................3
1.1 Java 语言特性...........................................................................................................3
1.2 Java 技术在游戏开发中的应用...............................................................................4
1.2.1 绘图技术.........................................................................................................4
1.2.2 游戏开发中的交互.........................................................................................4
1.2.3 基于 AWT 及 SWING 的游戏界面开发 ......................................................5
1.2.4 多线程技术的应用.........................................................................................5
1.2.5 Java 网络技术的应用 ....................................................................................5
1.2.6 Eclipse.............................................................................................................6
1.3 开发平台搭建 ...........................................................................................................6
1.3.1 安装 JDK 和 Eclipse ......................................................................................6
1.3.2 JDK 环境变量配置 ........................................................................................6
第二章 飞机大战游戏需求分析 ...........................................................................................8
2.1 用户需求分析 ...........................................................................................................8
2.2 可行性分析 ...............................................................................................................8
2.3 总体设计原则 ...........................................................................................................9
2.4 功能模块设计 .........................................................................................................10
2.5 游戏难点分析 .........................................................................................................10
第三章 飞机大战功能模块实现 .........................................................................................11
3.1 项目模块介绍 .........................................................................................................11
3.2 游戏首页的实现 .....................................................................................................12
3.2.1 界面实现.......................................................................................................12
3.2.2 核心代码.......................................................................................................13
3.3 游戏战场实现 .........................................................................................................14
3.4 界面实现 .................................................................................................................14
3.5 核心代码 .................................................................................................................15
3.6 Hero 移动模块实现 ................................................................................................16
3.6.1 核心代码.......................................................................................................16