Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,742,143 Members 51,880 Now Online
XDA Developers Android and Mobile Development Forum

[Game] Cribbage

Tip us?
 
Mach2003
Old
(Last edited by Mach2003; 9th February 2012 at 01:06 AM.) Reason: New!!!!!!
#1  
Mach2003's Avatar
Senior Member - OP
Thanks Meter 87
Posts: 1,019
Join Date: Sep 2008
Location: Kelowna

 
DONATE TO ME
Default [Game] Cribbage

Major update posted today:

All paint routines re-done, nice felt graphic background (stolen from win7)
Help re-done, includes Menu, Help, Context to give help based on game play
Added Win7 card backs and faces, removed a couple of old winmo card backs
Using Win7 and Xp's card faces, instead of pegcards
Card size and text size better fits screen space (drag to size on PC).

Versions for WM2003, WM5, and WM6.5.3 included.
PC Versions for Win32 and Win64 included (msi in zip file)

New Cards SDK (soon to be) added to post number 6, includes new functions (see cards.h)


/*************/

A very long time ago I wrote a One person Crib game for Windows PC. I never really released it into the wild, but did pass it on to many people I knew (attached here as a zipped CribSetup.MSI file).

I decided to convert that code over to Windows mobile.

The first stumbling block was that windows mobile is missing the famous "cards(32).dll" file that I depended on to display the cards on the PC version. However the standard shell comes with a resource dll "pegcards.dll" that contains the card images, and may contain a higher resolution one as well (pegcards.192.dll, for example). So all I needed to do was emulate the cards.dll functions and use the pegcards images to get it to fly.

The attached WMCrib.exe (zipped) is the beta build of that game.
The attached CAB is an installer, that includes shortcuts and help file/link.
Post number 6, has the Cards32.dll for developers

- The PC version uses a right click to do many things, Tap the stock pile on the Mobile version to do the same functions ("Go", "Done"...).

- The existing application searches for pegcards.196.dll, Pegcards.128.dll, pegcards.96.dll and then pegcards.dll in that order, so chooses the highest resolution images available. I noticed that there are different card backs in each set I have here.

This is a beta build, I have tested it on my phone (and run it on my PC for many years), but you may have issues with your device, use at your own risk

Have Fun!
Attached Files
File Type: cab CribGame2003.CAB - [Click for QR Code] (1.03 MB, 69 views)
File Type: cab CribGame653.CAB - [Click for QR Code] (1.02 MB, 70 views)
File Type: cab CribGame5.CAB - [Click for QR Code] (1.03 MB, 50 views)
File Type: zip CribSetup32.zip - [Click for QR Code] (2.10 MB, 30 views)
File Type: zip CribSetup64.zip - [Click for QR Code] (2.10 MB, 18 views)
Main: Samsung OmniaII B8000L
Rom: Custom 6.5.3 23146, based on JE1 OEM
Device: I8000LUGIJ6 CSC: Mimimum Rebuilt, NoBell

Spare: Touch Diamond
Rom: 6.5.5 23563
Radio: 1.00.25.05, Rogers rilphone
Spare: Hermes TyTn
Rom: 6.5.3 23529

Is your built-in GPS giving you a headache?
GPS Mod Driver - Working Lag Fix, GeoCaching Fix, Multi-Device, Now with Hardware compass support

If you wish to contribute, click

 
Zepiii
Old
#2  
Zepiii's Avatar
Retired Forum Moderator
Thanks Meter 14
Posts: 1,069
Join Date: Dec 2008
Location: www.generation-mobiles.net

 
DONATE TO ME
Maybe some screenshots ?
 
Mach2003
Old
#3  
Mach2003's Avatar
Senior Member - OP
Thanks Meter 87
Posts: 1,019
Join Date: Sep 2008
Location: Kelowna

 
DONATE TO ME
Default A picture is worth a thousand words

Screens (wvga: OmniaII)
Attached Thumbnails
Click image for larger version

Name:	Crib1.JPG
Views:	730
Size:	24.7 KB
ID:	357202   Click image for larger version

Name:	Crib2.JPG
Views:	410
Size:	24.6 KB
ID:	357203   Click image for larger version

Name:	Crib3.JPG
Views:	291
Size:	23.0 KB
ID:	357204   Click image for larger version

Name:	Crib4.JPG
Views:	219
Size:	26.9 KB
ID:	357205   Click image for larger version

Name:	Crib5.JPG
Views:	200
Size:	19.8 KB
ID:	357206  

Click image for larger version

Name:	CribSolitare.JPG
Views:	149
Size:	21.1 KB
ID:	357207   Click image for larger version

Name:	CribStats.JPG
Views:	149
Size:	27.8 KB
ID:	357208  
Main: Samsung OmniaII B8000L
Rom: Custom 6.5.3 23146, based on JE1 OEM
Device: I8000LUGIJ6 CSC: Mimimum Rebuilt, NoBell

Spare: Touch Diamond
Rom: 6.5.5 23563
Radio: 1.00.25.05, Rogers rilphone
Spare: Hermes TyTn
Rom: 6.5.3 23529

Is your built-in GPS giving you a headache?
GPS Mod Driver - Working Lag Fix, GeoCaching Fix, Multi-Device, Now with Hardware compass support

If you wish to contribute, click

 
Mach2003
Old
#4  
Mach2003's Avatar
Senior Member - OP
Thanks Meter 87
Posts: 1,019
Join Date: Sep 2008
Location: Kelowna

 
DONATE TO ME
Edited the first post, added a cab file with installer, links, and help files.
Main: Samsung OmniaII B8000L
Rom: Custom 6.5.3 23146, based on JE1 OEM
Device: I8000LUGIJ6 CSC: Mimimum Rebuilt, NoBell

