这样啊 那我就 贴相关的一些
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, jpeg, StdCtrls, ComCtrls, Menus, CustomizeDlg,StrUtils;
const
……
type
bkMap=Array[0..27,0..22] of integer;
Eimg=array[1..6] of Timage;
TForm1 = class(TForm)
Bomber_img: TImage;
bk_img: TImage;
MainMenu1: TMainMenu;
mfile: TMenuItem;
mfopen: TMenuItem;
SBar1: TStatusBar;
OpenDia: TOpenDialog;
Timer1: TTimer;
Enemyimg1: TImage;
Enemyimg2: TImage;
Enemyimg3: TImage;
Enemyimg4: TImage;
Enemyimg5: TImage;
Enemyimg6: TImage;
Picstore: TImage;
N1: TMenuItem;
N2: TMenuItem;
N3: TMenuItem;
procedure OnKeyDown(Sender: TObject;
var Key: Word;
Shift: TShiftState);
procedure onclick(Sender: TObject);
procedure getflag(sx:integer;sy:integer;ox:integer;oy:integer);
procedure Timer1Timer(Sender: TObject);
procedure moveto(sx:integer;sy:integer;px:integer;py:integer;obj:Timage;idd:integer);
procedure FormCreate(Sender: TObject);//这行出错
private
……
public
……
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);//实现部分的函数定义
var
i:integer;
begin
Form1.timer1.enabled:=false;
bomber_img.Enabled:=false;
Enemyimg[1]:=Enemyimg1;
Enemyimg[2]:=Enemyimg2;
Enemyimg[3]:=Enemyimg3;
Enemyimg[4]:=Enemyimg4;
Enemyimg[5]:=Enemyimg5;
Enemyimg[6]:=Enemyimg6;
for i:=1 to 6 do
Enemyimg.Enabled:=false;
form1.DoubleBuffered:=true;
end;
end.
请诸位大侠快出手啊
鬼打墙了,降妖除魔呀:)
急死我了:(