Skip to content

TeaVM / HTML support? #149

Answered by metaphore
tsmaster asked this question in Q&A
Jul 14, 2024 · 3 comments · 6 replies
Discussion options

You must be logged in to vote

Half a year ago I had a very positive experience working with KTX + Fleks + gdx-teavm on my jam project. So I can tell that it stacks up nicely together except for some very rare edge cases mostly related to missing bits and pieces in gdx-teavm regards non-critical Java/libGDX API emulation for the web (like number formatting, regex, etc; but those holes could be patched since).

Looking at your code, the problematic line is in the companion object initialization block

companion object : ComponentType<FLTransformComponent>() {
    val log = logger<CWG2dGameScreenFleks>()
}

Going deeper into the logger() function, you can clearly see that it uses reflection:

inline fun <reified T : Any> logger

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@Quillraven
Comment options

@tsmaster
Comment options

Comment options

You must be logged in to vote
3 replies
@tsmaster
Comment options

@tsmaster
Comment options

@tsmaster
Comment options

Answer selected by tsmaster
Comment options

You must be logged in to vote
1 reply
@tsmaster
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants