xonix专题

Let's make 16 games in C++(十):Xonix

1、准备游戏需要的背景 2、先渲染一个25x40乘比例(18)的屏幕 #include<SFML/Graphics.hpp>#include<time.h>using namespace sf;const int M = 25;const int N = 40;int grid[M][N] = { 0 };int ts = 18;int main(){srand(time