B4J Tutorial GameView - Simple Sprites Engine

Discussion in 'B4J Tutorials' started by Erel, Sep 3, 2015.

  1. Erel

    Erel Administrator Staff Member Licensed User

    This is a port of B4A GameView library and modules.

    If you are not familiar with it then start with these tutorials:

    GameView is implemented as a Class module. It is included in the attached example.
    It depends on a library named jGameViewHelper. This library is also attached.

    The attached example is a port of B4A asteroids game example (make sure to change the video settings to HD):

    jGameViewHelper includes the following features:
    - Low latency playback (LoadAudioClip / PlayAudioClip)
    - DrawImageRotateAndFlipped - Allows drawing rotated and flipped images.
    - AddKeyListener - Adds a key listener to the form and allows handling the key events before they are processed by other controls.
    - SetBoxBlur - This method should improve the smoothness of Canvas drawings.

    You can run it in debug mode however it will be very jumpy. The performance should be good in release mode.

    The compiled executable jar file is available here www.b4x.com/b4j/files/Asteroids.jar (Requires Java 8)

    Attached Files:

    Last edited: Sep 3, 2015
  2. wonder

    wonder Expert Licensed User

    Thank you, thank you and thank you again!!! This is a great addition to B4J!! :D
    Last edited: Sep 3, 2015
    Erel likes this.
  3. ilan

    ilan Expert Licensed User

    this is awesome... now we need something like this for B4i.. :D

    thank you very much erel, really great work!

    (@Erel i have the filling you should enlarge your server ;), i am in GM {Game Making} mood)
    Last edited: Sep 4, 2015
    tufanv and wonder like this.
  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