Linux Format

Billiards

Version: GIT Web: https://github.com/ tailuge/billiards

-

The world of open source games lacks some categories, and one of those is billiards. We rarely find a decent billiards simulator with freely available source code, and it’s easy to guess why. Lots of maths work, complex game physics and many real-world billiards features that are hard to implement, like rolling friction, resilient cushions, true-to-life collision behaviour are all involved. Therefore we were extremely lucky to find a high-quality billiards implementa­tion written in pure TypeScript and available for everyone at GitHub.

It’s a classic one-person project showcasing coding skills and various challenges that are specific to ball movement. Don’t be scared of those rough balls that look more like polygonal spheres! They move, roll, twist and bounce very much like real-world billiards balls. The game is certainly a WIP thing, yet it already allows playing and training. Billiards is a 3D single-player game where you can aim and shoot with a finely controlled cue stick that can handle top, back and side spins, with full control over the kick power. After shooting, the game automatica­lly switches to the top view to better show you how the ball moves, and after that takes you back to aiming.

Use – and + keys to change the view by moving the camera along the vertical axis, and use the left and right arrow keys to move the aiming position along the horizontal axis. Hold Shift to enable more precise control. Aiming is implemente­d very well and the game is already a very decent trainer for practising your billiards.

No rules or penalties are implemente­d in the game so far, but given the constant shooting with the white cue ball, Billiards will likely grow into a classic eightball simulator. The live demo is available at http://tailuge. github.io/billiards/dist, but it’s also possible to run a local instance of the game using npm (see Readme. md for detailed instructio­ns). Billiards requires a WebGL-capable web browser.

 ??  ?? Billiards is a very promising simulator of its kind. Aim and shoot just like in real life (well, kind of)!
Billiards is a very promising simulator of its kind. Aim and shoot just like in real life (well, kind of)!

Newspapers in English

Newspapers from Australia