M
M
Maxim K2019-05-13 10:13:57
Delphi
Maxim K, 2019-05-13 10:13:57

What engine to use and can there be courses, books on this engine to create an elementary sprite game?

Which engine to use for delphi, lazarus and maybe there are courses, books on this engine to create an elementary sprite game?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
Hemul GM, 2019-07-31
@mkvmaks

I did a little here. It remains to add image upload to ID2D1Bitmap
GitHub

procedure TFormMain.FormCreate(Sender: TObject);
begin
  Engine := TD2EngineCore.Create(800, 600);
  Engine.LoopedWorld := True;
  Engine.CreateTest;
  Engine.Run;
end;

procedure TFormMain.FormDestroy(Sender: TObject);
begin
  Engine.Free;
end;

procedure TFormMain.FormPaint(Sender: TObject);
begin
  Canvas.StretchDraw(ClientRect, Engine.Buffer);
end;

procedure TFormMain.FormResize(Sender: TObject);
begin
  Canvas.StretchDraw(ClientRect, Engine.Buffer);
end;

procedure TFormMain.TimerRepaintTimer(Sender: TObject);
begin
  Invalidate;
end;

R
Ronald McDonald, 2019-05-13
@Zoominger

For games, it's best to use C#.
Delphi is long gone.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question