Jump to content
abaudrand

Playfield questions from a newbie

Recommended Posts

Hi,

I just started a couple of weeks ago playing with visual bb and have small troubles understanding the playfield limitation.

 

- I've tried to convert a photo to use it as playfield and I can't display it entirely.

the resolution is 32 x 24 but the drawing is stuck at line 11.

Is it a limitation of visual bb and batari basic?

 

- the second problem (for the moment, guess I'll meet more as I go further) is that I want to play with the height of playfields between the titlescreen and the main game.

when I leave the titlescreen to play the game, the display go havoc as there was no blank sync.

I've removed any difference of pfheights (and the set kernel_option pfheights ) between game sequence and its quiet again but I guess it's my lack of knowledge about programming it.

 

If someone have an explanation, I'll be glad to hear(read) it.

Share this post


Link to post
Share on other sites

Hi,

I just started a couple of weeks ago playing with visual bb and have small troubles understanding the playfield limitation.

 

- I've tried to convert a photo to use it as playfield and I can't display it entirely.

the resolution is 32 x 24 but the drawing is stuck at line 11.

Is it a limitation of visual bb and batari basic?

 

- the second problem (for the moment, guess I'll meet more as I go further) is that I want to play with the height of playfields between the titlescreen and the main game.

when I leave the titlescreen to play the game, the display go havoc as there was no blank sync.

I've removed any difference of pfheights (and the set kernel_option pfheights ) between game sequence and its quiet again but I guess it's my lack of knowledge about programming it.

 

If someone have an explanation, I'll be glad to hear(read) it.

Replace the playfield section with your code and you should have a static picture of it in emulation.

 

set romsize 32kSC
set tv ntsc

const pfres=24
COLUBK = $00
COLUPF = $08

playfield:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
X..............................X
X..............................X
X..............................X
X..............................X
X..............................X
X..............................X
X..............................X
X..............................X
X..............................X
X..............................X
X..............................X
X..............................X
X..............................X
X..............................X
X..............................X
X..............................X
X..............................X
X..............................X
X..............................X
X..............................X
X..............................X
X..............................X
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
end


main
drawscreen
goto main

Share this post


Link to post
Share on other sites

Strange,

 

I can't compile your code... I've checked the indentation for each line but each time Ì got this:

 

Fatal assembly error: Source is not resolvable.

Errors were encountered during assembly.

 

Besides, I guess i can't make a working cartridge for all VCS if I choose a 32kSC. I will keep the low res instead.

 

Keep working on it anyway.

Share this post


Link to post
Share on other sites

Looks like he forgot to use the Atari Age Batari BASIC Code Cleaner. Try this:

 

  set romsize 32kSC
  set tv ntsc

  const pfres=24
  COLUBK = $00
  COLUPF = $08

  playfield:
  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  X..............................X
  X..............................X
  X..............................X
  X..............................X
  X..............................X
  X..............................X
  X..............................X
  X..............................X
  X..............................X
  X..............................X
  X..............................X
  X..............................X
  X..............................X
  X..............................X
  X..............................X
  X..............................X
  X..............................X
  X..............................X
  X..............................X
  X..............................X
  X..............................X
  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
end


main
  drawscreen
  goto main

Edited by Random Terrain

Share this post


Link to post
Share on other sites

 set romsize 32kSC
 set tv ntsc

 COLUBK = $00
 COLUPF = $0E
 const pfres=24

playfield:
....XXXXXXXXXXXXXXXXXXXXXXXXXXXX
....XXXXXXXXXXXXXXXXXXXXXXXXXXXX
....XXXXXXXXXXXXXXXXXXXXXXXXXXXX
...XXXX......XXXXXXXXXXXXXXXXXXX
....XXX..........XXXXXXXXXXXXXXX
...XXXX...........XXXXXXXXXXXXXX
...XXX.....X.......XXXXXXXXXXXXX
....XXX....XXX......XXXXXXXXXXXX
....XXX...XX........XXXXXXXXXXXX
....XXXX...X........XXXXXXXXXXXX
.....XXXX............XXXXXXXXXXX
......XXXXX..........XXXXXXXXXXX
......XXXXX..........XXXXXXXXXXX
.......XXXX...X......XXXXXXXXXXX
........XXXX........XXXXXXXXXXXX
........XXXXXXX.....XXXXXXXXXXXX
.........XXXXXXXXX.XXXXXXXXXXXXX
...........XXXXXXXXXXXXXXXXXXXXX
............XXXXXXXXXXXXXXXXXXXX
.............XXXXXXXXXXXXXXXXXXX
..............XXXXXXXXXXXXXXXXXX
..............XXXXXXXXXXXXXXXXXX
..............XXXXXXXXXXXXXXXXXX
...............XXXXXXXXXXXXXXXXX
end

main
 drawscreen
 goto main

 

Thanks Random Terrain and A BIG THUMB UP for all the energy you give for your website. I now have a display issue in stella...

Instead of having this (Grab1), I got that (grab2).

I got the feeling I'm a dumber...

By the way, i forgot: I'm using visual BB 1.0 (build 550)and stella 3.1.2

Edited by abaudrand

Share this post


Link to post
Share on other sites

Try this:

 

   set romsize 32kSC
  set tv ntsc

  COLUBK = $00
  COLUPF = $0E
  const pfres=24

  playfield:
  ....XXXXXXXXXXXXXXXXXXXXXXXXXXXX
  ....XXXXXXXXXXXXXXXXXXXXXXXXXXXX
  ....XXXXXXXXXXXXXXXXXXXXXXXXXXXX
  ...XXXX......XXXXXXXXXXXXXXXXXXX
  ....XXX..........XXXXXXXXXXXXXXX
  ...XXXX...........XXXXXXXXXXXXXX
  ...XXX.....X.......XXXXXXXXXXXXX
  ....XXX....XXX......XXXXXXXXXXXX
  ....XXX...XX........XXXXXXXXXXXX
  ....XXXX...X........XXXXXXXXXXXX
  .....XXXX............XXXXXXXXXXX
  ......XXXXX..........XXXXXXXXXXX
  ......XXXXX..........XXXXXXXXXXX
  .......XXXX...X......XXXXXXXXXXX
  ........XXXX........XXXXXXXXXXXX
  ........XXXXXXX.....XXXXXXXXXXXX
  .........XXXXXXXXX.XXXXXXXXXXXXX
  ...........XXXXXXXXXXXXXXXXXXXXX
  ............XXXXXXXXXXXXXXXXXXXX
  .............XXXXXXXXXXXXXXXXXXX
  ..............XXXXXXXXXXXXXXXXXX
  ..............XXXXXXXXXXXXXXXXXX
  ..............XXXXXXXXXXXXXXXXXX
  ...............XXXXXXXXXXXXXXXXX
end

main
  drawscreen
  goto main

 

Problem was that playfield: and the pixel data was not indented.

Share this post


Link to post
Share on other sites

Ok... I still have the issue. I guess I have something wrong in the installation of visual bb as I manually upgrade from the previous seed. Guess there is a problem in the compilator.

Goin' to check it right away.

 

Got this message when i reinstall from build 550:

 

Could not locate sed.exe. Please copy sed.exe to C:\Atari2600\bB. This will improve DASM error reporting

Precompilation failed, aborted at 10/07/2010 15:23:40

 

... ...

Edited by abaudrand

Share this post


Link to post
Share on other sites

Ok... I still have the issue. I guess I have something wrong in the installation of visual bb as I manually upgrade from the previous seed. Guess there is a problem in the compilator.

Goin' to check it right away.

 

Got this message when i reinstall from build 550:

 

Could not locate sed.exe. Please copy sed.exe to C:\Atari2600\bB. This will improve DASM error reporting

Precompilation failed, aborted at 10/07/2010 15:23:40

 

... ...

 

No you missed a step in installing the bB compiler. In your bB folder you should see a fodler sed. Move sed.exe to the the parent folder where the 2600basic.exe compiler is located. This is covered in the bB readme.

 

-Jeff

Share this post


Link to post
Share on other sites

Thanks Jwierer, I forgot to check that as I first used the install program that Tinkernut provided with his tutorial. I'm actually using his tutorial to add more functions and try to see if I will be able to make my own little game later.

 

So I've reinstall everything and now i can copy and paste the code that Random Terrain have provided and its fine.

 

I just have to pay attention for indentation as it sometimes still give me issue.

 

For the moment, I've succeed to add the stairway to go upstair on the dungeon and changed the movable area for the player depending on which floor he is.

I'll try tommorow to add multi directionnal shooting by examinating the example file provided by Atarius Maximus.

 

Once again, a warm thanks for your handy help here. I can't help much for the moments on batari but if u have any question about movie editing, just send me a MP and I'll be glad to return the favour.

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...