I can’t find a basic Hello World except an Android. Aren’t there basic tutorials like there are for pygame? Thanks. Yes, I did look at the tutorials page but didn’t see anything. I’m hoping I just overlooked it.
Most of the tutorials written for android can be copy+pasted to desktop with little or no modification. They just say ‘android’ tutorial because it’s libgdx’s premier feature.
Dumb, really dumb question, but that’s because it is Java, right? :clue:
LibGDX makes it so you “write once, run anywhere” with their targeted platforms. So, in most cases, LibGDX tutorials will run fine on platforms other than Android.
[quote]that’s because it is Java, right?
[/quote]
Nope. Java is just a programming language. LibGDX is the framework that pulls together many technologies to produce a multi-platform framework. Some backends end up compiling to other languages (e.g. JavaScript) or compiling to ARM bytecode (iOS).
I did not know that. Thanks. I thought libgdx was solely a Java thing.
The front end is Java. (And GLSL if you count that.) It targets distributions other than and including Java bytecode.
Edit: Added the words “and including”
- Libgdx projects won’t work without Android project. It even forces you to create one. The setup UI enables Android project by default (and no way to turn it off). This proves encourages the idea of “mobile-first” concept.
- Android project needs more attention. The rule is everything on Android project, except related to hardware, will work on desktop but not vice versa.
- is not true. It’s just the default for the setup-ui. You can use LibGDX like you would any other 3rd party Java library, by simply including it in your class-path. No need for multiple projects or any Android dependencies.