00001 #include "globals.h"
00002
00003 void Reset()
00004 {
00005 frames = 0;
00006
00007 if (!options.init)
00008 {
00009 options.init = true;
00010
00011 options.maxLines = DEFAULT_MAX_PLAYLINES;
00012 options.attackRate = DEFAULT_ATTACK_RATE;
00013 options.powerupRate = DEFAULT_POWERUP_RATE;
00014 memset(options.isPowerupEnabled, true, sizeof(options.isPowerupEnabled));
00015 memset(options.powerupStartQueue, POWERUP_ID_NONE, sizeof(options.powerupStartQueue));
00016 options.powerupsSize = POWERUP_ID_MAX;
00017 for (int i = 0; i < POWERUP_ID_MAX; ++i)
00018 options.powerups[i] = (PowerupId)i;
00019
00020 options.mainMenu = true;
00021 options.inMenu = true;
00022 options.menuchoiceopt = 0;
00023 options.players = 1;
00024 options.netplay = 0;
00025 }
00026
00027
00028
00029 PowerupUtils::DeleteAllPowerups();
00030
00031 for (int i = 0; i < MAX_PLAYERS; ++i)
00032 {
00033 g_players[i].Reset();
00034
00035 for (int y = 0; y < MAX_PLAYFIELD_HEIGHT; ++y)
00036 {
00037 for (int x = 0; x < MAX_PLAYFIELD_WIDTH; ++x)
00038 map[i][x][y] = 9;
00039 }
00040 }
00041
00042
00043 InitBlocks();
00044 }