Wednesday, September 20, 2006

Design of the "Game" form - Level 1

To create the "Game" form, follow the steps below:

- File->New->Form – Delphi for Win32
- Object Inspector->Properties->Miscellaneous->Name->FormGame
- Object Inspector->Properties->Miscellaneous->Position->poScreenCenter
- Object Inspector->Properties->Layout->Autosize->True
- Object Inspector->Properties->Layout->Autoscroll->False
- Object Inspector->Properties->Layout->Scaled->False
- Object Inspector->Properties->Layout->Left->-500
- Object Inspector->Properties->Layout->Top->-1000
- Object Inspector->Properties->Input->KeyPreview->True
- Object Inspector->Properties->Visual->BorderIcons->biMinimize->False
- Object Inspector->Properties->Visual->BorderIcons->biMaximize->False
- Object Inspector->Properties->Visual->BorderStyle->bsNone
- Object Inspector->Events->Miscellaneous->OnCreate
- Object Inspector->Events->Input->OnKeyDown

Then for each character of the game you need to add, follow the steps below:

- Tool Palette->Supplement->TImage
- Object Inspector->Properties->Miscellaneous->Name->ImageMan1
- Object Inspector->Properties->Miscellaneous->Transparent->True
- Object Inspector->Properties->Localizable->Picture->Load->man01.bmp
- Object Inspector->Properties->Layout->Autosize->True

To go faster you can use copy/paste to create the subsequent characters and just modify the picture and the name.

No comments: