ege图形库--多图像运动与帧率(四)

//基础动画三,更丰富的变化与帧率 #include <graphics.h> #include <stdio.h> void mainloop() { //x,y记录当前位置,dx,dy记录速度向量,r记录圆半径 int x = 0, y = 0, dx = 1, dy = 1, r = 100; for ( ; is_run(); delay_fps(60) ) { //
相关文章
相关标签/搜索