i need a code exaple plz

ok ive been trying t figer out how to do this for a wile this is what i want to do:
ok for my first game with java i have two balls that bounce horazantaly across the screen and i have a ponter that is at the bottum of the screen that is in the medle and points at a angle from -32 of it organl place to +32 pixles. what i need to figer out is how to shoot a pixle or a ball in the direction that the line is pointing to.
how do i do this?

P.S. dont think im just asking with out trying iv tryed for two days to comeup with a good code for it.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!