### English | [中文](/中文介绍)
# 2D_TankWar
2D_TankWar is a 2D C++ game using EasyX library to develop.<br/>
## Table of Contents
- [Development technology](#development-technology)
- [Installation guide](#installation-guide)
- [Module declaration](#module-declaration)
- [Thoughts](#thoughts)
- [Operation instruction](#operation-instruction)
- [Game Screenshot](#game-screenshot)
- [License](#license)
## Development technology <a name="development-technology"></a>
C++ class and the use of object-oriented knowledge, the use of easyX library.<br/>
EasyX library https://easyx.cn/.
## Installation guide <a name="installation-guide"></a>
Since some of the illustrations are set to absolute paths, please install the project on disk D.<br/>
## Module declaration <a name="module-declaration"></a>
The code is written in [c++项目(2019.8)](https://github.com/HeXavi8/2D_TankWar/tree/main/c%2B%2Bproject/c%2B%2B%E9%A1%B9%E7%9B%AE%EF%BC%882019.8%EF%BC%89)<br/>
class rect: describe the information of tank and shell<br/>
class point: describe the information of position<br/>
class graphic: describe the information of pictures<br/>
class object: is base class<br/>
class tank: its inheritance class are mainTank and enemy which describe the information of tank <br/>
class bullet: describes the information of bullet <br/>
class check: check collisions between tank and shell <br/>
## Thoughts <a name="thoughts"></a>
This is the first project which I spent two weeks on when I learned C++ (also the first programming language I learned) in 2019. After this project, I had a deeper understanding of C++ and learned the application of EasyX library. Due to the limited time, I could not develop more details of the game, such as increasing the levels of the game and enhancing players experience. <br/>
## Operation instruction <a name="operation-instruction"></a>
W - up <br/>
A - left <br/>
S - down <br/>
D - right <br/>
Space- fire <br/>
Esc - exit <br/>
Enter - suspended <br/>
## Game Screenshot <a name="game-screenshot"></a>
![avatar](https://github.com/HeXavi8/2D_TankWar/blob/main/2D_TankWar.png)
## License <a name="license"></a>
[MIT](https://github.com/HeXavi8/2D_TankWar/blob/main/LICENSE)
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
【项目资源】: 包含前端、后端、移动开发、操作系统、人工智能、物联网、信息化管理、数据库、硬件开发、大数据、课程资源、音视频、网站开发等各种技术项目的源码。 包括STM32、ESP8266、PHP、QT、Linux、iOS、C++、Java、python、web、C#、EDA、proteus、RTOS等项目的源码。 【项目质量】: 所有源码都经过严格测试,可以直接运行。 功能在确认正常工作后才上传。 【适用人群】: 适用于希望学习不同技术领域的小白或进阶学习者。 可作为毕设项目、课程设计、大作业、工程实训或初期项目立项。 【附加价值】: 项目具有较高的学习借鉴价值,也可直接拿来修改复刻。 对于有一定基础或热衷于研究的人来说,可以在这些基础代码上进行修改和扩展,实现其他功能。 【沟通交流】: 有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 鼓励下载和使用,并欢迎大家互相学习,共同进步。
资源推荐
资源详情
资源评论
收起资源包目录
2D tank war game based on C++. 基于C++的2D坦克大战小游戏.zip (72个子文件)
资料总结
.gitattributes 66B
LICENSE 1KB
中文介绍
README.md 2KB
c++project
image
2.jpg 3.09MB
Tank War bgm.mp3 387KB
Tank.png 76KB
TWbgm.wav 387KB
victory.jpg 17KB
gif.gif 29KB
1.jpg 1.13MB
背景.jpg 4KB
封面.jpg 119KB
GameOver.jpg 56KB
qiang.jpg 1KB
river.jpg 2KB
3.jpg 1.94MB
tree.jpg 6KB
.vs
c++project
v15
Browse.VC.db 35.55MB
Solution.VC.db 372KB
.suo 47KB
ipch
AutoPCH
b27b7d454c173b25
GRAPHIC.ipch 56.94MB
9deab204c8a4f05d
BULLET.ipch 56.94MB
6fdf1980b4c47be8
MAIN.ipch 65.13MB
d60808ecec41ce65
BULLET.ipch 56.94MB
c++project.sln 1KB
c++project.exe 204KB
c++项目(2019.8)
MainTank.cpp 6KB
Position_Point.cpp 516B
Object.h 535B
Check.cpp 2KB
MainTank.h 504B
c++项目(2019.8).vcxproj.user 162B
Tank.h 695B
Enemy.h 424B
Bullet.h 435B
Enemy.cpp 7KB
Check.h 403B
main.cpp 5KB
Graphic.cpp 2KB
Graphic.h 784B
Rectangle.h 2KB
Position_Point.h 588B
Set.cpp 130B
Bullet.cpp 3KB
Rectangle.cpp 2KB
c++项目(2019.8).vcxproj.filters 2KB
Debug
vc141.pdb 516KB
Enemy.obj 101KB
Bullet.obj 58KB
vc141.idb 659KB
Check.obj 44KB
Graphic.obj 50KB
Set.obj 21KB
c++项目(2019.8).log 232B
MainTank.obj 101KB
Position_Point.obj 26KB
Rectangle.obj 37KB
c++project.tlog
CL.write.1.tlog 8KB
c++project.lastbuildstate 198B
CL.command.1.tlog 11KB
link.command.1.tlog 4KB
link.read.1.tlog 12KB
link.write.1.tlog 3KB
CL.read.1.tlog 529KB
main.obj 364KB
c++项目(2019.8).vcxproj 7KB
Set.h 195B
Debug
c++project.ilk 1.02MB
c++project.exe 204KB
c++project.pdb 1.02MB
2D_TankWar.png 225KB
README.md 2KB
共 72 条
- 1
资源评论
妄北y
- 粉丝: 9716
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功