登录
首页 » java » 飞机大战游戏开发

飞机大战游戏开发

于 2023-03-24 发布 文件大小:288.28 kB
0 123
下载积分: 2 下载次数: 1

代码说明:

包含小蜜蜂,英雄级,敌机、子弹。通过鼠标操控英雄机的移动,英雄机自动发射子弹,有两种敌人,若打到敌机,则加分,若打到蜜蜂,则加命或者加双倍火力。若敌机或蜜蜂碰到英雄机,则减一条命,命减到零,游戏结束。所有的对象都在图片中有位置,大小,图片属性,可以将这些属性都抽象到一个类中叫做FlyingObject,其他四个类可以继承,减少代码重写; 然后将两个方法做成接口,里面可以添加抽象方法,利用接口封装方法让代码更加模块化,让代码结构清晰,有利于维护; 最后一个添加main方法的shootgame类

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • FTP客户端的java
    ftp client with java
    2022-02-04 22:11:26下载
    积分:1
  • octopus-pdf
    octopus pdf viewer for android
    2018-04-30 14:54:50下载
    积分:1
  • Log4J是Apache软件基金会Jakarta项目下的一个子项目,是用Java编写的优秀日志工具包。通过Log4J可以在不修改代码的情况下,方便、灵活地控制任...
    Log4J是Apache软件基金会Jakarta项目下的一个子项目,是用Java编写的优秀日志工具包。通过Log4J可以在不修改代码的情况下,方便、灵活地控制任意粒度的日志信息的开启或关闭,然后使用定制的格式,把日志信息输出到一个或多个需要的地方。 最令人感兴趣的就 是,这些可以通过一个配置文件来灵活地进行配置,而不需要修改应用的代码。 -Log4J is the Apache Software Foundation Jakarta under a subproject is prepared to use Java logging toolkit outstanding. Log4J can be adopted without amending the code, the convenience, flexibility to control arbitrary granularity of the log information of the open or closed, then use the custom format, the log information output to one or more needed. Most interesting is that these can be through a configuration file to configure a flexible manner, without modifying application code.
    2022-01-21 17:27:50下载
    积分:1
  • 学生成绩管理系统
    说明:  1. 能够实现根据以下关键字查询:学生姓名 、学号、班级、课程名称。 2. 能够实现按照单科成绩、总成绩、平均成绩、学号排序。 3. 能够实现学生信息的插入、删除和修改。 4. 能够查询每个课程的最高分、最低分及相应学生姓名、班级和学号。 5. 能够查询每个班级某门课程的优秀率(90 分及以上)、不及格率,并进行排序。(1. Be able to query according to the following keywords: student name, student number, class, course name. 2. It can be sorted according to single subject score, total score, average score and student number. 3. Be able to insert, delete and modify student information. 4. Be able to query the highest score and lowest score of each course and the corresponding student name, class and student number. 5. Be able to query the excellent rate (90 points and above) and failure rate of a course in each class, and sort them.)
    2021-03-17 19:19:21下载
    积分:1
  • java操作文件工具类
    java操作文件工具类
    2022-03-14 06:17:58下载
    积分:1
  • source
    坦克大战图片版,用Java编写的简单坦克大战游戏(Battle City Photo Edition)
    2010-06-07 23:17:35下载
    积分:1
  • 情感分类
    采用贝叶斯分类的方法将微博评论进行情感分类
    2022-04-07 07:04:44下载
    积分:1
  • HttpAbstractParamBean
    This AttributeVisitor marks all methods that catch exceptions.
    2013-12-02 13:42:27下载
    积分:1
  • matlab实现ItemBaseCF算法
    基于物品的协同过滤算法的实现,基于matlab源码
    2022-01-25 22:34:02下载
    积分:1
  • 股票交易系统标准的java源代码,需要的朋友可以下载的…
    股标交易系统JAVA源码,需要的朋友可以下载参考研究-Stock trading system standard JAVA source code, need friends can download the reference and
    2022-03-02 05:34:14下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载