游戏背景音乐

来源:互联网 发布:韩彬为什么杀黄山知乎 编辑:程序博客网 时间:2024/06/06 14:25
#include <yzkgame.h>


#pragma comment( linker,"/subsystem:\"console\" /entry:\"mainCRTStartup\"" )
#pragma comment(lib, "YZKGame.lib")


void gameMain(void)
{
char* music1;
char* title;
int width;
int height;
int time;
music1 = "网络歌手 - 甩葱歌.mp3";
title = "背景音乐";
width = 400;
height = 500;
time = 5000;
setGameTitle(title);
setGameSize(width,height);
playSound(music1,0);
setBgColor(1, 0, 0, 0);
pauseGame(time);


}


int main(void)
{
原创粉丝点击