Author Topic: QB64 Roulette  (Read 4888 times)

0 Members and 1 Guest are viewing this topic.

Offline Qwerkey

  • Forum Resident
  • Posts: 755
    • View Profile
QB64 Roulette
« on: December 11, 2018, 04:23:36 am »
This is a simulation of the gambling game Roulette, with spinning wheel and ball.  Mouse manipulation is by single clicking.  Your screen size needs to be greater than 1300x820 - apologies for those with smaller resolution: see Fellippe's comment below.

You will need to download the User Manual.

* QB64 Roulette User Manual.pdf (Filesize: 345.96 KB, Downloads: 312)
screenshot.jpg
* screenshot.jpg (Filesize: 399.78 KB, Dimensions: 1308x851, Views: 358)
« Last Edit: December 12, 2018, 04:31:04 am by Qwerkey »

FellippeHeitor

  • Guest
Re: QB64 Roulette
« Reply #1 on: December 11, 2018, 02:07:13 pm »
Very well done! Very good looking and I love the ambient sounds.

Just add $RESIZE:SMOOTH or $RESIZE:STRETCH to the top of your program and you don't have to worry about users with smaller resolutions. They can resize it and still play it that way.

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: QB64 Roulette
« Reply #2 on: December 12, 2018, 09:16:43 am »
Very cool!

Further development for use for Christmas  holiday:
1. wait player's next move and let enjoy him with his fortune or cry for his sfortune
 2. show amount of winning
  3. show graphically the win on the table highlighting the bet winning
    4. while ball runs on the border of roulette if it pass across a bet  for that little time highlight that bet on the table
Sold the game at 2$ on Google &  Windows & Amazon Stores
A low price for a big piece of pie of market
Programming isn't difficult, only it's  consuming time and coffee

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: QB64 Roulette
« Reply #3 on: December 12, 2018, 09:19:55 am »
@Fellippe
great suggestion $RESIZE:SMOOTH

At my first attempt I got error!!! :-((((
Reading wiki Help I don't understand

then oberving the example of the wiki I see $RESIZE alone on the line of code...
so I have learnt that $RESIZE doesn't want comments after it!
:-)
Thanks
Programming isn't difficult, only it's  consuming time and coffee

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: QB64 Roulette
« Reply #4 on: December 12, 2018, 01:12:26 pm »
Great graphics, but not very Vegas like at all. In Las Vegas casinos, you can'y find clocks... and you sure as hell can'y find the word "QUIT" on any gaming table! :D

I made a roulette game once, but it was missing a slot. I couldn't find a SCREEN 00 statement.

Pete

Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline Qwerkey

  • Forum Resident
  • Posts: 755
    • View Profile
Re: QB64 Roulette
« Reply #5 on: December 13, 2018, 05:18:06 am »
Guys, thanks for your kind comments.  I did get great satisfaction from creating the ball-rolling graphics and also the requirements for correctly setting the odds for all the different bets.  I could have improved the graphics - the wheel has its reflections rotating which is unrealistic and the graphics for my tokens are very crude.  Normally, I would tinker for much longer with a program before putting it here to improve such aspects, and Tempo points out other things which I might have done.

But as I said in the User Manual, I myself found playing the game very uninteresting - after a few rounds checking that the ball, tokens and bets all fuction as expected, I'd exhausted my interest.