破晓

17岁

自制小游戏 《逆行》 铜牌收录

A,D键躲避迎面而来的车辆。

所需图片资源:

#include <graphics.h>
#include <time.h>   
#include <stdio.h>
#include <string>
#include <tchar.h>
#include <iostream>
#include <conio.h>
using namespace std;
IMAGE Texture_BK;	//背景图
IMAGE Texture_Car;	//车
IMAGE Texture_Car2;	//车2
IMAGE Texture_BCar;	//车掩码
IMAGE Texture_BCar2;//车掩码2
struct player
{
	int x;

	int road_type;
	int time;
	bool Ctrl;
	void init() {
		Ctrl = f
...