Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-11

Just a quick pascal game related video

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Anthony Walter

Some people on the Lazarus forums where discussing frames and time with regards to game development. I decided to create a real quick video demonstrating what I consider how to deal with time.

That is, don't use a TTimer, instead use a high performance time function, wrap it in a class, and for the purposes of game dev, you should have separate logic and render thread which are all apart from the message queue (user interface) thread.

Here is the quick demonstration video (based on SDL 2) which I created:

http://cache.getlazarus.org/video/bare-cube.mp4

If you're interested in playing around with these type of approach, BareGame is located at github:

https://github.com/sysrpl/Bare.Game

To integrate with Lazarus

open package source/barerun.lpk and compile
then open package tools/design/baredsgn.lpk and install

You can then select "Project | New Project ... | Game Project"

You'll need SDL 2 installed to run game projects.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151128/7e028b0a/attachment.html>

Reply by email