174 lines
4.1 KiB
C
174 lines
4.1 KiB
C
/******************************************************************************
|
|
BINIAX 2 LEVEL DEFINITIONS
|
|
COPYRIGHT JORDAN TUZSUZOV, (C) 2006-2007
|
|
|
|
This software is provided 'as-is', without any express or implied
|
|
warranty. In no event will the authors be held liable for any damages
|
|
arising from the use of this software.
|
|
|
|
Permission is granted to anyone to use this software for any purpose,
|
|
including commercial applications, and to alter it and redistribute it
|
|
freely, subject to the following restrictions:
|
|
|
|
1. The origin of this software must not be misrepresented; you must not
|
|
claim that you wrote the original software. If you use this software
|
|
in a product, an acknowledgment in the product documentation would be
|
|
appreciated but is not required.
|
|
2. Altered source versions must be plainly marked as such, and must not be
|
|
misrepresented as being the original software.
|
|
3. This notice may not be removed or altered from any source distribution.
|
|
|
|
LICENSE ORIGIN : http://www.gzip.org/zlib/zlib_license.html
|
|
|
|
For complete product license refer to LICENSE.TXT file
|
|
|
|
******************************************************************************/
|
|
|
|
#ifndef _BNX_LEV_H
|
|
#define _BNX_LEV_H
|
|
|
|
#include "types.h"
|
|
#include "game.h"
|
|
|
|
#define cLinesPart01 3
|
|
#define cLinesPart02 3
|
|
#define cLinesPart03 4
|
|
#define cLinesPart04 4
|
|
#define cLinesPart05 6
|
|
#define cLinesPart06 6
|
|
#define cLinesPart07 6
|
|
#define cLinesPart08 6
|
|
#define cLinesPart09 4
|
|
#define cLinesPart10 5
|
|
#define cLinesPart11 5
|
|
#define cLinesPart12 5
|
|
#define cLinesPart13 10
|
|
#define cLinesPart14 10
|
|
#define cLinesAll cLinesPart01+cLinesPart02+cLinesPart03+cLinesPart04+cLinesPart05+\
|
|
cLinesPart06+cLinesPart07+cLinesPart08+cLinesPart09+cLinesPart10+\
|
|
cLinesPart11+cLinesPart12+cLinesPart13+cLinesPart14
|
|
|
|
#define cMaxLevels 14 /* All possibe levels */
|
|
#define cMaxLevelsTurn 6 /* First N levels suitable for tactic mode */
|
|
#define cMaxLevelsMulti 10 /* First N levels suitable for multiplayer */
|
|
#define cStartLevelsAfter 100 /* Start the levels after 100 lines scroll */
|
|
#define cNextLevelAt 30 /* Insert level at each N lines of scroll */
|
|
#define cLevelInactive -1 /* Inacive value for all meanings */
|
|
|
|
static BNX_INT16 BNX_LEVEL_INFO[] = { cLinesPart01, cLinesPart02, cLinesPart03,
|
|
cLinesPart04, cLinesPart05, cLinesPart06,
|
|
cLinesPart07, cLinesPart08, cLinesPart09,
|
|
cLinesPart10, cLinesPart11, cLinesPart12,
|
|
cLinesPart13, cLinesPart13, cLinesPart14
|
|
};
|
|
|
|
static char BNX_LEVEL[ cLinesAll ][ cGridX ] =
|
|
{
|
|
// level 1 - 3 lines
|
|
{ 0,1,0,1,0 },
|
|
{ 0,0,0,0,0 },
|
|
{ 1,0,0,0,1 },
|
|
|
|
// level 2 - 3 lines
|
|
{ 0,1,0,0,0 },
|
|
{ 0,0,1,0,0 },
|
|
{ 0,0,0,1,0 },
|
|
|
|
// level 3 - 4 lines
|
|
{ 1,0,0,0,1 },
|
|
{ 1,0,1,0,1 },
|
|
{ 1,0,0,0,1 },
|
|
{ 1,0,0,0,1 },
|
|
|
|
// level 4 - 4 lines
|
|
{ 0,1,0,0,0 },
|
|
{ 0,0,0,1,0 },
|
|
{ 0,1,0,0,0 },
|
|
{ 0,0,0,1,0 },
|
|
|
|
// level 5 - 6 lines
|
|
{ 1,0,0,0,1 },
|
|
{ 1,0,0,0,1 },
|
|
{ 0,0,0,0,0 },
|
|
{ 0,0,0,0,0 },
|
|
{ 0,1,0,1,0 },
|
|
{ 0,1,0,1,0 },
|
|
|
|
// level 6 - 6 lines
|
|
{ 1,0,0,0,0 },
|
|
{ 0,0,0,1,1 },
|
|
{ 0,1,0,0,0 },
|
|
{ 0,0,0,1,1 },
|
|
{ 1,0,0,0,0 },
|
|
{ 0,0,0,1,1 },
|
|
|
|
// level 7 - 6 lines
|
|
{ 0,1,0,1,0 },
|
|
{ 0,1,0,1,0 },
|
|
{ 0,0,0,1,0 },
|
|
{ 0,0,0,1,0 },
|
|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