drawing with jit.gl.sketch or jit.lcd?

HumanNature's icon

Hi,
I'm trying to create a ping pong game interface on max 5 for a school project.

Any ideas on what will help me build:
• 2 vertical upright rectangles (that also move vertically) and
• a circle (for a ping pong) moving in between?

I don't know if I want it in 2D or 3D.

Any suggestions are greatly appreciated!

carsol's icon

i think you will get better performance in gl..
a very one basic pingpong can be done fast and easy with a couple of gridshape @plane for the players and a gridshape @circle for the ball. and you play with each position parameter to move all of them, use line object to smooth all the movements.. the external f0.bounds can help you to detect when the ball hits the player.. and i dont know how you like to control de players...

bye,
o

HumanNature's icon

:) thanks, I'll see how it goes.

I'm pretty new to the program