2 Commits

2 changed files with 4 additions and 2 deletions

View File

@@ -49,9 +49,7 @@ int8_t tail_length = 2;
uint32_t gamespeed; uint32_t gamespeed;
uint32_t lastupdate; uint32_t lastupdate;
uint32_t difficulty = 0; uint32_t difficulty = 0;
uint8_t pad1 = 0;
uint8_t score = 0; uint8_t score = 0;
uint8_t pad2 = 0;
uint8_t open_indexes[64] = {0}; uint8_t open_indexes[64] = {0};
Button btn_left = {PIN_BUTTON_LEFT, 0, LOW, BUTTON_STABLETIME, 0}; Button btn_left = {PIN_BUTTON_LEFT, 0, LOW, BUTTON_STABLETIME, 0};
@@ -186,6 +184,8 @@ void place_random_entity(int8_t eflags, int8_t set_player)
if ( open_positions == 0 ) { if ( open_positions == 0 ) {
// This is a win condition! // This is a win condition!
gamestate = GAMESTATE_WIN; gamestate = GAMESTATE_WIN;
delta_x = 0;
delta_y = 0;
return; return;
} }

View File

@@ -6,6 +6,8 @@ This project uses 3 74HC595 serial to parallel shift registers, a 7-segment disp
This was easily the most challenging project so far, taking me almost two weeks to get it working right. I wound up having to break the project out across 4 separate breadboards. The breadboards look as gross in real life as it does in Fritzing. This was easily the most challenging project so far, taking me almost two weeks to get it working right. I wound up having to break the project out across 4 separate breadboards. The breadboards look as gross in real life as it does in Fritzing.
[Here is a video of it working](https://x.com/AKLabsDotNet/status/2067645849258103188?s=20)
# Lessons Learned # Lessons Learned
* C has admitted design flaws * C has admitted design flaws