first small animations for giga-borg
This commit is contained in:
parent
c62769c583
commit
284fbac533
4
Makefile
4
Makefile
|
@ -39,6 +39,7 @@ include defaults.mk
|
||||||
.subdirs: autoconf.h
|
.subdirs: autoconf.h
|
||||||
@ echo "checking in which subdirs to build"
|
@ echo "checking in which subdirs to build"
|
||||||
@ $(RM) -f $@
|
@ $(RM) -f $@
|
||||||
|
@ echo "SUBDIRS += smallani" >> $@
|
||||||
@ echo "SUBDIRS += animations" >> $@
|
@ echo "SUBDIRS += animations" >> $@
|
||||||
@ (for subdir in `grep -e "^#define .*_SUPPORT" autoconf.h \
|
@ (for subdir in `grep -e "^#define .*_SUPPORT" autoconf.h \
|
||||||
| sed -e "s/^#define //" -e "s/_SUPPORT.*//" \
|
| sed -e "s/^#define //" -e "s/_SUPPORT.*//" \
|
||||||
|
@ -72,7 +73,7 @@ compile-subdirs_avr:
|
||||||
|
|
||||||
.PHONY: compile-$(TARGET)
|
.PHONY: compile-$(TARGET)
|
||||||
compile-$(TARGET): compile-subdirs_avr $(TARGET).hex $(TARGET).bin $(TARGET).lst
|
compile-$(TARGET): compile-subdirs_avr $(TARGET).hex $(TARGET).bin $(TARGET).lst
|
||||||
@ echo "foobar"
|
|
||||||
|
|
||||||
|
|
||||||
OBJECTS += $(patsubst %.c,./obj_avr/%.o,${SRC})
|
OBJECTS += $(patsubst %.c,./obj_avr/%.o,${SRC})
|
||||||
|
@ -141,7 +142,6 @@ menuconfig:
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "Next, you can: "
|
@echo "Next, you can: "
|
||||||
@echo " * 'make' to compile your borgware"
|
@echo " * 'make' to compile your borgware"
|
||||||
|
|
||||||
|
|
||||||
#%/menuconfig:
|
#%/menuconfig:
|
||||||
# $(SH) "$(@D)/configure"
|
# $(SH) "$(@D)/configure"
|
||||||
|
|
|
@ -65,7 +65,7 @@ void flyingdots()
|
||||||
|
|
||||||
//shift the picture right
|
//shift the picture right
|
||||||
//(yes, shift_pixmap_l shifts the picture right)
|
//(yes, shift_pixmap_l shifts the picture right)
|
||||||
shift_pixmap_l();
|
shift_pixmap_l();
|
||||||
|
|
||||||
//wait a bit
|
//wait a bit
|
||||||
wait(100);
|
wait(100);
|
||||||
|
|
|
@ -48,6 +48,7 @@ source can/config.in
|
||||||
|
|
||||||
### Borg Menu #################################################################
|
### Borg Menu #################################################################
|
||||||
dep_bool "menu support" MENU_SUPPORT $JOYSTICK_SUPPORT
|
dep_bool "menu support" MENU_SUPPORT $JOYSTICK_SUPPORT
|
||||||
|
depends on JOYSTICK_SUPPORT
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
|
||||||
|
@ -59,3 +60,7 @@ source games/config.in
|
||||||
### Animations Menu ###########################################################
|
### Animations Menu ###########################################################
|
||||||
source animations/config.in
|
source animations/config.in
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
### small Animations Menu ###########################################################
|
||||||
|
source smallani/config.in
|
||||||
|
###############################################################################
|
||||||
|
|
|
@ -24,6 +24,13 @@
|
||||||
#include "mcuf/mcuf.h"
|
#include "mcuf/mcuf.h"
|
||||||
#include "menu/menu.h"
|
#include "menu/menu.h"
|
||||||
#include "pixel.h"
|
#include "pixel.h"
|
||||||
|
#ifdef SMALLANIMATION_ROWWALK
|
||||||
|
#include "smallani/rowwalk.h"
|
||||||
|
#endif
|
||||||
|
#ifdef SMALLANIMATION_COLWALK
|
||||||
|
#include "smallani/colwalk.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef JOYSTICK_SUPPORT
|
#ifdef JOYSTICK_SUPPORT
|
||||||
# include "joystick/joystick.h"
|
# include "joystick/joystick.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -205,6 +212,18 @@ void display_loop(){
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef SMALLANIMATION_ROWWALK
|
||||||
|
case 36:
|
||||||
|
rowwalk(10,50);
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef SMALLANIMATION_COLWALK
|
||||||
|
case 37:
|
||||||
|
colwalk(10,50);
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef MENU_SUPPORT
|
#ifdef MENU_SUPPORT
|
||||||
case 42:
|
case 42:
|
||||||
mode = 1;
|
mode = 1;
|
||||||
|
|
Loading…
Reference in New Issue