• 大小: 1.55MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-01
  • 语言: C/C++
  • 标签: C++  funcode  

资源简介

funcode微信版打飞机实训指南,详细讲述了在funcode平台下用C++写出一个游戏的步骤。

资源截图

代码片段和文件信息

// 子弹类方法的实现

#include “CommonClass.h“
#include “Bullet.h“

// 构造函数
Bullet::Bullet(const char *szName):CSprite(szName)
{
}

// 析构函数
Bullet::~Bullet()
{
}

// 设置子弹的生命值
// iHp为子弹的生命值
void Bullet::SetHp(const int iHp)
{
this->iHp = iHp;
}

// 设置子弹当前中心点的坐标
// fPointX表示X方向中心点的坐标,fPointY表示Y方向中心点的坐标
void Bullet::SetPoint(const float fPointX const float fPointY)
{
this->fPointX = fPointX;
this->fPointY = fPointY;
}

// 设置子弹X方向中心点的坐标
// fPointX表示X方向中心点的坐标
void Bullet::SetPointX(const float fPointX)
{
this->fPointX = fPointX;
}

// 设置子弹Y方向中心点的坐标
// fPointY表示Y方向中心点的坐标
void Bullet::SetPointY(const float fPointY)
{
this->fPointY = fPointY;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-06-04 14:48  微信版打飞机\
     目录           0  2018-06-04 14:48  微信版打飞机\Bin\
     目录           0  2018-06-04 14:48  微信版打飞机\Bin\common\
     文件         498  2018-06-04 15:11  微信版打飞机\Bin\common\commonConfig.xml
     目录           0  2018-06-04 14:48  微信版打飞机\Bin\common\data\
     目录           0  2018-06-04 14:48  微信版打飞机\Bin\common\data\audio\
     目录           0  2018-06-04 14:48  微信版打飞机\Bin\common\data\fonts\
     文件       11766  2014-03-07 16:23  微信版打飞机\Bin\common\data\fonts\Arial 12 (ansi).uft
     文件       11219  2014-03-07 16:23  微信版打飞机\Bin\common\data\fonts\Arial 14 (ansi).uft
     文件       56777  2014-03-07 16:23  微信版打飞机\Bin\common\data\fonts\Arial 75 (ansi).uft
     文件       13875  2014-03-07 16:23  微信版打飞机\Bin\common\data\fonts\Arial Bold 20 (ansi).uft
     文件       11290  2014-03-07 16:23  微信版打飞机\Bin\common\data\fonts\Lucida Console 12 (ansi).uft
     目录           0  2018-06-04 14:48  微信版打飞机\Bin\common\data\help\
     文件         365  2011-09-19 11:00  微信版打飞机\Bin\common\data\help\2. License.hfl
     目录           0  2018-06-04 14:48  微信版打飞机\Bin\common\gamescripts\
     文件        9458  2011-09-19 11:00  微信版打飞机\Bin\common\gamescripts\align.cs
     文件        8724  2014-01-24 17:33  微信版打飞机\Bin\common\gamescripts\align.cs.dso
     文件        2350  2011-09-19 11:00  微信版打飞机\Bin\common\gamescripts\audio.cs
     文件        1566  2014-01-24 17:33  微信版打飞机\Bin\common\gamescripts\audio.cs.dso
     文件        1581  2011-09-19 11:00  微信版打飞机\Bin\common\gamescripts\canvas.cs
     文件         836  2014-01-24 17:33  微信版打飞机\Bin\common\gamescripts\canvas.cs.dso
     目录           0  2018-06-04 14:48  微信版打飞机\Bin\common\gamescripts\client\
     文件        4671  2011-09-19 11:00  微信版打飞机\Bin\common\gamescripts\client\chatClient.cs
     文件        1773  2011-09-19 11:00  微信版打飞机\Bin\common\gamescripts\client\client.cs
     文件        1610  2011-09-19 11:00  微信版打飞机\Bin\common\gamescripts\client\message.cs
     文件        4194  2011-09-19 11:00  微信版打飞机\Bin\common\gamescripts\client\serverConnection.cs
     文件        5447  2011-09-19 11:00  微信版打飞机\Bin\common\gamescripts\common.cs
     文件        3911  2014-01-24 17:33  微信版打飞机\Bin\common\gamescripts\common.cs.dso
     文件        3022  2011-09-19 11:00  微信版打飞机\Bin\common\gamescripts\cursor.cs
     文件        1395  2014-01-24 17:33  微信版打飞机\Bin\common\gamescripts\cursor.cs.dso
     文件       10428  2011-09-19 11:00  微信版打飞机\Bin\common\gamescripts\keybindings.cs
............此处省略193个文件信息

评论

共有 条评论