Billiard Game Template

Game Template supporting backspin and trick shots.

Alt pressed and move mouse for aim. Mousewheel to set strength. Click to hit ball. “z” to open top view.

http://nuverian.net/2011/10/04/unity3d-billiard-game-template/

Thanks :slight_smile:

Very cool. My only complaint is that sometimes you have to wait a long time for the cue ball to stop rolling. Not much you can do about that, except maybe temporarily speed up the time constant.

Thanks. This can be fixed by setting the Sleep Angular Velocity I think.

looks fantastic !

I should say thanks to some guys from this forum that actually got in and got the file by hacking a bit through my websitecode without paying. It’s been my pleasure to know it is of use to you…

I can’t play with it !?! Webplayer doesn’t want to make the game work !?!
Do you have a downloadable demo ??? I’m very interested in this… Looks very nice !
Which language ?

6R

awesome!

Hi. Thanks for comments!

@p6r What is the problem with the webplayer? I am curious.
The language is JavaScript and allways will be :slight_smile:
Also check your PM please.

Thanks nuverian… PM sent !
Don’t worry ! I think it’s a problem on MY computer…

6R

Clicking wouldn’t shoot the ball here, so I couldn’t play at all.

Nice looking game :), though the physics for the ball is not quite real. The mouse sensitivity should be adjustable, on my mice i have to spin a lot the wheel to move the cue.

@werewraith: Did you actully set the strength before you click to hit the ball, by using the mousewheel?

@scarpelius: Thanks. You also think that the ball takes too long to stop? Well I might as well change that since a few other also do and take into consideration the adjustable mouse sensitivity, or just plain make it shorter move to go up to maximum strength.

Yes. Visually balls seems to stop but it takes some time till the cue reappear. As for the cue, on the contrary make it move further away from ball and use a speed variable to increase the movement speed like here

        float deltaScrollWheel = Input.GetAxis("Mouse ScrollWheel");
        if (deltaScrollWheel != 0)
        {
            Camera.main.transform.Translate(0, 0, deltaScrollWheel*60*Time.deltaTime);
        }

This game is nice looking but i dont like how the cue follows the mouse off to the side. for instance i think the cue should follow the mouse arrow exactly where its at, and the controls should be more like the billiard games on sites such as shockwave with the show meter and what not, other than that nice…

Hey Nuverian,

I purchased this from you yesterday, and it’s pretty good so far! It would be nice if in an update you included #pragma strict at the top of your js files and corrected the compiler errors. That is what is separating this from being able to be used on iOS. I also agree that the ball takes too long to stop, should address both of these issues in your next update :slight_smile:

Thanks Aron.
So a small update: I’ve included #pragma strict on all scripts and made the ball stop a bit faster. Not much.

@KingCharizard: What do you mean “the cue follows to the side”? Maybe you had moved the cue by presing ALT or Right-Click?

Looks great, good luck!

Hi,

Am tempted to buy this. Does this work on Android?

Sorry for the late reply… I was off for quite some time…I can’t really say if it does… It should for sure. Nothing special there.

Only 4 months late! ahahah :smile: