level0005.txt

来自「RGA: Biowaste Game Example This C++ app」· 文本 代码 · 共 62 行

TXT
62
字号

// level name
<NAME>Level 5</NAME>

// starting money and waste speed ($ /second)
<MONEY>500,2</MONEY>

// size of the block map
<SIZE>15,10</SIZE>

// 0 = gravel
// 1 = grass
// 2 = water
// 3 = tree01
// 4 = tree02
<BLOCKS>
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
1 1 1 1 1 1 1 2 1 1 1 1 1 1 3 
1 0 0 0 0 0 0 0 0 0 0 0 0 0 3 
1 0 2 2 2 2 2 2 2 2 2 2 0 1 3 
0 0 0 2 2 4 4 0 0 0 2 0 0 0 0 
1 1 0 2 2 2 2 2 2 2 2 2 2 2 3 
1 1 0 2 2 2 2 2 2 2 2 2 0 2 2 
1 1 0 0 0 0 0 0 0 0 0 0 0 1 3 
1 1 1 1 1 1 1 1 1 1 1 0 1 1 3 
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
</BLOCKS>


// animated grass, in pixel coordinates
<GRASS>200,30</GRASS>

// buildings, center in pixels coordinates
// NOT IMPLEMENTED
<BUILDING>200, 200</BUILDING>

// bonuses use block coordinates
<BONUS_MONEY>7,4</BONUS_MONEY>
<BONUS_MONEY>8,4</BONUS_MONEY>
<BONUS_MONEY>9,4</BONUS_MONEY>
//<BONUS_POWER>14,28</BONUS_POWER>
<BONUS_WATER>12,7</BONUS_WATER>

// all ghosts use block coordinates
// ghost AI desc:
// RED: moves towards player
//		params: startblockx, startblocky, speed (pixels/sec)
// GREEN: moves between two given blocks 
//		params: startblockx, startblocky, endblockx, endblocky, speed (pixels/sec)
// BLUE: stays in same place, but pulls player towards it
//		params: startblockx, startblocky, pullforce
//<GHOST_RED>14,27,50</GHOST_RED>
<GHOST_GREEN>0,7,5,7,100</GHOST_GREEN>
<GHOST_BLUE>7,0,150</GHOST_BLUE>
<GHOST_BLUE>11,8,150</GHOST_BLUE>

// start & goal in block coordinates
<START>0,4</START>
<GOAL>14,4</GOAL>


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?