Skip to content

Commit 140c124

Browse files
committed
Differentiate difficulty levels on the title screen
1 parent f13e8af commit 140c124

1 file changed

Lines changed: 17 additions & 8 deletions

File tree

software/atari2600-game/berta-and-butterflies.bas

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,17 @@
1010
const _red=$64
1111
const _white=$0E
1212
const _yellow=$28
13-
const _brown=$22
14-
const _green=$58
15-
const _gray=$08 */
13+
const _brown=$42
14+
const _green=$58 */
1615

1716
/* ntsc colors */
1817
const _blue=$98
1918
const _blue_gray=$8C
2019
const _red=$44
2120
const _white=$0E
2221
const _yellow=$18
23-
const _brown=$12
22+
const _brown=$22
2423
const _green=$C8
25-
const _gray=$08
2624

2725
const pfscore=1
2826

@@ -102,7 +100,10 @@ __sound_muted
102100
player0x=60
103101

104102
COLUBK=_blue
105-
COLUP1=_brown
103+
COLUP1=_white
104+
105+
if _game_mode = 0 && !switchleftb then COLUP1=_red
106+
if _game_mode = 2 then COLUP1=_red
106107

107108
NUSIZ0=$07
108109
NUSIZ1=$05
@@ -381,7 +382,6 @@ __berta_right_set
381382

382383
if _game_mode > 0 then goto __title_screen_handled
383384

384-
COLUP1=_white
385385
NUSIZ1=0
386386
REFP1=0
387387
player0x=108
@@ -511,6 +511,9 @@ __title_screen_music_handled
511511
if _berta_position = 2 then _berta_position = 0 : goto __title_screen_counter_handled
512512

513513
__title_screen_counter_handled
514+
515+
if switchleftb then var0 = %11100000
516+
if !switchleftb then var1 = %10000000 : var2 = %11000000 /* pfpixel 15 0 : pfpixel 16 0 : pfpixel 17 0 */
514517
_title_screen_counter = _title_screen_counter - 1
515518

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

529532
__title_screen_handled
530533

531-
if _after_scored_duration > 0 then _after_scored_duration = _after_scored_duration - 1 : COLUP1 = _red
534+
if _after_scored_duration = 0 then goto __after_scored_handled
535+
536+
_after_scored_duration = _after_scored_duration - 1
537+
COLUP1 = _red
538+
if !switchleftb then COLUP1 = _white
539+
540+
__after_scored_handled
532541

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

0 commit comments

Comments
 (0)