Jump to content
IGNORED

can i shape a ball ?


freehabitat

Recommended Posts

Hi there,

 

can i shape a 8pixel ball ? i dont like the square. What can i do?

 

bye

 

Sonic

Not if you're programming in bB, at least not without writing a custom kernel. If you're writing your own custom kernel (in assembly language), then you can create shapes with the ball by changing its size from line to line, and/or by shifting it to the left or right from line to line. The ball is only 1 pixel wide, but the pixel can be one of four different sizes: 1 color clock, 2 color clocks, 4 color clocks, or 8 color clocks. So if you want to draw a round ball, you could draw it 2 color clocks wide on the first line, then draw it 4 color clocks wide on the next line and shift it 1 color clock to the left, then draw it like that for another line or two (but without shifting it left again), then finally draw it 2 color clocks wide again and shift it back 1 color clock to the right, as follows:

 

   **
 ****
 ****
  **

But as I said, you can't do that in bB-- you'll need to write a custom kernel in assembly language.

 

Michael

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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