登录
首页 » c++ » 基于Cocox2DX的安卓游戏--太空保卫战

基于Cocox2DX的安卓游戏--太空保卫战

于 2022-03-17 发布 文件大小:16.92 MB
0 128
下载积分: 2 下载次数: 1

代码说明:

本安卓游戏是基于Cocox2DX游戏引擎的安卓游戏,是由C++语言编写,这里面又可以直接下载到手机里运行的apk文件,又有可以在电脑端看的源文件,十分方便初学者对Cocos2DX引擎的学习

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

发表评论

0 个回复

  • ZNodes
    qt中提供了QGphicsView,QGraphicsScene,QGraphicsItem,QGraphicsPixmapItem是QGraphicsItem的子类 分辨创建它们的实例:view,scene,item,然后通过各自的方法scene->addItem(item);view->setScene(scene);就可以达到类似下图的效果,想要进一步定制,则要继承QGraphicsItem或QGraphicsPixmapItem,然后重写paint()、boundingRect()等方法,此外如果还想要获取鼠标事件,重写mousePressEvent等事件就好了,注意,一旦重写了mousePressEvent方法,就以为了qt不会再自动处理item的任何press事件了,可以在你重写的mousePressEvent方法中最后添加QGraphicsItem::mousePressEvent(event);解决这个问题,就是说你获取到了鼠标事件,但是依然让qt处理这个鼠标事件。(QGphics View, QGraphics Scene, QGraphics Item and QGraphics PixmapItem are provided in qt. They are subclasses of QGraphics Item. Resolve the instances of creating them: view, scene, item, and then use their respective methods scene - > addItem (item); view - > setScene (scene); you can achieve the effect similar to the figure below. If you want to further customize, you need to inherit QGraphics Item or QGraphics Pixmap Item, and then rewrite paint (), boundingRect () and other methods, and if you want to do so. If you want to get mouse events, rewrite events like mousePressEvent. Note that once you rewrite the mousePressEvent method, you think that QT will no longer automatically handle any press events of item. You can finally add QGraphics Item:: mousePressEvent (event) to your rewritten mousePressEvent method to solve this problem. That is, you get the mouse event, but still let QT handle the mouse event.)
    2020-06-16 20:20:01下载
    积分:1
  • 567
    LTE-A系统的最新进展,对超前研究LTE-A系统的非常有帮助(LTE-A system of the latest, on the advance of LTE-A system very helpful)
    2010-05-09 12:39:45下载
    积分:1
  • Ali-Cloud-OSS-service
    阿里云OSS服务的上传下载功能,实现了基本的上传下载功能(Ali Cloud OSS service upload and download function)
    2012-11-08 13:20:56下载
    积分:1
  • Voixe-good
    Voice modem test 语音modem测试,很好不错(Voice modem test voice modem test, good)
    2018-11-27 12:29:34下载
    积分:1
  • stlink
    开源stlink实现的源代码。实测效果还行(stlink source code!Open source!!!)
    2021-01-05 21:18:53下载
    积分:1
  • keyboard_LED
    2410开发板上键盘与LED的驱动实验,采用ZLG7290芯片(2410 development board keyboard and LED Drivers experiments using ZLG7290 Chip)
    2006-10-30 15:43:16下载
    积分:1
  • 这是一个用c#做的网站,对建筑施工过程中的日志系统进行管理...
    这是一个用c#做的网站,对建筑施工过程中的日志系统进行管理-This is a c# to do with the site, the process of construction of the log management system
    2022-08-13 08:19:51下载
    积分:1
  • DALI
    DALI总线的相关文档集合,也有相关的程序。主要是说明什么是DALI协议,还有DALI协议怎么用软件实现(DALI bus is a collection of related documents, also related procedures. Is to specify what is the DALI protocol, as well as how to use the software DALI protocol)
    2013-08-15 20:40:38下载
    积分:1
  • amcap Windows系统下的摄像头程序
    amcap Windows系统下的摄像头程序,VC++ 6.0  SP6环境下编译通过,正常使用.本例程可以工广大的爱好者,参考借鉴.可以用作编写更复杂的windows图像处理工具软件.微软公司早期比较经典的例程.不可多得.
    2023-03-05 15:00:04下载
    积分:1
  • 简述modbus代码
    //第一步成功,可以通讯,记住:P1.3  为0输出485,为1输入485 //拨特率正确,中断正确 //串口1为仪表串口,串口2为实际MODBUS串口 //模拟量地址范围0000----0008    共8个数据,长度按前后减
    2023-08-12 15:10:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载