Share My Creation Scene Editor

Discussion in 'B4J Share Your Creations' started by Informatix, Jul 7, 2019.

  1. Informatix

    Informatix Expert Licensed User

    Scene Editor is a tool for game developers and game designers to visually design scenes (e.g. different levels of a platform game or different scenes of an adventure game) with identical results to what will be obtained with code, and the ability to simulate object physics using the Box2D engine.

    screenshot1_2.png

    It is planned in the future that this tool will automatically generate code for libGDX, SimpleGameEngine or X2. For now, you must read the file produced by Scene Editor in your application and create the different objects yourself according to the content of the file. Here is a piece of code that will help you read the file in SEL format.

    Downloads:
    Scene Editor version beta 1.2
    AngryBirds example (selz+projects B4A/B4J) v1.1
    Documentation (ENG)
    Documentation (FR)

    Current limitations:
    - Export functions do not work (except Export as text)
    - You cannot change the scene colors for bounding boxes and debug drawings
    - No multiselection
    - No scripting feature

    The shape editor for bodies:
    shape editor.png
    The selection tool for animations:
    09_animation.png
    The properties list:
    07_properties.png
    The fixtures editor for bodies:
    06_fixtures.png

    Scene Editor would not have been possible without these libraries:
    - jObservable
    - jSimpleGameEngine
    - jTableViewExtended
    - XUI2D
    ...and the work of Aurélien Ribon on PhysicsBodyEditor.
     
    Last edited: Jul 16, 2019 at 6:37 PM
  2. Peter Simpson

    Peter Simpson Expert Licensed User

    Hiya @Informatix,
    This looks amazing, really good :)
    I was under the impression that you were talking a bit of time out?
     
  3. ilan

    ilan Expert Licensed User

    WOW @Informatix
    it looks amazing! but the best part on it is YOU ARE BACK! :)
    will have a look at it. thank you!
     
    Jorge M A and DonManfred like this.
  4. ilan

    ilan Expert Licensed User

    ok ok i just tried it out and i am a little bit confused. is it a game editor like a drag and drop editor and then you can export it to a b4a (libgdx) or b4x project?
    can we create menu windows? and the whole game whit this tool? something like Buildbox?

    i had long time ago the idea to do such a tool. i even discussed it with @andymc and even started the project.

    gamebox.jpg
     
  5. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    Can you send simple examples for B4A and B4i?

    Thank you

    Alberto Iglesias
     
    Toky Olivier likes this.
  6. Informatix

    Informatix Expert Licensed User

    I started this project at least two years ago and, due to time constraints, I have only been able to complete it in recent weeks. There are some things missing that I would have liked to see there but I know I will be too busy in the coming months to make it the tool of my dreams, so I share what has already been done, hoping that it will be useful to someone.
     
  7. Informatix

    Informatix Expert Licensed User

    When you want to create an activity for Android or a form with B4J, you use the designer. Then see this tool as a designer for games. The idea is to be able to represent the different parts of the game on the screen, without coding anything, knowing that the result will be similar in the application. It is also to be able to test the physical part with Box2D so that you can make adjustments without waiting until you have coded this part. If you work in a team with someone who is not a programmer, you will quickly understand the usefulness of this tool (it avoids countless and tedious back and forth between someone who works with Photoshop or Tiled, and you the developer).
    You can use this tool to design the different levels of a platform game for example (with a background built with Tiled), but also to design an interface or try to find the best way to represent something in the game (for example, I used it to determine how to compose a deck of cards and find the right size for each component of these cards).
     
    Peter Simpson and fredo like this.
  8. Informatix

    Informatix Expert Licensed User

    I plan to provide an example this week for libGDX (B4A) and SGE (B4J). For X2, on the other hand, I don't plan anything because I don't know this library very well. I tried to use it but it didn't convince me and I dropped it. But if someone is an expert in X2, he can probably build an example from the examples provided for libGDX and SGE and that will teach me how to do.
     
    fredo likes this.
  9. Jmu5667

    Jmu5667 Well-Known Member Licensed User

    Wow !
     
  10. Peter Simpson

    Peter Simpson Expert Licensed User

    @Informatix what exactly didn't you like about this library, lets say compared to LibGDX?
    I'm still deliberating with myself which library to go with, why didn't X2 convince you?
     
  11. Informatix

    Informatix Expert Licensed User

    I don't think that's the appropriate thread to discuss this. Simply put, I gave up X2 because of a memory problem under Android and the lack of features. But X2 has a huge advantage over other solutions, it is compatible with B4a, B4i and B4j.
     
    LucaMs and Peter Simpson like this.
  12. Informatix

    Informatix Expert Licensed User

    I updated SceneEditor, the example and the documentation.

    Version beta 1.1:
    - I fixed a bug preventing to select some objects in a group after a Box2D simulation;
    - I fixed a bug in the rendering of Tiled map objects when the map was rescaled;
    - I fixed a bug in the joint editing dialog that did not update the data correctly;
    - The viewport is now a property of the scene, which allows you to resize everything by changing its size;
    - "Saved!" briefly appears under the FPS stats at the end of a save;
    - The asset paths in the SEL files are now relative paths;
    - I added a shortcut key (CTRL+O) to show/hide the object window.

    I just finished two examples using libGDX. I still have to finish the example using SGE (I will post probably tomorrow).
     
    José J. Aguilar and LucaMs like this.
  13. Informatix

    Informatix Expert Licensed User

    I added three projects to the AngryBirds example (link in post #1):
    - B4A: libGDX + lgBox2D
    - B4A: libGDX + XUI2D
    - B4J: SGE + XUI2D (this one requires the ArchiverPlusZip lib as it uses a SELZ file)

    If you are used to using one of the versions of Box2D, you will not be surprised to see that the result of a simulation differs from one phone to another, from one graphics engine to another... By using XUI2D, you will limit the differences.
     
    Erel likes this.
  14. Peter Simpson

    Peter Simpson Expert Licensed User

    Hello @Informatix,
    Whe i run the SceneEditor_beta1_1.jar file, it just cashes. I'm running the latest B4J.

    Java runtime directories that I have installed are as follows.

    C:\Program Files (x86)\Java\jre1.8.0_211
    C:\Program Files\Java\jre-10.0.2

    I just thought that I would let you know.

    Thank you...
     
  15. HAH

    HAH Active Member Licensed User

    Looks a great addition toward game development in B4X world
    Thank you ..
     
    Informatix likes this.
  16. Informatix

    Informatix Expert Licensed User

    Thanks for the report. I found where's the problem. It's due to two libraries not compatible with JDK 9+. I fixed these issues but I won't release a new version before tomorrow.
     
    DonManfred and Peter Simpson like this.
  17. Informatix

    Informatix Expert Licensed User

    I uploaded a new version.

    Version beta 1.2:
    - I fixed a compatibility issue with recent versions of Java that caused a crash;
    - I fixed a bug with the joints when one of the two connected bodies was removed;
    - I added the automatic tracer tool in the shape editor (thanks to Aurélien Ribon);
    - I replaced the object lists with a single TreeView;
    - I added a shortcut key (CTRL+L) to load a scene layout file;
    - Objects with the Visible property to False are no longer selectable with the mouse;
    - An error message is now displayed in case of a critical error causing a crash (and is saved to disk).
     
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