这是一个Game游戏库,定义了一些适合用来做游戏的函数,原框架来源于C++RPG游戏2.1.01测试版《末日之战1:新生》(by YXCJ_岩心_尘寂的博客-优快云博客中的cj.h库,并且我将部分函数修改了一下,又加了几个函数。下面是源代码,有需要的可以拷走(最近也在编写C++RPG游戏):
// Game.h v1.0(适用于C++97编译环境)(Dev-C++编译环境)
// Dev-C++ 如何使用C++11?点击上面的工具->编译选项->代码生成/优化->代码生成:->语言标准(-std)->ISO C++11
#pragma once
#include <iostream>
#include <string>
#include <cstdlib>
#include <ctime>
#include <windows.h>
#include <conio.h>
using namespace std;
void rect(int left, int top, int right, int bottom, string text);//在屏幕上画出一个矩形,左上角坐标是(left, top),右下角坐标是(right, bottom),