The playing field can be (still to come) sized with the window. Then size of the playing field is known, e.g. 640 width x 280 high.
Cards images are loaded. E.g. you have 10 cards, you have to find 2 same cards, so we have 20 cards to put on the table.
Card image can expand to adapt the card size. But what dimensions do the cards get with the available playing field size?
Approximately, the space available for each card is the total playing field surface / number of cards; but what dimensions to use then for one card? And will they all fit in the given area or do they run out on the right or bottom?... read more
Now card images are shown:
Choose a directory where the cards images are (plus the .cards game settings file).
The cards are shown at the right side, out of the playing field.
At play, the cards are shuffled.
Display the cards - put them on the table (image size not yet adapted)
Cards can be clicked to show the image - partly works - some cards still fake/empty.
Load Game from game directory.
(nothing can be done with it except "check" the directories/files.
Cards in directory are counted.
In the work up to now, mainly found under CardsFit 0.0.2:
The normal settings are used for
Defined object CCardGame
For the games itself, they are to be delivered in a directory nameOfTheGame.
There's not really very much educative games for Linux, once that are there are quite old, so let's make something for the kids that gives them the feeling of "free" by adaptable card images. Should have called it GCards? hehehe..
Development started in Gambas2. (sorry that Sourceforge has no programming language choice for it .. so left it empty; although visual basic alike but SOOO different ;-)
Working on objects to define.
Working on play field/table/table carpet?
Working on basic graphics.... read more