Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Productions > Yet another coding problem
2002-08-28 20:30
Richard

Registered: Dec 2001
Posts: 619
Yet another coding problem

Hi gang,

I'm preparing a 4-level playable preview of Bomb Chase for Commodore Scene cover disk, but I seem to have some problems regarding my code. I set $0380 as level_ct, but the levels seem to skip once completed a certain level, therefore making my game preview a right pain in the a**e. Here's what I written:

lda level_ct
cmp #$01
beq blue (Works all the time)
cmp #$02
beq green
cmp #$03
beq red
cmp #$04
beq brown
jmp $5400 ;Display game complete message

blue lda #$06
ldx #$0e
sta $d022
stx $d023
jmp maingame
red lda #$02
ldx #$0a
sta $d022
jmp maingame
stx $d023

When a life is lost, a new interrupt is playing. The same goes for level complete. I add inc level_ct once, then jmp leveldone, but instead of jumping on to the next level screen and colour(once level 1 is complete). Please can you tell me what's wrong? Is it related to calling SEI to the level complete routine? If not, why is this happening? It's frustrating - for me I want to get this preview done before the weekend.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Xiny6581/Dees Produc..
rexbeng
Apollyon/ALD
Krill/Plush
TLF/Sonic Uproar
MCM/ONSLAUGHT
Guests online: 126
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Bromance  (9.6)
10 Memento Mori  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Diskmag Editors
1 Jazzcat  (9.4)
2 Magic  (9.4)
3 hedning  (9.2)
4 Newscopy  (9.1)
5 Elwix  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.034 sec.