Let's make 16 games in C++(四):Arkanoid

1、准备游戏需要的背景图 ①方块图 ②挡板图 ③球图 ④背景图   2、首先渲染一个520x450的窗口,将方块和背景都渲染出来 #include<SFML/Graphics.hpp> #include<time.h> using namespace sf; int main() { srand(time(0)); RenderWindow app(VideoMode(520, 450
相关文章
相关标签/搜索