Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Harvey ! (Registered 2024-11-25) 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
Alakran_64
Mr. Sex/Byterapers
A3/AFL
zscs
Bob/Censor Design
encore
The Syndrom/TIA/Pret..
Six/G★P
Flex/Artline Designs
kbs/Pht/Lxt
Critikill (CK)/S16 ^..
dyme
TheRyk/MYD!
Fresh
Thunder.Bird/HF/MYD!..
Guests online: 140
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 The Demo Coder  (9.6)
5 Edge of Disgrace  (9.6)
6 Mojo  (9.6)
7 What Is The Matrix 2  (9.6)
8 Uncensored  (9.6)
9 Wonderland XIV  (9.6)
10 Comaland 100%  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 Libertongo  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Morph  (9.5)
9 Dawnfall V1.1  (9.5)
10 It's More Fun to Com..  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Nostalgia  (9.3)
5 Triad  (9.2)
Top Graphicians
1 Mirage  (9.7)
2 Archmage  (9.7)
3 Mikael  (9.6)
4 Carrion  (9.6)
5 Sulevi  (9.6)

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