火箭工作室c++小游戏——坦克大战(初始版)

本文分享了火箭工作室的C++小游戏——坦克大战的初始版本,具备外挂功能。代码已提供,欢迎下载并留下点赞。作者鼓励读者关注并交流,待点赞数达到50个,将发布坦克大战的加强版。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

今天第四次写博客,给大家发一个坦克大战的初始版,可以开外挂,要自己去探索

#include<windows.h>
#include<conio.h>
#include<iostream>
#include<stdio.h>
#include<cstring>
#include<string>
#include<fstream>
using namespace std;
SYSTEMTIME sys;
int checkpoint,time,time2,times,times2;
int e[20]= {
   1,2,3,4,6,8,10,12,15,18,21,24,28,32,37,42,48,55,65,76};
int e2[20]= {
   100,95,80,76,72,68,64,61,58,55,52,47,43,39,34,30,24,18,15,10};
bool equipment[2][10];
double equipment_health[2][10];
struct tank {
   
	int x,y,d,color,shells_number;
	int interval[2];
} I_tank;
struct bullet {
   
	int x,y,d,color;
	bool fire;
} shells[100];
struct enemy {
   
	int x,y,d,j,color;
	bool go;
} enemies[7];
char checkpoint_name[6][4][8]= {
    {
   "Leve 01","Leve 02","Leve 03","Leve 04"}, {
   "Leve 05","Leve 06","Leve 07","Leve 08"}, {
   "Leve 09","Leve 10","Leve 11","Leve 12"}, {
   "Leve 13","Leve 14","Leve 15","Leve 16"}, {
   "Leve 17","Leve 18","Leve 19","Leve 20"}, {
   " color "," store "," 关于  "," 退出  "} };
bool er[29][29]= {
    {
   1,1,1,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,0,1,1,1,1,1,1,1}, {
   1,0,0,0,0,0,1,0,1,0,1,1,1,1,1,1,0,0,1,1,0,0,1,0,0,0,0,0,1}, {
   1,0,1,1,1,0,1,0,0,1,0,1,0,0,1,1,0,0,0,1,0,0,1,0,1,1,1,0,1}, {
   1,0,1,1,1,0,1,0,1,0,0,1,1,1,0,1,0,1,1,0,0,0,1,0,1,1,1,0,1}, {
   1,0,1,1,1,0,1,0,1,0,1,1,0,1,1,0,0,0,1,1,1,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0,0,1,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,1,1,1,1,0}, {
   1,1,1,1,1,1,1,0,0,0,0,0,1,0,0,1,1,0,0,1,1,0,1,0,1,0,1,1,0}, {
   1,0,0,0,0,0,1,0,1,0,1,1,1,0,1,1,0,0,1,1,1,0,0,0,1,1,0,1,0}, {
   1,0,1,1,1,0,1,0,1,0,1,1,1,1
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值