Skip to content

Commit

Permalink
Differentiate difficulty levels on the title screen
Browse files Browse the repository at this point in the history
  • Loading branch information
vandalton committed Apr 18, 2024
1 parent f13e8af commit 140c124
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions software/atari2600-game/berta-and-butterflies.bas
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,17 @@
const _red=$64
const _white=$0E
const _yellow=$28
const _brown=$22
const _green=$58
const _gray=$08 */
const _brown=$42
const _green=$58 */

/* ntsc colors */
const _blue=$98
const _blue_gray=$8C
const _red=$44
const _white=$0E
const _yellow=$18
const _brown=$12
const _brown=$22
const _green=$C8
const _gray=$08

const pfscore=1

Expand Down Expand Up @@ -102,7 +100,10 @@ __sound_muted
player0x=60

COLUBK=_blue
COLUP1=_brown
COLUP1=_white

if _game_mode = 0 && !switchleftb then COLUP1=_red
if _game_mode = 2 then COLUP1=_red

NUSIZ0=$07
NUSIZ1=$05
Expand Down Expand Up @@ -381,7 +382,6 @@ __berta_right_set

if _game_mode > 0 then goto __title_screen_handled

COLUP1=_white
NUSIZ1=0
REFP1=0
player0x=108
Expand Down Expand Up @@ -511,6 +511,9 @@ __title_screen_music_handled
if _berta_position = 2 then _berta_position = 0 : goto __title_screen_counter_handled

__title_screen_counter_handled

if switchleftb then var0 = %11100000
if !switchleftb then var1 = %10000000 : var2 = %11000000 /* pfpixel 15 0 : pfpixel 16 0 : pfpixel 17 0 */
_title_screen_counter = _title_screen_counter - 1

if !joy0fire && !switchreset then goto __inner_loop_end
Expand All @@ -528,7 +531,13 @@ __title_screen_counter_handled

__title_screen_handled

if _after_scored_duration > 0 then _after_scored_duration = _after_scored_duration - 1 : COLUP1 = _red
if _after_scored_duration = 0 then goto __after_scored_handled

_after_scored_duration = _after_scored_duration - 1
COLUP1 = _red
if !switchleftb then COLUP1 = _white

__after_scored_handled

if _fail_left = 0 && _fail_right = 0 then goto __fail_handled

Expand Down

0 comments on commit 140c124

Please sign in to comment.