⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 一个漂亮的万花筒.cpp

📁 一个漂亮的万花筒游戏
💻 CPP
字号:
/***********************
软件工程2002级3班
靳国荣
学号:20026235
***********************/

#include <stdlib.h>
#include "ezwin.h"
#include "ircleShape.h"
#include "RandomInt.h"
#include "SquareShape.h"
#include "TriangleShape.h"
#include "Kaleidoscope.h"

SimpleWindow KWindow("Kaleidoscope",10.0,10.0,Position(2.0,2.0));

Kaleidoscope KScope(KWindow,1000);
int DispatchTimerClick()
{
KScope.Turn();
return 1;
}

int ApiMain()
{
KWindow.Open();
KWindow.SetTimerCallback(DispatchTimerClick);
KWindow.StartTimer(KScope.GetSpeed());
return 0;
}
int ApiEnd()
{
KWindow.Close();
return 0;

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -