funcode 黄金矿工 c++语言


funcode实例 c++黄金矿工,完整直接运行,随机生成20个黄金挖矿。资源全,代码完整。简易版本,需要的可直接下载
资源截图
代码片段和文件信息
//---------------------------------------------------------------------------------------------
// Torque Game Builder
// Copyright (C) GarageGames.com Inc.
//---------------------------------------------------------------------------------------------


/// Player Initialization Procedure
/// 
function onstart()
{   
}

function onExit()
{
}

//---------------------------------------------------------------------------------------------
// Load the paths we need access to
//---------------------------------------------------------------------------------------------
function loadPath( %path )
{
   setModPaths( getModPaths() @ “;“ @ %path );
   exec(%path @ “/main.cs“);

}

//---------------------------------------------
// Do some bootstrap voodoo to get the game to 
// the initializeProject phase of loading and 
// pass off to the user
//---------------------------------------------

// Output a console log
setLogMode(6);

loadPath( “common“ );

loadPath( “game“ );

onstart();

// Initialized
echo(“
FunCode (“ @ getT2DVersion() @ “) initialized...“);

if( !isFunction( “initializeProject“ ) || !isFunction( “_initializeProject“ ) )
{
   messageBox( “Game Startup Error“ “‘initializeProject‘ function could not be found.“ @
               “
This could indicate a bad or corrupt common directory for your game.“ @
               “

The Game will now shutdown because it cannot properly function“ “Ok“ “MIStop“ );
   quit();
}

_initializeProject();

// Startup the project
initializeProject();



 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-09-01 14:32  gold (2)
     目录           0  2020-08-28 15:15  gold (2)gold (2)
     目录           0  2020-08-28 15:15  gold (2)gold (2)Bin
     目录           0  2020-08-28 15:15  gold (2)gold (2)Bincommon
     文件         498  2020-08-28 08:21  gold (2)gold (2)BincommoncommonConfig.xml
     目录           0  2020-08-28 15:15  gold (2)gold (2)Bincommondata
     目录           0  2020-08-27 23:29  gold (2)gold (2)Bincommondataaudio
     目录           0  2020-08-28 15:15  gold (2)gold (2)Bincommondatafonts
     文件       11766  2020-08-27 23:33  gold (2)gold (2)BincommondatafontsArial 12 (ansi).uft
     文件       11219  2020-08-27 23:33  gold (2)gold (2)BincommondatafontsArial 14 (ansi).uft
     文件       13875  2020-08-27 23:33  gold (2)gold (2)BincommondatafontsArial Bold 20 (ansi).uft
     文件       11290  2020-08-27 23:33  gold (2)gold (2)BincommondatafontsLucida Console 12 (ansi).uft
     目录           0  2020-08-28 15:15  gold (2)gold (2)Bincommondatahelp
     文件         365  2014-11-11 21:06  gold (2)gold (2)Bincommondatahelp2. License.hfl
     目录           0  2020-08-28 15:15  gold (2)gold (2)Bincommongamescripts
     文件        8724  2017-03-22 23:22  gold (2)gold (2)Bincommongamescriptsalign.cs.dso
     文件        1566  2017-03-22 23:22  gold (2)gold (2)Bincommongamescriptsaudio.cs.dso
     文件         836  2017-03-22 23:22  gold (2)gold (2)Bincommongamescriptscanvas.cs.dso
     目录           0  2020-08-28 15:15  gold (2)gold (2)Bincommongamescriptsclient
     文件        4671  2014-11-11 21:06  gold (2)gold (2)BincommongamescriptsclientchatClient.cs
     文件        1773  2014-11-11 21:06  gold (2)gold (2)Bincommongamescriptsclientclient.cs
     文件        1610  2014-11-11 21:06  gold (2)gold (2)Bincommongamescriptsclientmessage.cs
     文件        4194  2014-11-11 21:06  gold (2)gold (2)BincommongamescriptsclientserverConnection.cs
     文件        3911  2017-03-22 23:22  gold (2)gold (2)Bincommongamescriptscommon.cs.dso
     文件        1395  2017-03-22 23:22  gold (2)gold (2)Bincommongamescriptscursor.cs.dso
     文件        6040  2017-03-22 23:22  gold (2)gold (2)Bincommongamescriptskeybindings.cs.dso
     文件        8867  2017-03-22 23:22  gold (2)gold (2)BincommongamescriptslevelManagement.cs.dso
     文件        2945  2017-03-22 23:22  gold (2)gold (2)Bincommongamescriptsmetrics.cs.dso
     文件        7012  2017-03-22 23:22  gold (2)gold (2)Bincommongamescriptsoptions.cs.dso
     文件        3144  2017-03-22 23:22  gold (2)gold (2)BincommongamescriptsprojectManagement.cs.dso
     文件        2235  2017-03-22 23:22  gold (2)gold (2)BincommongamescriptsprojectResources.cs.dso
............此处省略141个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)