
游戏
文章平均质量分 56
wangz76
这个作者很懒,什么都没留下…
展开
-
CMake 编译 raylib 程序
CMake 编译 raylib 程序原创 2024-03-13 21:39:30 · 471 阅读 · 0 评论 -
raylib在VS2022上的配置
raylib在VS2022上的配置原创 2024-03-07 16:07:13 · 1207 阅读 · 2 评论 -
raylib库在CodeBlocks上的配置
raylib库在CodeBlocks上的配置原创 2024-03-07 11:43:43 · 271 阅读 · 0 评论 -
用sfml(c++)写消消乐游戏(三消)
程序运行的样子,以下是原程序。#include <SFML/Graphics.hpp>#include <time.h>using namespace std;int total=0; //总共消了多少棋子,数字显示在标题栏int ts= 80; //格子大小sf::Vector2i offset(48,48); //偏差48,24class piece //棋子对象{public: int x,y; ...原创 2021-07-24 00:01:24 · 2484 阅读 · 8 评论 -
sfml c++ 俄罗斯方块
字库文件“arial.ttf”要拷贝到同目录下sfml没有自带字库,如果要使用sf::Text,就一定要使用sf::Font,那么必须要用到外部字库,否则不显示。#include <SFML/Graphics.hpp>#include <time.h>#include <ctime>void Delay(int time)//time*1000为秒数{ clock_t now = clock(); while (clock...原创 2021-04-29 15:40:40 · 696 阅读 · 0 评论 -
用python写俄罗斯方块
程序为树莓派自带原程序。我只是看懂了,注解一下免得以后搞忘了。# Tetromino (a Tetris clone)# By Al Sweigart al@inventwithpython.com# http://inventwithpython.com/pygame# Released under a "Simplified BSD" license# KRT 17/06/201...原创 2019-10-06 00:01:53 · 1142 阅读 · 1 评论