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: 621
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
MWR/Visdom
ccr/TNSP
csabanw
Guests online: 382
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Codeboys & Endians  (9.7)
4 Mojo  (9.6)
5 Coma Light 13  (9.6)
6 Edge of Disgrace  (9.6)
7 Signal Carnival  (9.6)
8 Uncensored  (9.5)
9 Wonderland XIV  (9.5)
10 No Bounds  (9.5)
Top onefile Demos
1 Nine  (9.7)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.5)
6 Scan and Spin  (9.5)
7 Onscreen 5k  (9.5)
8 Grey  (9.5)
9 Dawnfall V1.1  (9.5)
10 Rainbow Connection  (9.5)
Top Groups
1 Artline Designs  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Performers  (9.3)
5 Censor Design  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 OTD  (9.8)
3 Antitrack  (9.8)
4 Fungus  (9.8)
5 S!R  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.117 sec.