Spare: Touch Diamond
Rom: 6.5.5 23563
Radio: 1.00.25.05, Rogers rilphone
Spare: Hermes TyTn
Rom: 6.5.3 23529

Is your built-in GPS giving you a headache?
GPS Mod Driver - Working Lag Fix, GeoCaching Fix, Multi-Device, Now with Hardware compass support

If you wish to contribute, click

 
the0ne
Old
#5  
the0ne's Avatar
Senior Member
Thanks Meter 52
Posts: 843
Join Date: Jan 2007
Location: Melbourne
looks nice
---

Windows Phone Apps || Windows Phone Games --- want to review apps and game for windows phone and get paid for it ? Get it touch



---
 
Mach2003
Old
(Last edited by Mach2003; 9th February 2012 at 01:21 AM.) Reason: New SDK
#6  
Mach2003's Avatar
Senior Member - OP
Thanks Meter 87
Posts: 1,019
Join Date: Sep 2008
Location: Kelowna

 
DONATE TO ME
Default Cards32.dll for developers

If you wish to include the standard cards32 functions plus a new extra functions, in your program, include cards.h in your project, and link with the correct cardsxx.lib.
On WinMo move the dll into the devices windows folder.
On PC, save the dll into the application's folder, or to the windows folder.

WATCH OUT that on XP or older there is an existing "Cards32.dll" in the windows folder. Mine should be fine to replace it, but I have not tested this on XP with original card based applications (Hearts, Solitare...). It should allow the "new" cards to be used on thse older XP card games (even when used on non-XP machines). You could even copy cards32.dll into the windows folder on 64 bit machines so that the XP card games will play on Win7 (or Vista)

The header file is well documented.

Cards32.dll for 32 bit desktop use
Cards64.dll for 64 bit desktop use
CardsWinMo2003 for older ARM machines, any ARM code machine will be fine.
CardsWinMo5, and Cards WinMo653 (should be identical , for any ARM THUMB machine
Attached Files
File Type: zip CardsSDK.zip - [Click for QR Code] (4.84 MB, 5 views)
Main: Samsung OmniaII B8000L
Rom: Custom 6.5.3 23146, based on JE1 OEM
Device: I8000LUGIJ6 CSC: Mimimum Rebuilt, NoBell

Spare: Touch Diamond
Rom: 6.5.5 23563
Radio: 1.00.25.05, Rogers rilphone
Spare: Hermes TyTn
Rom: 6.5.3 23529

Is your built-in GPS giving you a headache?
GPS Mod Driver - Working Lag Fix, GeoCaching Fix, Multi-Device, Now with Hardware compass support

If you wish to contribute, click

 
thex
Old
#7  
thex's Avatar
Senior Member
Thanks Meter 7
Posts: 138
Join Date: Sep 2006
Can you add an option for us to add our own scores with a penalty of overcounting or under counting to go to the opponent?
__________________
HTC One
ROM: Stock

Previous: WM Tilt, Tilt2, Inspire 4G, HOX
 
ai6908
Old
#8  
ai6908's Avatar
Senior Member
Thanks Meter 265
Posts: 3,603
Join Date: Nov 2006
Location: Land of Lincoln

 
DONATE TO ME
Excellent game...thanks...
Hit "THANKS" button if you like the above post!!
Moto Atrix HD ROM - Batakang
HTC Flyer (WiFi) ROM - Stock Honeycomb3.2 No Root
My UnderVolt Tweak for cfX
 
Mach2003
Old
#9  
Mach2003's Avatar
Senior Member - OP
Thanks Meter 87
Posts: 1,019
Join Date: Sep 2008
Location: Kelowna

 
DONATE TO ME
Quote:
Originally Posted by thex View Post
Can you add an option for us to add our own scores with a penalty of overcounting or under counting to go to the opponent?
It could be done, and it would add another level of difficulty to the game. I'll look into it.
Main: Samsung OmniaII B8000L
Rom: Custom 6.5.3 23146, based on JE1 OEM
Device: I8000LUGIJ6 CSC: Mimimum Rebuilt, NoBell

Spare: Touch Diamond
Rom: 6.5.5 23563
Radio: 1.00.25.05, Rogers rilphone
Spare: Hermes TyTn
Rom: 6.5.3 23529

Is your built-in GPS giving you a headache?
GPS Mod Driver - Working Lag Fix, GeoCaching Fix, Multi-Device, Now with Hardware compass support

If you wish to contribute, click

 
Mach2003
Old
#10  
Mach2003's Avatar
Senior Member - OP
Thanks Meter 87
Posts: 1,019
Join Date: Sep 2008
Location: Kelowna

 
DONATE TO ME
Quote:
Originally Posted by thex View Post
Can you add an option for us to add our own scores with a penalty of overcounting or under counting to go to the opponent?
A question to the order of adding the penalty points. If you enter a tally too small (or large), do you score your tally (or the correct tally), and THEN the computer gets your error points? Could affect the winner near the end of the game. Is this order dependant on who is counting first?
Main: Samsung OmniaII B8000L
Rom: Custom 6.5.3 23146, based on JE1 OEM
Device: I8000LUGIJ6 CSC: Mimimum Rebuilt, NoBell

Spare: Touch Diamond
Rom: 6.5.5 23563
Radio: 1.00.25.05, Rogers rilphone
Spare: Hermes TyTn
Rom: 6.5.3 23529

Is your built-in GPS giving you a headache?
GPS Mod Driver - Working Lag Fix, GeoCaching Fix, Multi-Device, Now with Hardware compass support

If you wish to contribute, click


Tags
cards.dll, crib, cribbage, wm game
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...