Jump to content

Photo

How does Draw.bas work?


4 replies to this topic

#1 VGAGuy OFFLINE  

VGAGuy

    Space Invader

  • 30 posts
  • Avid Bankswitcher

Posted Sat Jul 15, 2017 1:24 PM

I am trying to make a game where you lay down bricks when you move forwards and pick them up when you move backwards.

I looked at the example program that almost does what I want but has a few problems:

 

1 It uses a playfield that is too big,  I need the normal 31 X 11 playfield

 

2 I need it to draw behind the player not directly under the player

 

3 I need it to draw as fast as the player moves

 

I have tried to make the playfield smaller and disable the superchip, but if I do that I becomes a RAM editor.

 

 

 

Any Ideas on how to get this to work?

 

P.S. The code should come with the Bb compiler


Edited by VGAGuy, Sat Jul 15, 2017 1:33 PM.


#2 Random Terrain OFFLINE  

Random Terrain

    Visual batari Basic User

  • 28,180 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Sat Jul 15, 2017 3:53 PM

I am trying to make a game where you lay down bricks when you move forwards and pick them up when you move backwards.
I looked at the example program that almost does what I want but has a few problems:

1 It uses a playfield that is too big, I need the normal 31 X 11 playfield

2 I need it to draw behind the player not directly under the player

3 I need it to draw as fast as the player moves

I have tried to make the playfield smaller and disable the superchip, but if I do that I becomes a RAM editor.



Any Ideas on how to get this to work?

P.S. The code should come with the Bb compiler


I think the code for any game that anyone can think up should come with the bB compiler. batari was so lazy. :D

#3 VGAGuy OFFLINE  

VGAGuy

    Space Invader

  • Topic Starter
  • 30 posts
  • Avid Bankswitcher

Posted Sat Jul 15, 2017 3:56 PM

I meant draw.bas comes with Bb unless it is the newer version with 64k support as that did not have the file in the samples folder.



#4 Random Terrain OFFLINE  

Random Terrain

    Visual batari Basic User

  • 28,180 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Sat Jul 15, 2017 4:05 PM

I wonder if there is anything here that you could adapt:
 

Double-click Draw: RT Version 01



#5 VGAGuy OFFLINE  

VGAGuy

    Space Invader

  • Topic Starter
  • 30 posts
  • Avid Bankswitcher

Posted Sat Jul 15, 2017 7:52 PM

Here's my bad attempt at adapting the code to my program.

At least it isn't a RAM editor like my previous attempts.

 

 

I am missing something but I can never figure out what.

 

 

EDIT: Got it working properly, thanks for the code.


Edited by VGAGuy, Wed Jul 19, 2017 9:14 PM.





0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users