Vincehood Posted February 20, 2021 Share Posted February 20, 2021 Hi, what is the recommendation for multiple-rooms game when drawing new rooms? Should all the following commands be used in each room: CLS, MODE, DEFINE & SCREEN? I am wondering since I got various results. Do you need to reload the cards for each room with a DEFINE even if the rooms can be drawn based on a common set of cards? Thanks! /V Quote Link to comment Share on other sites More sharing options...
carlsson Posted February 20, 2021 Share Posted February 20, 2021 (edited) CLS and SCREEN should be enough if you're using the same cards for each different screen. You only need DEFINE if you're changing the graphic symbols, and only MODE if you're switching between CS and FGBG mode. Actually you might not even need CLS depending on if your screen fills the entire 20x12 or not. Edited February 20, 2021 by carlsson 1 Quote Link to comment Share on other sites More sharing options...
Vincehood Posted February 20, 2021 Author Share Posted February 20, 2021 Thanks, it makes sense. I thought I started there but I will try again! Quote Link to comment Share on other sites More sharing options...
Vincehood Posted February 21, 2021 Author Share Posted February 21, 2021 I identified the cause of the issue (graphics not displayed). I have a procedure per room & I was defining the screen card data elements in each procedure like shown further down. I believe this an anti-pattern resulting in non sequential interpretation. I have now moved the DATA elements outside the PROCEDURE at the end of the program and it's working fine! room3: PROCEDURE room = 3 CLS WAIT SCREEN screen3_cards WAIT REM 20x12 cards screen3_cards: DATA $0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200 DATA $0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200 DATA $0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200 DATA $0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200 DATA $0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200 DATA $0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200 DATA $0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200 DATA $0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200 DATA $0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200 DATA $0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200 DATA $0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200 DATA $0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200,$0200 END Quote Link to comment Share on other sites More sharing options...
artrag Posted February 21, 2021 Share Posted February 21, 2021 You was executing data as they were instructions. The best way to get a crash... 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.