使用QT简单实现了目前微信上很火的“羊了个羊”,主要分为以下三个模块。
1、每个关卡中元素的位置使用json文件来保存。
2、读取json文件,并根据位置信息加载所有的元素
3、点击元素后,将元素移动到消除区域,检测到凑成三个相同元素则消除。
程序启动界面
程序运行界面
项目中有一些还未实现的功能
- 游戏界面不够完整,失败之后不能重新开始
- 虽然设计了两个关卡,但没有设置选择关卡的界面
- 添加背景音乐
- 添加得分系统和计时功能
- 设计新的关卡
使用QT实现了微信上最火爆的羊了个羊小游戏,QT,C++,羊了个羊,消消乐,游戏。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.