java实现坦克大战课程设计.docVIP

  • 13
  • 0
  • 约1.88万字
  • 约 35页
  • 2018-12-28 发布于浙江
  • 举报
基于java实现电子时钟 PAGE PAGE 3 Java实现坦克大战小游戏 摘要 Java是一种可以撰写跨平台应用软件的面向对象的程序设计语言。我的课程设计是用java来做一个简单的坦克大战小游戏。我将这个程序细分了多个部分,每个部分都建了独立的类,比如:坦克的模型类,河道,树和坦克方向等等。之所以将之细分,是遵循了java的万事万物皆对象的原理。在实现每个类时,最简单但也是最繁琐就是建立界面与实例化坦克,因为这牵扯了界面布局,监听的建立等;而有一些类,比如;河道、墙、坦克,这些类这可以依样画葫芦的编写。 在编写过程,借鉴了他人的一些图片模型,实现的功能也并不是和经典的FC坦克大战相同,但是每个坦克之间的互动还是实现了的。 关键词:万事万物皆对象 界面布局 坦克之间的互动 USE JAVA TO REALIZE BATTLE CITY MINI-GAME ABSTRACT Java is a object oriented program design language what can compose cross platform application software. My curriculum design is using JAVA language to make a simple small game called Tank Battle. I break down this program into multiple parts, each part is to establish an independent class, such as: Tank Model class, River Course class, Tree class, The Direction of Tank class and so on. The reason divides into multiple parts, is because follow the principle of JAVA that everything is an object. When implements every class, the most simple but also the most troublesome is build interface and instantiate Tank class, because it is involved of the interface layout, monitoring the establishment. While there are some classes, such as: River Course class, Wall class and Tank class, can write like stick closely to the pattern given. In the preparation process, I refer some pictures of models of others, the function of the retaliate isn’t like FC Tank Battle, but the interaction between ach tank is realized. Key words: everything is an object, the interface layout, the interaction between each tank 目 录 1 课程目的与要求……………………………………………………………………………1 1、1课程目标……………………………………………………………………………1 1、2 课程的实现环境……………………………………………………………………1 2 概要设计……………………………………………………………………………………2 3 详细设计……………………………………………………………………………………3 4 测试结果与心得体会……………………………………………………………………… 5 参考文献…………………………………………………………………………………… 附录…………………………………………………………………………………………… 源程序代码…………………………………………………………………………………… 第 PAGE 9 页 共 8 页 1 课程的目的与要求 1、1课程目标 JAVA程序设计的设计目的是加深对理

文档评论(0)

1亿VIP精品文档

相关文档