Title: Learn by making a Pool Table
Description: Learn Complex Object Interactions, Ball2Ball Collision
Type: .gm6 source file (zipped)
GM Version: 6.1 (unregistered)
File Size: 250KB to 600KB depending on tutorial selected
Download: Pool Table Tut Files
It is said that one learns nothing unless he makes mistakes....
Join me in the design of a pool table game. You will progressivelly be introduced to GML and the various features you can use to make a game.
It starts very timidely and progresses to more advanced techniques you will find useful to master GML and Game Maker...
You will see the mistakes I have made and how I fixed them. You will also find some game maker quirks that you should be aware of.
As it stands, limited information is given in the Info button of each file to see what is being done to the file. But, each file contains very little changes from the previous one so, it should be manageable to see what's been done... I plan to add more descriptive information in each file...
This is the startup file set. See the game take form from the beggining.
9 files total.
From adding images to adding objects and handling collision.
This is the next set, 10 files. See basic techniques be elaborated into more advanced solutions.
Better collision to cue and table objects design and object behaviour
Friction, momentum absorbtion
This set is the last set, more comming. It starts the get complicated real quick but should still be manageable.
Putting it all together and adding features like intelligent objects and a cue design window.
This 4 files set covers how to create a drawing program; a cue design room. How to record your play and how to apply rules to the game; an editable rules file containing code executed by the game to provide the game flow and the game rules.
Pro Download PoolTableFluffingUp.zip
This set, concentrates on fixing old newbie code and fluffing up the pool table by adding better graphics, better code that uses image_angle and scaling, Alpha masking and an introduction to Top Down 3D!
It also covers 3D and 2D lighting and simple shadows.
I tried to keep every feature introduction small so there are a few files (18... 7MB).
Now, billiard physics can be complicated.
Ball bounce one another depending on angle, speed, mass, stiffness, surface friction and rotation (spin).
Ball bounce on bumpers with the same formula. But the deformation of the bumber is much more.
You'd never hit at 45deg and bounce at -45deg on a real table.
At this moment, billiard balls bounce off one another taking speed, mass, angle and stiffness (momentum absobtion) into account but not spin and surface friction (transfer of spin).
The balls bounce off the banks without taking bank deformation and spin into account, but use stiffness to slow the ball down.
The balls have friction set to slow balls down like on a table carpet.
When we are done, we will have all the components of a pool table and game related objects
to name a few....
Once complete, we will be able to create pool tables using objects and make them all interact with one another the way the real life objects work.
The rule system will act like the ref in a match and make the player follow the rules, detecting fouls, scratches, what ball to hit first, ext.
The rule system will be able to arbitrate a snooker match, a 9 ball match, any type of pool game we can think of.
Eventually, we will be able to dynamically create pool tables of different sizes for different games.
More to come.... If I don't get bored with it.
For the search engine
Pool Table Physics
Pool Ball Physics
Billiard Table Physics
Billiard Ball Physics
Edited by icuurd12b42, 03 April 2013 - 04:42 PM.