Ai
1 Star 0 Fork 0

phy0292/cheat-engine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tlgUnit.pas 1.54 KB
一键复制 编辑 原始数据 按行查看 历史
Dark Byte 提交于 2020-12-11 06:39 +08:00 . dark mode support
unit tlgUnit;
{$MODE Delphi}
interface
uses
LCLIntf, Messages, SysUtils, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, LResources, betterControls;
type
Ttlg = class(TForm)
Image1: TImage;
Label1: TLabel;
Timer1: TTimer;
Label2: TLabel;
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure Timer1Timer(Sender: TObject);
procedure Image1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
private
{ Private declarations }
public
{ Public declarations }
score: integer;
end;
var
tlg: Ttlg;
implementation
resourcestring
rsYouWin = 'OMG, You must have cheated or don''t have a life. (Although some people claim that thats the same)';
procedure Ttlg.FormClose(Sender: TObject; var Action: TCloseAction);
begin
action:=cafree;
end;
procedure Ttlg.Timer1Timer(Sender: TObject);
begin
image1.Left:=random(width-image1.Width);
image1.Top:=random(height-image1.Height);
if not image1.Visible then image1.Visible:=true;
end;
procedure Ttlg.Image1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
inc(score);
label2.Caption:=IntToStr(score);
image1.Left:=random(width-image1.Width);
image1.Top:=random(height-image1.Height);
timer1.Enabled:=false;
timer1.Interval:=timer1.Interval-100;
if timer1.Interval<=0 then showmessage(rsYouWin);
timer1.Enabled:=true;
end;
initialization
{$i tlgUnit.lrs}
end.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/phy0292/cheat-engine.git
git@gitee.com:phy0292/cheat-engine.git
phy0292
cheat-engine
cheat-engine
master

搜索帮助