Monday 31 May 2010

Memory Game

In this project, we are going to create a memory game. I think there are three steps of creating a memory game.

Step 1 : Create the form / user interface

Step 2 : Set the properties of the components

Step 3 : Write the code

Step 1 : Create the form / user interface

First you have to create a form with some image components, a label, a start button, a  timer and an exit button. You can set any width or height properties of your components you use. And arrange them like the picture below or you can use your own arrangement.

Then cover all images with buttons. So your form will be like this :

Step 2 : Set the properties of the components

Now, set the properties of all components we use in this project like tables below :

Form

PropertyValue
CaptionMEMORY GAME
Position

poDesktopCenter

Buttons

ComponentPropertyValue
StartButtonNameStartButton
Caption&Start
ExitButtonNameExitButton
Caption&Exit
Button1 .. Button20Caption?

Label

PropertyValue
CaptionMEMORY GAME

Images

PropertyValue
Stretchtrue

Timer

PropertyValue
Interval1000
Enabledfalse

Step 3 : Write the code

Before we start writing the code, we need to prepare some pictures for this project. I have prepared 30 pictures that you can download (jpg format). Or you can have your own pictures. If your pictures are in jpg format, you have to declare it in the uses clause.

uses

  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls,       jpeg;

To see the complete code, you can download this project here.

6 comments:

  1. Kelihatannya menarik.
    Tapi saya masih belum pernah nyoba Delphi.

    ReplyDelete
  2. keren Sob.
    Ane download ya......

    Thnks

    ReplyDelete
  3. wah, Nice share ne...
    Is it running in VB !?
    I'll try it later =D

    ReplyDelete
  4. The code is the most important part. This software could give us a fun class of programing language. I hope can understand your code. I also know how to make my own memory game, but I certainly make it different.
    Thanks for your contribution.
    Interesting people share interesting things.

    ReplyDelete
  5. We have 10 years experience in all the design steps: Trend watching and Market Research Innovation Consultancy Design Management Industrial Design 3D CAD Design Engineering Material Consultancy Prototyping Production Management

    ReplyDelete
  6. What is a one stop shop?

    From the start of your new product development project until the manufacturing phase can be managed by our company. All the steps in between , such as 3D CAD engineering, tweaking and realizing working mock-ups or prototypes are our core competences.

    ReplyDelete

These links are part of a pay per click advertising program called Infolinks. Infolinks is an In Text advertising service; they take my text and create links within it. If you hover your mouse over these double underlined links, you will see a small dialog box containing an advertisement related to the text. You can choose to move the mouse away and go on with your browsing, or to click on the box and visit the relevant ad. Click here to learn more about Infolinks Double Underline Link Ads.