超级玛丽音乐版代码

#include <yzkgame.h>

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

#pragma comment(lib, "YZKGame.lib")

void gameMain(void)

{


char* music1;


char* music2;


char* music3;


music1 = "超级玛丽民乐版.mp3";


music2 = "愤怒的小鸟背景音.mp3";


music3 = "按键音2.mp3";

    setGameTitle("微信打飞机");


setGameSize(338, 600);


playSound(music2,0);


setBgColor(1,0,0);


pauseGame(10000);


setGameSize(338, 600);


playSound(music1,0);


setBgColor(1,0,0);


pauseGame(10000);


setGameSize(338, 600);


playSound(music3,0);


setBgColor(1,0,0);


pauseGame(10000);


setGameSize(338, 600);


playSound(music2,0);


setBgColor(1,0,0);


pauseGame(10000);

}

int main(void)

{


rpInit(gameMain);


return 0;

}

Published by

风君子

独自遨游何稽首 揭天掀地慰生平