Delphi Sprite Engine – Part 6 – DelphiGlass

6 Responses

  1. narcis75@gmail.com says:

    Thank you for your quick and professional response! So , is it doable to even think to develop a multiplatform 2d game with xe8?

    • It’s certainly doable.

      You should keep in mind that RAD Studio / Delphi is not made for, nor sold for the purpose of making games. There are other tools which are specialized for the purpose, and will therefore make much lighter work for you. Having said that, if you want to make games using Delphi, and are willing to put in the extra effort, it’s as capable as any other compiler or toolset.

      I don’t genuinely have time to create a complete game engine myself (which I why I limited the scope back in part-1, and still haven’t managed all of it), but it’s been my purpose to demonstrate that it’s possible.

    • FYI: I just made another update or two, to fix issues deploying to mobile.

  2. narcis75@gmail.com says:

    All is working but is very jerky … Hints for a good game loop?

    • Yes,
      I’m aware of the jerkiness, it’s because the multi-threading isn’t really setup well.

      I’ve still not quite decided how I’m going to address this, but for some good reading on game loops, see: http://otapi.com/2014/09/30/game-engine-architecture-game-loop-vs-parallelism-part-1/

      Right now, you’ll actually get a smoother animation using a “lazy-man” loop (remove the tasks and manually call to update and render per frame). I hope to get some time to work on this in the next couple of weeks, though the new release has me busy right now.

    • So, I made some significant changes to the threading system (to the entire library actually), and now have smooth animation.
      The code is a little rough around the edges, but is working. I’ll be making a few more updates and blogging about them some time next week.
      Recommended: Open the project group and uninstall the packages, update from subversion, install the new packages, restart IDE, open Pigeon sample and run it.
      There is also a potential stability issue under windows, on shut-down I’m getting an access violation because the rendering context is released before the viewport stops rendering to it. This will be one of the things I address next week.
      Library intended for learning purposes more-so than anything else, so please enjoy.

Leave a Reply