B4A Library [B4X] XUI2D (Box2D) - Game engine

Discussion in 'Additional libraries, classes and official updates' started by Erel, Jul 17, 2018.

  1. Erel

    Erel Administrator Staff Member Licensed User

    XUI2D is a wrapper for jbox2d engine: https://github.com/jbox2d/jbox2d
    License: https://github.com/jbox2d/jbox2d/blob/master/LICENSE

    iXUI2D is a wrapper for Box2D: http://box2d.org/

    XUI2D and iXUI2D share the same API and together with BitmapCreator, XUI library and the X2 framework they allow to build cross platform games.

    Installation instructions:

    Requires B4J v6.5+, B4A v8.5+, B4i v5.3+

    Download the correct BitmapCreator and copy it to the internal libraries folder.

    Current versions:

    - BitmapCreator v4.50
    - XUI2D - latest version is preinstalled.
     

    Attached Files:

    Last edited: Nov 29, 2018
  2. Erel

    Erel Administrator Staff Member Licensed User

    Last edited: Aug 23, 2018
  3. jahswani

    jahswani Active Member Licensed User

    :):):):):):):):):):):):)
     
    Johan Hormaza and JordiCP like this.
  4. KMatle

    KMatle Expert Licensed User

    Stop it! I can't follow anymore :D
     
    Johan Hormaza and somed3v3loper like this.
  5. sorex

    sorex Expert Licensed User

    I installed the beta but I don't see the project > add module > class > game class which is seen in the screenshot of one of the tutorials?

    gameclass.png
     
    Last edited: Jul 19, 2018
  6. Erel

    Erel Administrator Staff Member Licensed User

  7. konradwalsh

    konradwalsh Active Member Licensed User

    Ok, I have downloaded the Bitmap Creator Lib from above several times but it is version 3.60?

    Where is v4
     
  8. DonManfred

    DonManfred Expert Licensed User

    V4 is attached to #1

    Note that it is an INTERNAL library.
     
  9. Erel

    Erel Administrator Staff Member Licensed User

    XUI2D v0.92 and X2 framework v0.92 released.

    - New class templates:

    [​IMG]

    - Support for world contact callbacks. This is a more robust way to handle collisions. For example in this screenshot you can see a one way horizontal body. The collision is only enabled if the kid is above the block.

    [​IMG]

    - Ray casting. Cast a ray and find the bodies that are intercepted by the ray. You can see its usage in the walking character example. Touch or click on the screen to fire a laser beam.

    - Many small improvements and bug fixes.

    Note that the Game class template has been updated. I will update all the current examples.
     
    Ohanian and Peter Simpson like this.
  10. konradwalsh

    konradwalsh Active Member Licensed User

    Ah.. the INTERNAL bit thats been updated in the first post is the issue.

    Thanks @DonManfred
     
  11. Erel

    Erel Administrator Staff Member Licensed User

    (j)BitmapCreator v4.10 and XUI2D v0.93 are released.
     
  12. Erel

    Erel Administrator Staff Member Licensed User

    New versions released. Large update with many internal improvements. X2 framework now includes a class named X2TileMap that makes it easy to create tiled maps and objects with Tiled map editor: https://www.mapeditor.org/
     
    korshkov likes this.
  13. Erel

    Erel Administrator Staff Member Licensed User

    BitmapCreator v4.16 released.
     
    Johan Hormaza and asales like this.
  14. Erel

    Erel Administrator Staff Member Licensed User

    Large update including BitmapCreator v4.17 and XUI2D v0.95. The X2 framework was also updated with many changes.

    New examples pack with all the currently available examples: https://www.b4x.com/android/forum/threads/xui2d-example-pack.96454/#post-608505

    There was an important breakthrough in the B4A implementation and the performance was significantly improved.
    All the examples now run in 60 fps on a 5 years old (and quite weak) Nexus 5 device.
     
  15. Johan Hormaza

    Johan Hormaza Active Member Licensed User

    Excellent EREL !!! Now it runs great! on a Motorola G2 .. Thanks!
     
    Erel likes this.
  16. Erel

    Erel Administrator Staff Member Licensed User

    Johan Hormaza likes this.
  17. Erel

    Erel Administrator Staff Member Licensed User

    XUI2D v0.98 released. Adds support for WheelJoint.
     
  18. Erel

    Erel Administrator Staff Member Licensed User

    XUI2D v0.99 released. Adds support for DistanceJoint, PrismaticJoint and MotorJoint.

    The first stable version is not far away...
     
  19. Erel

    Erel Administrator Staff Member Licensed User

    1. B4i iXUI2D is now available.
    2. B4J beta #2 with latest versions of XUI2D and jBitmapCreator is also available.
     
    asales and Toley like this.
  20. Erel

    Erel Administrator Staff Member Licensed User

    BitmapCreator v4.20 released. It includes a new method for drawing rotated anti-aliased bitmaps. It is significantly faster in B4J and B4i (up to 10 times faster). It is not used in B4A for now as the performance is similar to the canvas based performance.
    It is managed internally in X2SpriteGraphicCache.
     
    Johan Hormaza likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice