Giter Site home page Giter Site logo

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.