#pragma once
#include "stdafx.h"
#include "Stage.h"
#include "Player.h"
#include "Snowball.h"
IMAGE background_img, title_img, begin_img, game_help_img, move_rule_img;
IMAGE return_img, onemode_img, twomode_img;
int player_cnt = 0;
void ShowMenu()
{
putimage(0, 0, &background_img);
putimage(4 * UNIT, UNIT, &title_img);
putimage(8 * UNIT, 8 * UNIT, &begin_img);
putimage(8 * UNIT, 10 * UNIT, &game_help_img);
}
void ShowHelp()
{
putimage(0, 0, &background_img);
putimage(100, 100, &move_rule_img);
putimage(22 * UNIT, 0, &return_img);
}
void ShowMode()
{
putimage(0, 0, &background_img);
putimage(4 * UNIT, UNIT, &title_img);
putimage(22 * UNIT, 0, &return_img);
putimage(10 * UNIT, 9 * UNIT, &onemode_img);
putimage(10 * UNIT, 11 * UNIT, &twomode_img);
}
bool OkHit(char ch)
{
if (ch == 'a' || ch == 'd' || ch == 'j' || ch == 'k')
return true;
if (player_cnt == 2)
{
if (ch == 37 || ch ==