Results 1 to 8 of 8

Thread: Castle Game Engine 5.0.0 released

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Great news. I just tried it. I have a problem, though. It's not possible to switch into or start any game in fullscreen on Linux Mint 16 Cinnamon. All examples work fine in windowed mode. I had to change the FPS example to windowed mode for working correctly. Are there any tutorials about the 2D part of the engine?

    BTW, wouldn't it be nice to have a sub-forum on PGD for the Castle Game Engine? * hint for Christina *
    Best regards,
    Cybermonkey

  2. #2
    Quote Originally Posted by Cybermonkey View Post
    I have a problem, though. It's not possible to switch into or start any game in fullscreen on Linux Mint 16 Cinnamon. All examples work fine in windowed mode. I had to change the FPS example to windowed mode for working correctly.
    Hm, I'll have to look into it. Possibly it's something specific to Cinammon. Fullscreen works fine on Debian and Ubuntu, with Gnome 3, Unity, Mate, Xfce, KDE desktops... If you compile the examples as usual (using provided sh scripts or Lazarus project files) then we use GTK_2 backend, and fullscreen is done using gtk_window_fullscreen procedure, so it should definitely work (many other programs use it too, e.g. Firefox on pressing F11).

    In the meantime, you can try compiling for Linux with -dCASTLE_WINDOW_XLIB. It will initialize the window (including fullscreen) using a different backend, based on pure Xlib.

    Are there any tutorials about the 2D part of the engine?
    http://castle-engine.sourceforge.net...d_controls.php contains examples and short overview. It also has links to API docs for the important parts, like TGLImage class and CastleControls unit. The fps_game.lpr source code also contains simple examples. Some other examples also use 2D controls for their UI (TCastleOnScreenMenu is used by examples/terrain/ , some simple ones are also in examples/2d/ and examples/lazarus/model_3d_with_2d_controls/ ).

    Please ask if you have any questions, and then we will extend the documentation/tutorial

  3. #3
    Okay, I will try this a.s.a.p. but Firefox fullscreen works, SDL2 fullscreen works, only Castle Game Engine gives me an access violation.
    For 2D I am looking for a simple tutorial how to load and display a sprite and moving it on the screen with the keyboard. Is it possible to load a sprite sheet and make an animation out of it with some built-in castle engine functions?
    Last edited by Cybermonkey; 05-05-2014 at 09:49 AM.
    Best regards,
    Cybermonkey

  4. #4
    Quote Originally Posted by Cybermonkey View Post
    Okay, I will try this a.s.a.p. but Firefox fullscreen works, SDL2 fullscreen works, only Castle Game Engine gives me an access violation.
    Ouh, it's an Access Violation? Then I'll have to try it myself ASAP. Can you try does compiling with -dCASTLE_WINDOW_XLIB helps? Also, what is the version of GTK 2 on Linux Mint 16 Cinnamon?

    Quote Originally Posted by Cybermonkey View Post
    For 2D I am looking for a simple tutorial how to load and display a sprite and moving it on the screen with the keyboard. Is it possible to load a sprite sheet and make an animation out of it with some built-in castle engine functions?
    There is no ready class for this, but you should be able to easily do it yourself Use TGLImage.Draw method that takes parameters ImageX, ImageY, ImageWidth, ImageHeight --- saying which part of the image to draw. You can wrap it in your own class to render a specific animation frame.

  5. #5
    Seems to be GTK 2.24.20-1ubuntu1, the same as on Ubuntu 13.10 I think.
    Okay, using -dCASTLE_WINDOW_XLIB works fine.
    Last edited by Cybermonkey; 05-05-2014 at 09:15 PM.
    Best regards,
    Cybermonkey

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
  •