solid snake21
The purpose of the SpriteNumber Function is to use a sprite instead of writing text to the screen, it is far more efficient. If you have a score board once you change the score and update the sprite you do not have to update the text every frame as you would with standard text code. However in this program it currently does nothing and is just a function I pasted from my library and never got around to implementing (Sorry for the confusion)
Sp in powerbar designated the Sprite and image number if you wanter multiple powerbars you would assign each one their own number.
I create separate bitmaps so i do not write on the existing default bitmap. For instance if I need to create a text sprite on the fly I do not have to save the existing graphics clear the screen and re-drawn the original graphics.
As far as the cue ball going off the table, this does happen in a real game and is a foul. I admit that it happens too much in my demo. Limiting the amount of force or the angle of contact may help
Codger
System
PIV 2.8 MZ 512 Mem
FX 5600 256 mem