Results 1 to 8 of 8

Thread: Dark Night for GTK3

  1. #1

    Dark Night for GTK3

    For us Lazarus on Linux users the present GTK2/3/4 situation is somewhat challenging.
    But I hope it will get sorted out eventually and clever people are working on it.

    Meanwhile I started a brand new super simple mini project for GTK3.
    But despite super simple it tend to take more time than anticipated.

    But I think the first part is finally done now. Creating the game mechanics, or rather the UI
    It can be argued if the program really is a game. Perhaps more like interactive fiction?
    But nothing to present yet so you can be the judges of that later..

    Anyway. Time to change from programmer mode to creator mode and start createing the actual content for the upcoming Dark Night program.


  2. #2
    Looking forward to see what you come up this time

  3. #3
    Thanks. I'm afraid it will be some time before completed. The super simple UI is completed but the super simple story is getting tangled up. I'm getting lost in my own labyrint, so to say. But eventually something will be done.

  4. #4
    Quote Originally Posted by Jonax View Post
    The super simple UI is completed but the super simple story is getting tangled up. I'm getting lost in my own labyrint, so to say.
    We all know this feeling.
    First 70% doesn't take long. Next 20% takes much longer. And the last 10% seems to be taking eternity.

  5. #5
    Exactly. Anyway.. still working on the story. Now and then. And only text mode makes it incredibly simple to program. Actually I only use panels with multiline caption for the whole thing and a few booleans and one (block)chain inspired variable for keeping track of the state. Very standard. Very simple and short. But still getting messy to program. No doubt it will turn out I miss something important and mess up the events.

  6. #6
    Finally something presentable and the PGD users can get a pre-view.

    It is all text based and super simple interface. Keep clicking and chose your action at the forks. There are four of them.

    The acutal story is pretty simple and not much drama ongoing despite the sinister title. Still your choices will have impact and the end result depends on your choices.
    Hopefully the program has some replay value. At this stage it's more of a concept test. Testing text based and testing GTK3.

    I can mention there is some snags when I try to compile for ReactOS. A pesky panel turns visible at the wrong moment, which makes it all unbearable.

    But here is the Linux GTK3 version

    https://www.jonax.se/linux/darknight.php

    Enjoy!

  7. #7
    Update: It seems to me that my Lazarus programs compiled with GTK2 runs on Debian 12 but not on Debian 13 unless I run the sudo apt install libgtk2.0-0 command.

    Then it seems the new GTK3 widgetset programs runs on Debian 13 out of the box but not on Debian 12. There might be some trick to handle that too but I haven't bothered to look into that yet.

  8. #8
    Update. Minor polishing and a version for 32-bit ReactOS published.

    All in all a fairly simple project and not the most exciting story. Should be possible to re use the concept in some other setting in the future. For example "Dark Night on Mars", if I get creative.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •