Author Topic: TPIr PG's used in VB - is it possible?  (Read 3746 times)

0 Members and 1 Guest are viewing this topic.

Offline rn

  • Double Showcase Winner
  • ******
  • Posts: 1079
TPIr PG's used in VB - is it possible?
« on: August 03, 2008, 07:28:47 PM »
Is it possible, to create a computerised version of a TPIR Pricing Game in Visual Basic or would it be too hard?

Offline pacdude

  • Walking the Golden Road
  • ****
  • Posts: 311
  • PacdudeGames.com
    • Pacdude Games
Re: TPIr PG's used in VB - is it possible?
« Reply #1 on: August 03, 2008, 07:31:20 PM »
I dunno. Ask BigJon.

Offline bigwheel1991

  • Walking the Golden Road
  • ****
  • Posts: 320
Re: TPIr PG's used in VB - is it possible?
« Reply #2 on: August 03, 2008, 07:48:53 PM »
I Agree Ask BJ.
CSS Stats - Games Played: 3 - Points:???.?? - DSW: 1 - WSD: 0 - DOB: 0 - Lowest Score: $?????

Offline FastCompany

  • In Contestant's Row
  • ***
  • Posts: 134
Re: TPIr PG's used in VB - is it possible?
« Reply #3 on: August 03, 2008, 08:20:26 PM »
I'm in I.T. and I've done some development work in VB.NET.  It can certainly be done, but it's probably far easier with something like Flash.


Offline BigJon

  • Double Showcase Winner
  • ******
  • Posts: 1393
Re: TPIr PG's used in VB - is it possible?
« Reply #4 on: August 03, 2008, 09:00:44 PM »
I dunno. Ask BigJon.

LMAO.  Well being my game is/was created in VB, I'd say yes (using aspects of all 6, 03 and 05 version) and incorporates a plethora of Flash.  Something are easier IMO and some aren't.  A lot of the newer versions, especially VS '08 don't like Flash COM compnents too well, especially when it comes to using transparent backgrounds...
BigJon's TPIR will live on - CSS Host - 2nd Season; CSS Statistician 3rd Season

Offline rn

  • Double Showcase Winner
  • ******
  • Posts: 1079
Re: TPIr PG's used in VB - is it possible?
« Reply #5 on: August 03, 2008, 10:20:08 PM »
I understand VB 6.0 becuase that's what I learned.

So if it were to do a playing of "Cliff Hangers" it would go something like this:

If contestantsguess = priceofitem1 then
goto nextitem
end if
if contestantsguess < priceofitem1 then
priceofitem1 - contestantsguess = endresult
goto nextitem
or
If contestantsguess > priceofitem1
then
contestantsguess - priceofitem1 = endresult
goto nextitem
end if


Offline CBach88

  • Walking the Golden Road
  • ****
  • Posts: 366
Re: TPIr PG's used in VB - is it possible?
« Reply #6 on: August 03, 2008, 11:19:26 PM »
I believe there is a version of The Price is Right in Visual Basic that can be downloaded.

The site is http://basicgames.folff.com. I have it and it has a majority of the games on it. It's quite enjoyable. It has sound effects and everything, but it doesn't have Punch-A-Bunch.

Offline Scott5114

  • Double Showcase Winner
  • ******
  • Posts: 1495
Re: TPIr PG's used in VB - is it possible?
« Reply #7 on: August 04, 2008, 12:32:14 AM »
I did a basic Punch-A-Bunch in Visual Basic. I didn't include the pricing portion: you just got 4 punches by default and then a photo of Bob would appear in a pop-up asking if you wanted to keep the amount. It was all incredibly cheesy, as I'm sure you can tell.

I loved VB but when I moved to Linux I obviously couldn't use it anymore. I've tried to learn C++ off and on for years but eventually I just gave up on programming. :(

Offline BigJon

  • Double Showcase Winner
  • ******
  • Posts: 1393
Re: TPIr PG's used in VB - is it possible?
« Reply #8 on: August 04, 2008, 10:12:51 PM »
I understand VB 6.0 becuase that's what I learned.

So if it were to do a playing of "Cliff Hangers" it would go something like this:

If contestantsguess = priceofitem1 then
goto nextitem
end if
if contestantsguess < priceofitem1 then
priceofitem1 - contestantsguess = endresult
goto nextitem
or
If contestantsguess > priceofitem1
then
contestantsguess - priceofitem1 = endresult
goto nextitem
end if



VB and most programming languages (the variable to save in should be first)
I could just smack my code here, but to eliminate all those lines, it's much simpler to say in 1 line of code

endresult = Abs(guess - priceofitem)    - If you don't know what this means, then it's not time to write a pricing game yet :)

And that's as far as I'm going with this one :)
BigJon's TPIR will live on - CSS Host - 2nd Season; CSS Statistician 3rd Season

Offline CBach88

  • Walking the Golden Road
  • ****
  • Posts: 366
Re: TPIr PG's used in VB - is it possible?
« Reply #9 on: August 04, 2008, 10:20:39 PM »
I did a basic Punch-A-Bunch in Visual Basic. I didn't include the pricing portion: you just got 4 punches by default and then a photo of Bob would appear in a pop-up asking if you wanted to keep the amount. It was all incredibly cheesy, as I'm sure you can tell.

I loved VB but when I moved to Linux I obviously couldn't use it anymore. I've tried to learn C++ off and on for years but eventually I just gave up on programming. :(

Would it be possible for you to send that to me? Punch is my very favorite game and I would really like to have this!

Offline Scott5114

  • Double Showcase Winner
  • ******
  • Posts: 1495
Re: TPIr PG's used in VB - is it possible?
« Reply #10 on: August 05, 2008, 04:45:20 AM »
Would it be possible for you to send that to me? Punch is my very favorite game and I would really like to have this!

No, sadly, it was a long time ago, and I lost all my VB stuff to a Windows-induced hard drive crash. Sorry. It would probably take a competent programmer five minutes to write though, so it's no real big loss. (I was a lot more mad about losing the text editor I had been writing...that sucker was my pride and joy!)

(I don't think I had the distribution right anyway...I remember the $10,000 coming up quite a bit)

Offline rn

  • Double Showcase Winner
  • ******
  • Posts: 1079
Re: TPIr PG's used in VB - is it possible?
« Reply #11 on: August 05, 2008, 05:57:46 PM »
VB and most programming languages (the variable to save in should be first)
I could just smack my code here, but to eliminate all those lines, it's much simpler to say in 1 line of code

endresult = Abs(guess - priceofitem)    - If you don't know what this means, then it's not time to write a pricing game yet :)

And that's as far as I'm going with this one :)

Yes, I'm just demonstrating how a pricing game would work in Visual Basic 6.0 code.  I don't have all the knowledge to create my own PC game.

Offline garffreak

  • Double Showcase Winner
  • ******
  • Posts: 1844
Re: TPIr PG's used in VB - is it possible?
« Reply #12 on: August 05, 2008, 07:19:12 PM »
endresult = Abs(guess - priceofitem)

My thought exactly.
New TPiR Announcer: Gilbert Gottfried.  See?  Things *can* be worse.