Skip to content

Commit

Permalink
Beta to demo/ Modified the readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
kldobrev committed Oct 3, 2022
1 parent f36dabe commit 3182406
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ An early prototype for an original homebrew game for the Nintendo Game Boy, writ

### Only want to play the game?

TBA
Please get the hoverdefender.gb file from the demo release which offers a full playable stage.
The latest .gb file from the project directory may contain work in progress and/or be unplayable.

I strongly recommend using the BGB or Emulicious emulators to run the game.
Binary file modified hoverdefender.gb
Binary file not shown.
26 changes: 12 additions & 14 deletions main.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//#include <gb/gb.h>
#include "tiles/roadtiles.c"
#include "tiles/deserttiles.c"
#include "tiles/cloudtiles.c"
Expand All @@ -23,7 +22,6 @@
#include "machine.c"
#include "projectile.c"
#include "stage.c"
//#include "hUGEDriver.h"


extern const hUGESong_t deserttheme;
Expand Down Expand Up @@ -219,7 +217,7 @@ void init_common_menu_props();
void main_menu();
void stage_intro_screen(UINT8 stnum);
void game_over_menu();
void beta_end_screen(); // BETA CODE
void demo_end_screen(); // DEMO CODE
void password_menu();
void play_stage();
void play_boss();
Expand Down Expand Up @@ -1687,17 +1685,17 @@ void init_common_menu_props() {

void main_menu() {
init_common_menu_props();
const unsigned char pressstartsign[] = {0x1A, 0x1C, 0x0F, 0x1D, 0x1D, 0x00, 0x00, 0x1D, 0x1E, 0x0B, 0x1C, 0x1E}; // BETA CODE
const unsigned char betasign[] = {0x0C, 0x0F, 0x1E, 0x0B, 0x00, 0x20, 0x0F, 0x1C, 0x1D, 0x13, 0x19, 0x18}; // BETA CODE
const unsigned char pressstartsign[] = {0x1A, 0x1C, 0x0F, 0x1D, 0x1D, 0x00, 0x00, 0x1D, 0x1E, 0x0B, 0x1C, 0x1E}; // DEMO CODE
const unsigned char demosign[] = {0x0E, 0x0F, 0x17, 0x19, 0x00, 0x20, 0x0F, 0x1C, 0x1D, 0x13, 0x19, 0x18}; // DEMO CODE
set_bkg_data(33, 78, titlelogotiles);
set_bkg_tiles(2, 1, 16, 6, titlelogomap);
anim_reverse_blackout();
play_song(&titletheme);
set_bkg_tiles(4, 11, 12, 1, pressstartsign);
set_bkg_tiles(4, 15, 12, 1, betasign);
waitpad(J_START); // BETA CODE
stop_song(); // BETA CODE
se_choose_entry(); // BETA CODE
set_bkg_tiles(4, 15, 12, 1, demosign);
waitpad(J_START); // DEMO CODE
stop_song(); // DEMO CODE
se_choose_entry(); // DEMO CODE
anim_blackout();
}

Expand Down Expand Up @@ -1738,7 +1736,7 @@ void game_over_menu() {
}


void beta_end_screen() { // BETA CODE
void demo_end_screen() { // DEMO CODE
init_common_menu_props();
unsigned char tnx1sign[] = {0x1E, 0x12, 0x0B, 0x18, 0x15, 0x00, 0x23, 0x19, 0x1F, 0x00, 0x10, 0x19, 0x1C};
unsigned char tnx2sign[] = {0x1A, 0x16, 0x0B, 0x23, 0x13, 0x18, 0x11, 0x27};
Expand Down Expand Up @@ -1839,7 +1837,7 @@ void main() {
NR51_REG = 0xFF; // All channels
NR50_REG = 0x77; // Max level, left and right

anim_blackout(); // BETA CODE
anim_blackout(); // DEMO CODE
while(1) {
main_menu();
init_game();
Expand All @@ -1857,10 +1855,10 @@ void main() {
} else if(bossclearflg == 0) {
play_boss();
} else { // Current stage and boss both cleared
beta_end_screen(); // BETA CODE
init_game(); // BETA CODE
demo_end_screen(); // DEMO CODE
init_game(); // DEMO CODE
stageclearflg = bossclearflg = 0;
break; // BETA CODE
break; // DEMO CODE
//stagenum++;
//crntstage++; // Next stage data
}
Expand Down

0 comments on commit 3182406

Please sign in to comment.