CSGO,但是像素风 QAQ (肝了一下午,终于!!!! V 0 . 9 . 2 !!!!)

博主分享了自己肝了一个下午的成果,开发出像素风格的CSGO游戏版本V0.9.2。虽然过程艰辛,但还是迫不及待地展示了代码,期待得到大家的关注和支持。
摘要由CSDN通过智能技术生成

兄弟们!

 

我吐血了

我肝了一个下午.....

观众:诶,到底是什么让你吐血啊

 

不扯了,直接上代码!——

#include <bits/stdc++.h>
#include <stdio.h>
#include <iostream>
#include <time.h>
#include <conio.h>
#include <windows.h>      
#include <stdlib.h>         
#include <string.h>
using namespace std;
#define HP 100
int input=0;
int fangx, nextfx;
int fxfx[4][2] = {
  {0, -1}, {1, 0}, {0, 1}, {-1, 0}};
int x=1,y=1;
int n=1;
int hp1=100,hp2=100,hp3=100,hp4=100,hp5=100;
void open(){
	cout<<endl<<endl<<endl<<"             CS:GO";
	Sleep(2000);
	system("cls");
}
int t=5,ct=5,T=0,CT=0,f=0;
float h=2.00;
//0:路,1:墙,3:出生地,4:门,5:玻璃,6:你,7:包点,8:人质,9:炸弹,10、11、12、13、14:敌人1,2,3,4,5。 
int ditu[100][50][60]={
	{
		{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
		{1,6,3,3,3,3,3,3,3,3,3,3,3,3,3,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
		{1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
		{1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
		{1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
		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1},
		{1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,0,0,0,1,1,0,1,1,1,1,0,1,1,1,1,1},
		{1,1,1,1,4,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,0,1,1,1,1,1},
		{0,0,0,0,0,0,0,0,5,1,1,1,1,1,1,1,1,1,5,5,5,5,5,5,1,1,1,1,0,0,0,0,0,1,1,1,1,0,1,1,1,1,1},
		{0,0,0,0,0,0,0,5,0,0,0,0,0,8,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,1,0,0,1,1,1,1,0,1,1,1,1,1},
		{0,0,0,0,0,0,5,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,1,1,1,1,1,0,1,1,1,1,1},
		{0,0,0,0,0,5,0,0,0,1,1,1,0,0,1,0,0,1,1,0,0,0,0,0,1,1,1,1,1,1,1,4,1,1,1,1,1,0,1,1,1,1,1},
		{5,5,5,5,5,0,0,
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值