view final_isi/main.c @ 89:ea44e1d9eb7c default tip

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 25 May 2014 05:03:14 +0300
parents c13a2f8c5b10
children
line wrap: on
line source

#include <stdio.h>
#include <stdlib.h>
#include "pwplib.h"

char setup_english=0;

extern void playtick();

int main(int argc,char**argv)
{
   if(!pwplib_init(argc,argv))return 1;

   pwpwrite("final isi (1st at abduction '98 pc introcompo)\n");

   pwplib.videobuf.width=80;
   pwplib.videobuf.height=50;
   
   if(!pwplib.setup[SETUP_NOSOUND])
      pwplib.player=playtick;

   precalx();
   
   pwpwrite(setup_english?"using the english language\n"
                         :"puhumme suomea\n");

   pwplib_startup();
   
   demoloop();
   
   pwplib_end();

   return 0;
}