man's People
man's Issues
ik.cpp
#include
#include<stdio.h>
#include<time.h>
#include"hamtienich.h"
#include"cackieudulieumoi.h"
#include"cachamsulygamechinh.h"
#include"khoitao.h"
using namespace std;
#define consoleHeight 25
#define ROAD 41
int main(){
xedua xe;
vatcan vc[3];
char a[25][42];
//tao bo sinh so ngau nhien
srand(time(NULL));
//an con tro tren man hinh
ShowCur(false);
//tao duong dua
khoitao1(a);
//tao hinh dang,vi tri cac vat
khoitao(xe,vc);
//hien thi thong tin tro choi
gotoXY(55,12);
cout<<" Dan: 0";
gotoXY(55,13);
cout<<" SO VAT CAN QUA: 0";
gotoXY(55,14);
cout<<" MANG SONG: 0";
while (1){
xe.tem++;
if(xe.tem>100) {//kiem tra xem da du thoi gian nap dan chua
xe.dan++;
xe.affirmation[0]=true;
xe.tem=0;
}
//update lai vi tri,hinh dang cac vat tren duong dua
Update(xe,vc,a);
//hien thi tro choi
Display(xe,vc,a);
//xoa cac vat tren duong dua
Delete(xe,vc,a);
//choi game
Control(xe);
//tam dung tro choi khi co lenh
dungtrochoi(xe);
//xu ly game
xuly(vc,xe,a);
//xy ly lua chon cua nguoi choi khi thua cuoc
xulyluachon(xe,vc);
Sleep(50);
}
}
nhul
#include
#include<stdio.h>
#include<time.h>
#include"hamtienich.h"
#include"cackieudulieumoi.h"
#include"cachamsulygamechinh.h"
#include"khoitao.h"
using namespace std;
#define consoleHeight 25
#define ROAD 41
int main(){
xedua xe;
vatcan vc[3];
char a[25][42];
//tao bo sinh so ngau nhien
srand(time(NULL));
//an con tro tren man hinh
ShowCur(false);
//tao duong dua
khoitao1(a);
//tao hinh dang,vi tri cac vat
khoitao(xe,vc);
//hien thi thong tin tro choi
gotoXY(55,12);
cout<<" Dan: 0";
gotoXY(55,13);
cout<<" SO VAT CAN QUA: 0";
gotoXY(55,14);
cout<<" MANG SONG: 0";
while (1){
xe.tem++;
if(xe.tem>100) {//kiem tra xem da du thoi gian nap dan chua
xe.dan++;
xe.affirmation[0]=true;
xe.tem=0;
}
//update lai vi tri,hinh dang cac vat tren duong dua
Update(xe,vc,a);
/
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.