• 大小: 3.28MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-11
  • 语言: C/C++
  • 标签: C++  魂斗罗  源码  

资源简介

经典怀旧游戏魂斗罗,C++编写,音效+素材+源码,可下载vs运行看效果

资源截图

代码片段和文件信息

#pragma once
#pragma execution_character_set(“utf-8“)
#include“Activity.h“


int Activity::onCreate()
{
return 0;
}

Activity::Activity()
{
onCreate();
}

int Activity::addView(View * v)
{
viewList.push_back(v);
return 0;
}

Activity::~Activity()
{
for (unsigned int i = 0; i < viewList.size(); i++)
delete(viewList[i]);
}



Activity* Activity::run()
{
for (unsigned int i = 0; i <(viewList.size()); i++)
{
viewList[i]->draw();
}
return this;
}

bool Activity::isExit()
{
return false;
}

int Activity::trunActivity()
{
return 0;
}



 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-11-01 19:21  魂斗罗\
     目录           0  2019-03-23 14:58  魂斗罗\Contra-master\
     文件        2518  2018-04-26 18:18  魂斗罗\Contra-master\.gitattributes
     文件        3833  2018-04-26 18:18  魂斗罗\Contra-master\.gitignore
     目录           0  2019-03-23 14:58  魂斗罗\Contra-master\.vs\
     目录           0  2019-03-23 14:58  魂斗罗\Contra-master\.vs\Game\
     目录           0  2019-05-10 15:04  魂斗罗\Contra-master\.vs\Game\v15\
     文件       21504  2019-05-10 15:04  魂斗罗\Contra-master\.vs\Game\v15\.suo
     文件     4456448  2019-05-10 15:04  魂斗罗\Contra-master\.vs\Game\v15\Browse.VC.db
     目录           0  2019-03-23 14:58  魂斗罗\Contra-master\Game\
     文件         550  2018-04-26 18:18  魂斗罗\Contra-master\Game\Activity.cpp
     文件         470  2018-04-26 18:18  魂斗罗\Contra-master\Game\Activity.h
     文件        1311  2018-04-26 18:18  魂斗罗\Contra-master\Game\AddTree.cpp
     文件         515  2018-04-26 18:18  魂斗罗\Contra-master\Game\AddTree.h
     文件        2186  2018-04-26 18:18  魂斗罗\Contra-master\Game\AddWave.cpp
     文件         192  2018-04-26 18:18  魂斗罗\Contra-master\Game\AddWave.h
     文件        2982  2018-04-26 18:18  魂斗罗\Contra-master\Game\Application.cpp
     文件         688  2018-04-26 18:18  魂斗罗\Contra-master\Game\Application.h
     文件        1724  2018-04-26 18:18  魂斗罗\Contra-master\Game\Area.cpp
     文件         840  2018-04-26 18:18  魂斗罗\Contra-master\Game\Area.h
     文件        6379  2018-04-26 18:18  魂斗罗\Contra-master\Game\Background.cpp
     文件         706  2018-04-26 18:18  魂斗罗\Contra-master\Game\Background.h
     文件         988  2018-04-26 18:18  魂斗罗\Contra-master\Game\BigTree1.cpp
     文件         245  2018-04-26 18:18  魂斗罗\Contra-master\Game\BigTree1.h
     文件       15006  2018-04-26 18:18  魂斗罗\Contra-master\Game\Bill.cpp
     文件        2435  2018-04-26 18:18  魂斗罗\Contra-master\Game\Bill.h
     文件        1142  2018-04-26 18:18  魂斗罗\Contra-master\Game\Bullet.cpp
     文件         574  2018-04-26 18:18  魂斗罗\Contra-master\Game\Bullet.h
     文件        1075  2018-04-26 18:18  魂斗罗\Contra-master\Game\Bullets.cpp
     文件         343  2018-04-26 18:18  魂斗罗\Contra-master\Game\Bullets.h
     文件         739  2018-04-26 18:18  魂斗罗\Contra-master\Game\CannonFodders.cpp
............此处省略151个文件信息

评论

共有 条评论