#include #include #include #include "config.h" #include "scrolltext/scrolltext.h" #include "animations/snake.h" #include "animations/program.h" #include "animations/matrix.h" #include "animations/dna.h" #include "animations/gameoflife.h" #include "animations/stonefly.h" #include "animations/flyingdots.h" #include "animations/breakout_demo.h" #include "animations/ltn_ant.h" #include "animations/bitmapscroller/laborlogo.h" #include "animations/bitmapscroller/amphibian.h" #include "animations/bitmapscroller/outofspec.h" #include "animations/bitmapscroller/fairydust.h" #include "animations/fpmath_patterns.h" #include "animations/mherweg.h" #include "animations/moire.h" #include "animations/blackhole.h" #include "animations/squares.h" #ifdef ANIMATION_TIME #include "animations/borg_time.h" #endif #include "borg_hw/borg_hw.h" #include "can/borg_can.h" #include "random/prng.h" #include "random/persistentCounter.h" #include "mcuf/mcuf.h" #include "menu/menu.h" #include "pixel.h" #ifdef SMALLANIMATION_ROWWALK # include "smallani/rowwalk.h" #endif #ifdef SMALLANIMATION_COLWALK # include "smallani/colwalk.h" #endif #ifdef SMALLANIMATION_ROWBOUNCE # include "smallani/rowbounce.h" #endif #ifdef SMALLANIMATION_COLBOUNCE # include "smallani/colbounce.h" #endif #ifdef JOYSTICK_SUPPORT # include "joystick/joystick.h" #endif volatile unsigned char oldMode, oldOldmode, reverseMode, mode; jmp_buf newmode_jmpbuf; #ifndef MENU_SUPPORT void snake_game(void); void tetris(void); void tetris_bastet(void); void tetris_fp(void); void borg_invaders(void); void borg_breakout(unsigned char demomode); #endif void display_loop(){ // mcuf_serial_mode(); mode = setjmp(newmode_jmpbuf); oldOldmode = oldMode; #ifdef JOYSTICK_SUPPORT waitForFire = 1; #endif for(;;){ #ifndef MENU_SUPPORT clear_screen(0); #endif oldMode = mode; switch(mode++) { #ifdef ANIMATION_SCROLLTEXT case 1: scrolltext(scrolltext_text); #ifdef RANDOM_SUPPORT { char a[28]; sprintf(a,"