GithubHelp home page GithubHelp logo

Add FXGL simple example about scalaonandroid HOT 4 OPEN

AlmasB avatar AlmasB commented on September 21, 2024
Add FXGL simple example

from scalaonandroid.

Comments (4)

AlmasB avatar AlmasB commented on September 21, 2024 1

from scalaonandroid.

AlmasB avatar AlmasB commented on September 21, 2024 1

Right, the issue is with the graalvm version I believe. I tried this with one of the latest stable builds and got the same runtime error. Version 20.2.0 works fine though. As far as I'm aware this is will be fixed eventually, but I wonder what exactly triggers this awt load call -- will check.

Thanks for the Scala example!

from scalaonandroid.

makingthematrix avatar makingthematrix commented on September 21, 2024

I decided to write a bit more comlicated example so I could try it out together with Gluon Mobile: https://github.com/makingthematrix/scalaonandroid/tree/main/HelloFXGL

It turns out there's no problem with using FXGL from Scala, but there is a problem with using FXGL on Android - there is no support yet for AWT on Android :(
I described my work in details in the readme file for HellFXGL (under that link above). Do you think anything can be done about it from your side? Or should I talk to Gluon?

from scalaonandroid.

makingthematrix avatar makingthematrix commented on September 21, 2024

@AlmasB : I was able to get the error with only adding FXGL to dependencies, without using it in the code. Maybe one of FXGL dependencies uses AWT?... I wrote about it in a comment here.

from scalaonandroid.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.