使用 C++、EasyX 绘图库编写的 FC-Tank 小游戏
- 编译环境:VS2022 + EasyX2023_大暑版
- EasyX 绘图库地址:https://easyx.cn
- 作者:xiongfj < [email protected] >
- MapEditor 项目包含地图制作代码,可以自行设计地图,目前包含同原版的 35 副地图。
- 项目地址链接:https://codebus.cn/xiongfj/fc-tank
使用 C++、EasyX 绘图库编写的 FC-Tank小游戏
Home Page: https://codebus.cn/xiongfj/fc-tank
使用 C++、EasyX 绘图库编写的 FC-Tank 小游戏
map_12只有22行数据,缺少4行。
官网只提供了Windows的版本,但是MacBook用户无法获取easyX.h源文件,谢谢!
大佬你好,我是一个C++初学者,下载了您的代码学习,在运行后发现了两个BUG:
1.铲子道具只有第一次拾取才有效果,后面不管拾取多少次大本营都不会切换到铁墙模式;
2.拾取铲子道具后大本营会一直维持在铁墙状态,不会随着时间变化切换会普通砖墙;
我试着修改了 PlayerBase.cpp 中的 DispatchProp(int prop_kind) 函数的代码,大概位置在 777行 :
`void PlayerBase::DispatchProp(int prop_kind)
{
MciSound::_PlaySound(S_GETPROP);
mProp.StopShowProp(true);
switch (prop_kind)
{
...
case SHOVEL_PROP: // 铲子
mShovelProp = true;
mShovelProp_counter = 0; // 新增代码
break;
...
default:
break;
}
}`
目前解决了铲子只能拾取一次的BUG;
大本营无法切换回普通砖块状态的问题还没解决,正在研究;
图片无法显示,但子弹可消除墙壁和敌方坦克,运行环境vs2019
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.