资源简介

小学期游戏课程坦克大战开发源码,可以直接运行。

资源截图

代码片段和文件信息

//---------------------------------------------------------------------------------------------
// 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(“\nFunCode (“ @ getT2DVersion() @ “) initialized...“);

if( !isFunction( “initializeProject“ ) || !isFunction( “_initializeProject“ ) )
{
   messageBox( “Game Startup Error“ “‘initializeProject‘ function could not be found.“ @
               “\nThis could indicate a bad or corrupt common directory for your game.“ @
               “\n\nThe Game will now shutdown because it cannot properly function“ “Ok“ “MIStop“ );
   quit();
}

_initializeProject();

// Startup the project
initializeProject();



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

评论

共有 条评论