Let It Ride Poker Game

dlfallen

Active Member
Licensed User
Longtime User
Let It Ride is a poker game popular in many casinos. I enjoy the game, but being a cheapskate, I wrote this program so I can play for free.

Compiled with autoscale and on my emulator works fine in both QVGA and VGA modes.

Playing instructions are accessible through the help menu. Please let me know if you find any bugs.

Enjoy
---------
15 Nov: Posted version 1.1 with larger cards and other misc. tweaks.
 

Attachments

  • LIRss.jpg
    LIRss.jpg
    16.4 KB · Views: 272
  • LIR_11.jpg
    LIR_11.jpg
    18.7 KB · Views: 249
Last edited:

dlfallen

Active Member
Licensed User
Longtime User
Alas, my eyes were not up to the small graphics, so I increased the size of the cards. I also made a small change to the aspect ratio which made a small improvement in the graphics. I made a few other minor tweaks including the height of the payoff table - in the original there were no scroll bars when executing in the IDE, but the scroll bars were there in the compiled version. See the original post for the updated files.

What is interesting is that even when the QVGA version of the payoff table had no scroll bars, the scroll bars were there running under VGA resolution. It turned out that the VGA version needed a PayOffTable.Height 6 pixels more than the when running on a QVGA device. I handled this with IfScreenScaleX = 2Then PayOffTable.Height = PayOffTable.Height + 6.

It sure is a pain when the display in the IDE is different than in the desktop, and different on a QVGA device and different yet on a VGA device (the QVGA screen was autoscaled). If I had time I'd try to figure out all the relationships so I wouldn't spend so much time on trial and error.

Don't take my whining too seriously -- Basic4ppc is still the cat's meow!
 

Simontelescopium

Member
Licensed User
This is great thanks for posting it.

I hope you don't mind I made a finger friendly wide screen (400x240) version of the game for my touch HD.

I've looked around these forums but not seen a way to programmatically identify a wide screen device, I have a touch HD (800x480), what I am doing in a (freeware) game I am developing (muddling through) is put extra non essential game stuff in the HD area of the screen so on a normal device I think it will just be off screen, but HD devices get to see the extras...

Any way thanks again.
 

dlfallen

Active Member
Licensed User
Longtime User
Simontelescopium,

Actually, you can detects wide-screen devices. See this thread: http://www.b4x.com/forum/questions-help-needed/5016-wqvga-screen-detection.html

A simple way to do it is to have a global variable (say WideScreen) and then in Sub App_Start have the line If Form1.Height/Form1.Width > 1.4 then WideScreen = True else WideScreen = False.

You could also test for a square device if desired (the above ratio would be less than 1).

Of course I don't mind people modifying code to meet their own needs. That's one of the reasons I post code with my programs.
 
Top