fillscr.h
来自「c游戏编程从入门到精通_全部源代码和文档」· C头文件 代码 · 共 24 行
H
24 行
void Fill_Screen(int value)
{
_fmemset(video_buffer,(char)value,SCREEN_WIDTH*SCREEN_HEIGHT+1);
}
void Sheer(void)
{
long index;
int x,y;
x=rand()%320;
y=rand()%200;
for(index=0;index<100000;index++)
{
x+=17;
y+=13;
if(x>319)
x=x-319;
if(y>199)
y=y-199;
Plot_Pixel_Fast(x,y,0);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?