To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
MSDN Subscribers: Download the VS 2010 Release Candidate
MSDN Subscribers: Download the VS 2010 Release Candidate
Sell Your Code and Make Money?
Creating your own Tetris game using VB.NET
Article :: Improving Software Economics, Part 4 of 7: Top 10 Principles of Iterative Software Management



Go Back   VBForums > Visual Basic > Games and Graphics Programming

Reply Post New Thread
 
Thread Tools Search this Thread Display Modes
Old Dec 13th, 2006, 07:16 AM   #1
DragonCypher
New Member
 
Join Date: Dec 06
Posts: 2
DragonCypher is an unknown quantity at this point (<10)
Resolved [Resolved] VB6 expert needed who has patience and can play pool...

Hi all, i have been working on a snooker game for quite some time, but then decided i wanted to convert it into a general pool game with the local rules for where i live which include:

(i cant remember the name of this particular game, so i'll just list ALL the rules included.. which are used in the game)

----------
ball 1 - 7 are 'solid'
8 is black
9 - 15 are 'stripe'

first person to sink a ball takes that type (stripe/solid), other player takes remaining type.
both players must hit their own ball first and may only sink their own ball
a player may sink the black after all of their own type has been sunk

all fouls result in the other player receiving 2 shots
fouls are:
hit ball other than their own first,
sink ball other than their own
sink cue ball (other player has free placement for their next go)

sinking the black before the player is supposed to results in instant loss of game.
----------

They are all the rules that i have implemented into my pool game, however..
there are still a few bugs for which i could not figure out

hitting the black first no longer results in a foul, even though the code is there

when the player IS on the black and it is sunk, occasionally it is considered a foul instead of a win

very occasionally there is a foul when the player breaks at the start of the game, i presume this could be that the cue ball continues through the first row and hits the black before the collision detector sees it..


The rest of the game SEEMS to be working fine

also considering it used to be snooker, there will be a bit of code commented out here and there as well as an unused function or two.. but i wanted to get the game working before i cleaned it up.

there are comments all the way through the code instructing what each section is used for, or at least there should be

runs with 3d hardware acceleration and directX 8, hardware acceleration can be turned off in the general game code
made with a screen resolution of 1280x800 and 1.5Ghz Processor and 1GB RAM.. it will run on other machines but its untested so i am unsure of the results..


sorry to have given so much reading but all those details are necessary to understand what i was trying to do
more instructions (this time the game controls) are in the readme.txt file

ANY help and suggestions what so ever will be much appreciated

I will be back in about 10 hours or so as its currently late and i need sleep



I cannot attach the project as its 550kb and the limit is 500, so heres a link to an alternative download location on my website:
http://www.freewebs.com/dcypher_03/PoolVBFiles.zip

Last edited by DragonCypher; Dec 14th, 2006 at 08:31 PM.
DragonCypher is offline   Reply With Quote
Old Dec 13th, 2006, 05:18 PM   #2
Fedhax
Hyperactive Member
 
Fedhax's Avatar
 
Join Date: Aug 06
Posts: 293
Fedhax  is on a distinguished road (30+)
Re: VB6 expert needed who has patience and can play pool...

Quote:
Originally Posted by DragonCypher
----------
ball 1 - 7 are 'solid'
8 is black
9 - 15 are 'stripe'

first person to sink a ball takes that type (stripe/solid), other player takes remaining type.
both players must hit their own ball first and may only sink their own ball
a player may sink the black after all of their own type has been sunk

all fouls result in the other player receiving 2 shots
fouls are:
hit ball other than their own first,
sink ball other than their own
sink cue ball (other player has free placement for their next go)

sinking the black before the player is supposed to results in instant loss of game.
----------
Sounds like Classic 8 Ball to me. 9 Ball would be where you only use the first 9 balls--arranged like a diamond instead of a triangle--and sink them in order from 1 to 9 (Gross over-simplification of the rules)

I'll have to review the project before I can comment on the rest of this post.
Fedhax is offline   Reply With Quote
Old Dec 14th, 2006, 08:33 PM   #3
DragonCypher
New Member
 
Join Date: Dec 06
Posts: 2
DragonCypher is an unknown quantity at this point (<10)
Re: [Resolved] VB6 expert needed who has patience and can play pool...

I just spent another hour or two going over everything piece by piece and it has now been fixed..

all the rules are working correctly, there is still the occasionally mishap but overall i'm happy
DragonCypher is offline   Reply With Quote
Reply

Go Back   VBForums > Visual Basic > Games and Graphics Programming


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:36 PM.




To view more projects, click here

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.