#include <gint/display.h>
#include <gint/keyboard.h>
#include <gint/keycodes.h>
int main(void)
{
int key = 0;
int end = 1;
dclear(C_WHITE);
dtext(1, 1, C_BLACK, "bienvenue a notre");
dtext(1, 9, C_BLACK, "pays");
dupdate();
key = getkey().key;
dclear(C_WHITE);
dtext(1, 1, C_BLACK, "ouioui est emerveille");
dtext(1, 9, C_BLACK, "par la baute du pays");
dupdate();
key = getkey().key;
dclear(C_WHITE);
dtext(1, 1, C_BLACK, "il y a des susettes");
dtext(1, 9, C_BLACK, "partout");
dupdate();
key = getkey().key;
dclear(C_WHITE);
dtext(1, 1, C_BLACK, "les susettes reflète les");
dtext(1, 9, C_BLACK, "raiyons du soleil");
dupdate();
key = getkey().key;
dclear(C_WHITE);
dtext(1, 1, C_BLACK, "tourner la tete?");
dtext(1, 9, C_BLACK, "1:oui 2:non");
dupdate();
while(1){
key = getkey().key;
if(key == KEY_1){
dclear(C_WHITE);
dtext(1, 1, C_BLACK, "de l'autre coté vous");
dtext(1, 9, C_BLACK, "remarquez une belle grose");
dupdate();
key = getkey().key;
dclear(C_WHITE);
dtext(1, 1, C_BLACK, "et grasse susete");
dtext(1, 9, C_BLACK, "1:manger 2:pas manger");
dupdate();
while(1){
key = getkey().key;
if(key == KEY_1){
dclear(C_WHITE);
dtext(1, 1, C_BLACK, "1h plus tard...");
dtext(1, 9, C_BLACK, "");
dupdate();
key = getkey().key;
dclear(C_WHITE);
dtext(1, 1, C_BLACK, "votre ventre explose");
dtext(1, 9, C_BLACK, "vous etes mort");
dupdate();
key = getkey().key;
return 1;
}
if(key == KEY_2){
dclear(C_WHITE);
dtext(1, 1, C_BLACK, "1h plus tard...");
dtext(1, 9, C_BLACK, "");
dupdate();
key = getkey().key;
dclear(C_WHITE);
dtext(1, 1, C_BLACK, "aucune autre susette");
dtext(1, 9, C_BLACK, "est aussi belle que avant");
dupdate();
key = getkey().key;
dclear(C_WHITE);
dtext(1, 1, C_BLACK, "1h plus tard...");
dtext(1, 9, C_BLACK, "");
dupdate();
key = getkey().key;
dclear(C_WHITE);
dtext(1, 1, C_BLACK, "vous mourez de faim...");
dtext(1, 9, C_BLACK, "vous etes mort");
dupdate();
key = getkey().key;
return 1;
}
}
}
if(key == KEY_2){
dclear(C_WHITE);
dtext(1, 1, C_BLACK, "les rayons du soleil");
dtext(1, 9, C_BLACK, "vous eblouit");
dupdate();
key = getkey().key;
dclear(C_WHITE);
dtext(1, 1, C_BLACK, "vous etes aveugle");
dtext(1, 9, C_BLACK, "1:se susider 2:rien faire");
dupdate();
while(1){
key = getkey().key;
if(key == KEY_1){
dclear(C_WHITE);
dtext(1, 1, C_BLACK, "vous etes mort...");
dtext(1, 9, C_BLACK, "");
dupdate();
key = getkey().key;
return 1;
}
if(key == KEY_2){
dclear(C_WHITE);
dtext(1, 1, C_BLACK, "1h plus tard...");
dtext(1, 9, C_BLACK, "");
dupdate();
key = getkey().key;
dclear(C_WHITE);
dtext(1, 1, C_BLACK, "vous tombez dans un");
dtext(1, 9, C_BLACK, "trou");
dupdate();
key = getkey().key;
dclear(C_WHITE);
dtext(1, 1, C_BLACK, "vous etes mort...");
dtext(1, 9, C_BLACK, "");
dupdate();
key = getkey().key;
return 1;
}
}
}
}
return 1;
} |