Jump to content
satyrsfaction

Playfield is invisible

Recommended Posts

I'm just starting out in Batari Basic, and I decided to convert my initial attempt into DCP+ in order to have more sprites available. but now, the play field won't show up -- the player still collides with it, but it's invisible. Can anyone tell me what I'm doing wrong?

game5.bas

Share this post


Link to post
Share on other sites
3 minutes ago, satyrsfaction said:

I'm just starting out in Batari Basic, and I decided to convert my initial attempt into DCP+ in order to have more sprites available. but now, the play field won't show up -- the player still collides with it, but it's invisible. Can anyone tell me what I'm doing wrong?

game5.bas 12.01 kB · 1 download

Hi mate, with DPC+ you will need to define the pfcolors: line-by-line. Or you can use this example code o change all the rows to a single colour

   DF4FRACINC = 0

   pfcolors:
   $86
end

 

Share this post


Link to post
Share on other sites

With DPC+ you also need to set up the screen and have those settings updated every frame within the mainloop.

 DF0FRACINC = 16
 DF1FRACINC = 16
 DF2FRACINC = 16
 DF3FRACINC = 16

Here is the fix however you will need to define the other rooms and fix up some of your code. I will leave that to you for learning purposes 👍

game5_fix.bas

game5_fix.bin

Edited by TwentySixHundred

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...