Skip to content

Commit 43a70e2

Browse files
committed
restored NTSC/PAL50 version
1 parent a52545b commit 43a70e2

File tree

3 files changed

+11
-256
lines changed

3 files changed

+11
-256
lines changed

game/ms-snake!.bas

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
* Maria Segnalini <maria.segnalini@bgmail.com>
88
*/
99

10-
; use PAL system (312 scanlines, 50Hz)
11-
set tv pal
10+
; use NTSC system (262 scanlines, 60Hz)
11+
set tv ntsc
1212

1313
; use 32KB ROM (8 banks) with Super Chip RAM
1414
set romsize 32kSC
@@ -170,7 +170,7 @@ _TitleScreenSetup
170170
score2 = highScore2
171171
score3 = highScore3
172172

173-
if !switchbw then scorecolor = SCORE_PAL_COLOR else scorecolor = SCORE_NTSC_COLOR
173+
if switchbw then scorecolor = SCORE_PAL_COLOR else scorecolor = SCORE_NTSC_COLOR
174174

175175
; debounce the reset switch
176176
bits0_DebounceReset{0} = 1
@@ -188,8 +188,8 @@ _TitleScreenSetup
188188
_TitleScreenLoop
189189

190190
; check title colors
191-
if !switchbw then bmp_48x1_2_color = TITLE1_PAL_COLOR else bmp_48x1_2_color = TITLE1_NTSC_COLOR
192-
if !switchbw then bmp_48x1_3_color = TITLE2_PAL_COLOR else bmp_48x1_3_color = TITLE2_NTSC_COLOR
191+
if switchbw then bmp_48x1_2_color = TITLE1_PAL_COLOR else bmp_48x1_2_color = TITLE1_NTSC_COLOR
192+
if switchbw then bmp_48x1_3_color = TITLE2_PAL_COLOR else bmp_48x1_3_color = TITLE2_NTSC_COLOR
193193

194194
; swap aninamtion frames
195195
if frames<210 then bmp_48x1_2_index=0 else bmp_48x1_2_index=117
@@ -297,7 +297,7 @@ end
297297

298298
_MainLoop
299299

300-
if !switchbw then COLUP0 = FOOD_PAL_COLOR else COLUP0 = FOOD_NTSC_COLOR
300+
if switchbw then COLUP0 = FOOD_PAL_COLOR else COLUP0 = FOOD_NTSC_COLOR
301301

302302
bits1_DebounceFireButton{1} = 0
303303

@@ -321,8 +321,8 @@ _SkipMainReset
321321
; check to see if the game is over
322322
if bits2_GameOverFlag{2} then goto _GameOverSetup bank3
323323

324-
if !switchbw then COLUPF = FOREG_PAL_COLOR else COLUPF = FOREG_NTSC_COLOR
325-
if !switchbw then COLUBK = BACKG_PAL_COLOR else COLUBK = BACKG_NTSC_COLOR
324+
if switchbw then COLUPF = FOREG_PAL_COLOR else COLUPF = FOREG_NTSC_COLOR
325+
if switchbw then COLUBK = BACKG_PAL_COLOR else COLUBK = BACKG_NTSC_COLOR
326326

327327
pfpixel headX headY on
328328
if grown=0 then pfpixel tailX tailY off
@@ -560,8 +560,8 @@ end
560560
_GameOverLoop
561561

562562
; set right color values
563-
if !switchbw then COLUPF = GAMEOVER_PAL_FOREG else COLUPF = GAMEOVER_NTSC_FOREG
564-
if !switchbw then COLUBK = GAMEOVER_PAL_BACKG else COLUBK = GAMEOVER_NTSC_BACKG
563+
if switchbw then COLUPF = GAMEOVER_PAL_FOREG else COLUPF = GAMEOVER_NTSC_FOREG
564+
if switchbw then COLUBK = GAMEOVER_PAL_BACKG else COLUBK = GAMEOVER_NTSC_BACKG
565565

566566
; rationale
567567
; pluggable mini-kernels should modify pre-configured colors

game/std_overscan.asm

Lines changed: 0 additions & 245 deletions
This file was deleted.

game/titlescreen/asm/titlescreen.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ title_do_vertical_sync
1616
sta WSYNC ;one line with VSYNC
1717
sta VSYNC ;enable VSYNC
1818
sta WSYNC ;one line with VSYNC
19-
;;; sta WSYNC ;one line with VSYNC
19+
sta WSYNC ;one line with VSYNC
2020
lda #0
2121
sta WSYNC ;one line with VSYNC
2222
sta VSYNC ;turn off VSYNC

0 commit comments

Comments
 (0)