freehabitat Posted November 19, 2007 Share Posted November 19, 2007 Hi there, can i shape a 8pixel ball ? i dont like the square. What can i do? bye Sonic Quote Link to comment Share on other sites More sharing options...
SeaGtGruff Posted November 19, 2007 Share Posted November 19, 2007 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 Quote Link to comment Share on other sites More sharing options...
freehabitat Posted November 19, 2007 Author Share Posted November 19, 2007 But as I said, you can't do that in bB-- you'll need to write a custom kernel in assembly language. Ok... so i might use a player instead of the ball,... i think kernel hacks will be for future projects. First i want be fit in basic´s of bB. tom 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.