Billard4K

The objective is to introduce all the red balls into the holes, hitting them with the white ball. To hit the white ball, we have to use the stick when all the balls on the table are stopped.

To start to play, there is to click on the screen. Each hit follows these steps:

  1. Direction: moving the mouse, we indicate where we hit the white ball from.
  2. Strength: when we have the direction, click and hold the button pressed, the strength is proportional to the distance between the mouse and the white ball; to hit the ball, release the button.
  3. Wait until all the balls are stopped.







This game was submitted to the J4K 2007 Contest.

Download the code here:
Source

3 comments:

Quiqueq said...

bastante bueno...aun siendo de 4k nada mas

Anonymous said...

Lo primero, Enhorabuena por el juego!!

Estoy haciendo una práctica para la universidad y he usado el algoritmo de choque de bolas que usas en tu juego del billar. El problema es que ahora estoy haciendo la memoria de la práctica y tengo que escribir sobre el algoritmo y la verdad no lo entiendo muy bien. Me podrías decir si este algoritmo tiene algún nombre y si sabes de alguna web donde lo expliquen y den información sobre él.

Un saludo

Salva

salva2mg@hotmail.com

Hano said...

Gracias.
Las colisiones nos son má que un poquito de trigonometría.
Espero que cites las fuentes en tu práctica, Google pilla muchas copias, y es mejor citar que plagiar.