Skip to content

Commit

Permalink
experiments and tuning with bbc7 and bbcmaster
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabrizio-Caruso committed Nov 8, 2024
1 parent f6985ba commit 5d171c2
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 11 deletions.
6 changes: 5 additions & 1 deletion src/games/shoot/config/game_config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@ MICRO_GAME_OPTS ?= -DNO_BLINKING -DBOMB_DRAW_SKIP=3 -DWALL_DRAW_SKIP=15 -DGHOSTS

CAMPUTERS_LYNX_GAME_OPTS ?= -DNO_BLINKING -DBOMB_DRAW_SKIP=3 -DWALL_DRAW_SKIP=7 -DGHOSTS_NUMBER=7 -DMAX_ARROWS_ON_SCREEN=7 -DFASTER_WALL_REDRAW -DNUMBER_OF_MISSILES=3

TI99_GAME_OPTS ?= -DLESS_TEXT -DNO_HINTS -DSIMPLE_STRATEGY -DNO_BLINKING -DBOMB_DRAW_SKIP=3 -DWALL_DRAW_SKIP=7 -DGHOSTS_NUMBER=7 -DMAX_ARROWS_ON_SCREEN=7 -DFASTER_WALL_REDRAW -DNUMBER_OF_MISSILES=3
TI99_GAME_OPTS ?= -DLESS_TEXT -DNO_HINTS -DSIMPLE_STRATEGY -DNO_BLINKING -DBOMB_DRAW_SKIP=3 -DWALL_DRAW_SKIP=7 -DGHOSTS_NUMBER=7 -DMAX_ARROWS_ON_SCREEN=7 -DFASTER_WALL_REDRAW -DNUMBER_OF_MISSILES=3

BBC7_GAME_OPTS ?= -DLESS_TEXT

BBCMASTER_GAME_OPTS ?= -DLESS_TEXT -DNO_HINTS
2 changes: 1 addition & 1 deletion src/games/shoot/config/project_config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ _NCURSES_SLOWDOWN=1


# VBCC
_BBC_SLOWDOWN=100
_BBC_SLOWDOWN=45
22 changes: 14 additions & 8 deletions src/makefiles.common/targets/vbcc/Makefile_bbc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ bbcmaster: $(TOOLS_PATH)/bbc/bbcim$(COMPILEDEXT) $(ASSETS_PATH)/8x8_chars.h
$(VBCC_COMPILER) +bbc -v $(VBCC_BBC_OPTS) $(INCLUDE_OPTS) \
-D__NORMALIZED_RAND -D__BBC__ \
-DXSize=20 -D__BBC_MODE=2 -D__SHADOW_RAM -D__BBC_GRAPHICS \
-DYSize=31 $(BBC_COLORS) \
-DYSize=31 $(BBC_COLORS) $(BBCMASTER_GAME_OPTS) \
-D_XL_SLOW_DOWN_FACTOR=$(_COMMON_SLOWDOWN_FACTOR)*$(_BBC_SLOWDOWN) \
-D__ALT_SLEEP \
-D_XL_NO_JOYSTICK \
Expand All @@ -16,8 +16,10 @@ bbcmaster: $(TOOLS_PATH)/bbc/bbcim$(COMPILEDEXT) $(ASSETS_PATH)/8x8_chars.h
$(CROSS_LIB_PATH)/sound/vbcc/bbc/bbc_sounds.c \
$(FULL_FILES) -o xchase
$(TOOLS_PATH)/bbc/bbcim$(COMPILEDEXT) -a X$(GAME_NAME)_$@.img xchase
rm -rf xchase
rm -rf xchase.inf
# rm -rf xchase
mv xchase.inf $(BUILD_PATH)/X$(GAME_NAME)_$@.inf
mv xchase $(BUILD_PATH)/X$(GAME_NAME)_$@
# rm -rf xchase.inf
mv X$(GAME_NAME)_$@.img $(BUILD_PATH)

bbc: bbc5
Expand All @@ -26,7 +28,7 @@ bbc7: $(TOOLS_PATH)/bbc/bbcim$(COMPILEDEXT)
$(VBCC_COMPILER) +bbc7 -v $(VBCC_BBC_OPTS) $(INCLUDE_OPTS) \
-D__NORMALIZED_RAND -D__BBC__ \
-DXSize=40 -D__BBC_MODE=7 -D__BBC_GRAPHICS -D_XL_NO_UDG \
-DYSize=24 $(BBC_COLORS) \
-DYSize=24 $(BBC_COLORS) $(BBC7_GAME_OPTS) \
-D_XL_SLOW_DOWN_FACTOR=$(_COMMON_SLOWDOWN_FACTOR)*$(_BBC_SLOWDOWN) \
-D_XL_NO_COLOR \
-D__ALT_SLEEP \
Expand All @@ -36,8 +38,10 @@ bbc7: $(TOOLS_PATH)/bbc/bbcim$(COMPILEDEXT)
$(CROSS_LIB_PATH)/sound/vbcc/bbc/bbc_sounds.c \
$(FULL_FILES) -o xchase
$(TOOLS_PATH)/bbc/bbcim$(COMPILEDEXT) -a X$(GAME_NAME)_$@.img xchase
rm -rf xchase
rm -rf xchase.inf
# rm -rf xchase
mv xchase.inf $(BUILD_PATH)/X$(GAME_NAME)_$@.inf
mv xchase $(BUILD_PATH)/X$(GAME_NAME)_$@
# rm -rf xchase.inf
mv X$(GAME_NAME)_$@.img $(BUILD_PATH)


Expand All @@ -53,8 +57,10 @@ bbc2: $(TOOLS_PATH)/bbc/bbcim$(COMPILEDEXT) $(ASSETS_PATH)/8x8_chars.h
$(CROSS_LIB_PATH)/sound/vbcc/bbc/bbc_sounds.c \
$(FULL_FILES) -o xchase
$(TOOLS_PATH)/bbc/bbcim$(COMPILEDEXT) -a X$(GAME_NAME)_$@.img xchase
rm -rf xchase
rm -rf xchase.inf
# rm -rf xchase
mv xchase.inf $(BUILD_PATH)/X$(GAME_NAME)_$@.inf
mv xchase $(BUILD_PATH)/X$(GAME_NAME)_$@
# rm -rf xchase.inf
mv X$(GAME_NAME)_$@.img $(BUILD_PATH)


Expand Down
4 changes: 3 additions & 1 deletion src/template_projects/config/game_config.mk.template
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ VIC_20_EXP_3K_GAME_OPTS ?=

VIC20_UNEXPANDED_GAME_OPTS ?=

STDIO_GAME_OPTS ?=
STDIO_GAME_OPTS ?=

BBC7_GAME_OPTS ?=

0 comments on commit 5d171c2

Please sign in to comment.