Games X2 Example Pack without a breakout game ???

Discussion in 'Game Development' started by ilan, Sep 7, 2018.

  1. ilan

    ilan Expert Licensed User

    that cannot stay like that right? ;)


    breakoutXui2d.jpg

    EDIT1: creating time about 2-3 hours.

    EDIT2: example has been updated (b4a also available now and works really fine)
     

    Attached Files:

    Last edited: Sep 7, 2018
    inakigarm, DonManfred, Erel and 6 others like this.
  2. ilan

    ilan Expert Licensed User

    ps. have a look at the simple level creating method :p

    EDIT: waiting for someone to post android and ios screenshot of it (and reporting performance states. thanx

    PS: try this level code:

    xui2dbrakout2.jpg ;)
     
    Last edited: Sep 7, 2018
  3. LucaMs

    LucaMs Expert Licensed User

    At this moment I can not launch this b4a file:
    upload_2018-9-7_11-26-53.png
    :D

    I try the b4j version...
     
    Alexander Stolte and ilan like this.
  4. LucaMs

    LucaMs Expert Licensed User

    I have to update something:
    B2Joint ?
    (searching for last updates of... all this strange (for me) stuff :))...
     
    ilan likes this.
  5. LucaMs

    LucaMs Expert Licensed User

    I'm lost (and now I have not so much time)...

    From [XUI2D Example pack]:
    So, to be sure to always... I cliked on that link; in the first post:

    upload_2018-9-7_11-48-18.png

    second post... links to From [XUI2D Example pack]: (see above)!


    I cannot jump around the site (at the moment).
     
    Last edited: Sep 7, 2018
  6. ilan

    ilan Expert Licensed User

    are you using b4j beta #2 ???

    EDIT: anyway i do agree with you that there is a big confusion about this lib. i had a lot difficulties at the beginning to run examples. erel is updating it very fast and you start getting errors if you have not updated everyting to the latest version.

    i really would like to have a sticky thread with all stuff that is needed to run those examples in the gamedev section so you can find everything you need in 1 post. including the objecttype.json, xui2d lib, bitmapcreator lib, and what else is needed. thanx
     
    Last edited: Sep 7, 2018
    LucaMs likes this.
  7. LucaMs

    LucaMs Expert Licensed User

    beta #1 - but... I thought I would find the libraries somewhere on site.
     
  8. ilan

    ilan Expert Licensed User

    update to beta #2
     
  9. LucaMs

    LucaMs Expert Licensed User

    doing... :)
     
  10. LucaMs

    LucaMs Expert Licensed User

    :mad::mad::mad:
    Download from here:
    https://www.b4x.com/b4j.html

    but it is the final version 6.30, so I have to redo :mad::mad::mad: :D
     
  11. LucaMs

    LucaMs Expert Licensed User

    upload_2018-9-7_12-48-46.png

    Very good.

    Increase the ball speed and draw something on top (the ball bounces without reaching the upper edge of the window)
     
  12. ilan

    ilan Expert Licensed User

    it is because the tilemap in tiled is smaller then the screensize in your b4j project.
    change the screen size to 600*450 (scale 1.33333) and you should get a nicer look.

    you can also uncomment X2.EnableDebugDraw and you will see the wall objects.
     
    Peter Simpson and LucaMs like this.
  13. Peter Simpson

    Peter Simpson Expert Licensed User

    About 3 hours seriously, that's excellent. Have a break, actually have some apple or orange juice, it will help you recharge your batteries.

    So, whats your personally conclusion about XUI2D compared to libGDX @ilan?

    If you don't want to say that absolute fine, no worries...
     
    ilan likes this.
  14. LucaMs

    LucaMs Expert Licensed User

    Knowing nothing... I would say that you can not compare a baby with a 40-year-old man.

    Most likely it still needs some time to grow.

    Do not forget the main factor: multiplatform.
     
    ilan likes this.
  15. ilan

    ilan Expert Licensed User

    i like both but i think coffee will do a better job :p

    ok so i will try to write what my opinion is if we compare libgdx and xui2d.

    first i want to say that libgdx is a very very complex library. there are an enormous amount of possibilities in libgdx. it has so many inside libs like math calculations and a lot of other stuff. you will not use most of them but you have the possibility. anyway, libgdx is very very powerful, fast and complex. it is a greate rendering framework and you can create really nice games with it. it is important to understand that box2d and libgdx are 2 different libraries. libgdx is a rendering library that draws all your sprites on the screen. box2d is a calculating library that calculates the physics and you can create bodies with it in a box2d world and use libgdx to draw your sprites to the bodies. there are also a lot of other drawing possibilities like particle effects, specialFX effects and much much more.

    now xui2d, xui2d is a very nice library that takes the rendering part and the physic part and mix them together to make the life of the game maker simpler. you can create really nice stuff and very fast with it. you can combine simple views in your project and use them (in libgdx it is not that simple and also very NOT recommended!!)
    it makes it very simpler to use xui2d and until now i had no performance issues with it. i have not created any real game with it but it is a very great and interesting tool that should be considered when creating games especially because you can share the same code with all 3 b4x platforms.

    in my opinion, i like most working with iSpritekit. because iSpritekit is a very strong game engine and very simple to use. you don't need to worry about rendering stuff you just create sknodes and that simple object can do so many stuff. it also includes everything in it like a body (or multiple bodies), a texture, you can add actions to it. and once you apply any force to his body or rotate it the sprite is moving with it together. if i make games my first choice is iSpritekit. once you understand how it is working you will wish you have the same tool for b4a.

    anyway, xui2d is very good. you get very good results with it and it is very simple to use. and i am sure erel will add more stuff to it so it will be much more powerful. i still need to understand a lot of stuff in it but i do like it a lot and recommend using it if you want to make a cross-platform game.

    EDIT: i have forgotten to mention that from what i see xui2d physics are very similar to libgdx + box2d. so the box2d stuff is the same. in spritekit it is also the same so once you learn how to work with box2d it will be very simple for you to work with all 3 game engines.
     
    Last edited: Sep 7, 2018
  16. Peter Simpson

    Peter Simpson Expert Licensed User

    So far so good then, you've learned a lot in such a short amount of time @ilan, congratulations. So it sound like developers will now have two really good game libraries to choose from, and to top it off you like them both. But as you said, with XUI2D you can easier cater for 3 B4X products, well in reality I would say 2, B4A and B4i for their respective app stores.

    Since Erel introduced XUI into the B4X family of tools, B4X had just gotten better and better.

    Thank you for your feedback, it's really appreciated @ilan...
     
    ilan likes this.
  17. ilan

    ilan Expert Licensed User

  18. Erel

    Erel Administrator Staff Member Licensed User

    DonManfred, Peter Simpson and ilan like this.
  19. ilan

    ilan Expert Licensed User

    the example has been updated in the first post. b4a is also available now. runs really fine (although there are not to much stuff in it)
     
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