le jeu des motos dans tron - retour accueil
git clone git://bebou.netlib.re/tron
Log | Files | Refs | README |
commit 4c8b568e58df3396722c706c011b7ac1bac38c6c parent 1c3b3bd18454c54bbb67c8809232ad5667309c65 Auteurice: Arthur Pons <arthur.pons@unistra.fr> Date: Thu, 19 Jun 2025 22:12:00 +0200 Prototype de title screen Diffstat:
M | tron.c | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/tron.c b/tron.c @@ -112,6 +112,16 @@ int main(int argc, char **argv) { int timeout=80; + tb_printf(width/2-35/2,height/2-5/2,0,0,"████████ ██████ ██████ ███ ██\n\ + ██ ██ ██ ██ ██ ████ ██\n\ + ██ ██████ ██ ██ ██ ██ ██\n\ + ██ ██ ██ ██ ██ ██ ██ ██\n\ + ██ ██ ██ ██████ ██ ████"); + tb_present(); + while(ev.key!=13) { + tb_poll_event(&ev); + } + while(1) { for(int i=0;i<2;i++) update(&cars[i],incs,ticknb);