quick cleanup of old code
This commit is contained in:
@@ -61,8 +61,6 @@ def read_buttons():
|
||||
sw2_t = 0
|
||||
return(sw1_t + sw2_t)
|
||||
|
||||
## ------------- BELL INVADERS START HERE ----------------
|
||||
|
||||
#global variables. Sue me.
|
||||
game_score = 0
|
||||
|
||||
@@ -338,7 +336,6 @@ while game_is_not_over_yet:
|
||||
for alien in Alien.get_all_active():
|
||||
alien.x += alien_step_direction
|
||||
|
||||
|
||||
for alien in Alien.get_all_active():
|
||||
alien.update()
|
||||
oled.blit(alien.sprite, alien.x, alien.y, 0)
|
||||
@@ -384,11 +381,6 @@ while game_is_not_over_yet:
|
||||
|
||||
oled.fill_rect(bomb.x, bomb.y, 2, 3, 1)
|
||||
|
||||
|
||||
# debug info
|
||||
#debugvalue = game_score
|
||||
#oled.text(str(debugvalue), 4, 50)
|
||||
|
||||
oled.show()
|
||||
|
||||
# outside of the loop, this is the GAME OVER SCREEN
|
||||
|
||||
Reference in New Issue
Block a user