Menu

CardsFit / Blog: Recent posts

How to calculate the size of the cards to display?

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

Posted by cybrarian 2013-01-07

0.1.2 Cards images load from directory

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.

Posted by cybrarian 2013-01-07

Load a game (CardsFit 0.0.5)

Load Game from game directory.
(nothing can be done with it except "check" the directories/files.
Cards in directory are counted.

Posted by cybrarian 2012-11-13

CardsFit: game settings, games settings

In the work up to now, mainly found under CardsFit 0.0.2:

The normal settings are used for

  • game home dir
  • last game dir
    -...

Defined object CCardGame

  • sName
  • iSets
  • ICardsInSet
  • sLocation (path)
  • bValid (after loading game)
  • sLastError

For the games itself, they are to be delivered in a directory nameOfTheGame.

  • With a subdirectory "Set1" that contains all the images number-named like 001-elephant... read more
Posted by cybrarian 2012-11-04 Labels: prepare

CardsFit: a gambas game

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

Posted by cybrarian 2012-10-06 Labels: start gambas gambas2 game linux
MongoDB Logo MongoDB