Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (497)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Why does it seem that all the basic tutorials for libgdx are for android?  (Read 813 times)
0 Members and 1 Guest are viewing this topic.
Offline MrCoffee

Senior Newbie





« Posted 2013-08-25 21:44:39 »

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.
Offline Jimmt
« League of Dukes »

JGO Kernel


Medals: 131
Projects: 4
Exp: 3 years



« Reply #1 - Posted 2013-08-25 21:46:29 »

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.
Offline MrCoffee

Senior Newbie





« Reply #2 - Posted 2013-08-25 21:54:55 »

Dumb, really dumb question, but that's because it is Java, right? Clueless
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline davedes
« Reply #3 - Posted 2013-08-25 22:03:39 »

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?
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).

Offline MrCoffee

Senior Newbie





« Reply #4 - Posted 2013-08-25 22:37:48 »

I did not know that.  Thanks.  I thought libgdx was solely a Java thing.
Offline Several Kilo-Bytes

Senior Member


Medals: 11



« Reply #5 - Posted 2013-08-25 22:47:09 »

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"
Offline ReBirth
« Reply #6 - Posted 2013-08-26 01:13:36 »

1. 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.
2. Android project needs more attention. The rule is everything on Android project, except related to hardware, will work on desktop but not vice versa.

Offline davedes
« Reply #7 - Posted 2013-08-26 01:31:48 »

1. Libgdx projects won't work without Android project. It even forces you to create one. This proves the idea of "mobile-first" concept.
2. Android project needs more attention. The rule is everything on Android project, except related to hardware, will work on desktop but not vice versa.

1. 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.

http://www.java-gaming.org/topics/libgdx-how-do-i-load-local-assets-without-an-android-project/29148/msg/266799/view.html#msg266799

Offline ReBirth
« Reply #8 - Posted 2013-08-26 01:45:07 »

@davedes: thanks for the correction. I rephrase my words.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

BurntPizza (19 views)
2014-09-19 03:14:18

Dwinin (34 views)
2014-09-12 09:08:26

Norakomi (62 views)
2014-09-10 13:57:51

TehJavaDev (84 views)
2014-09-10 06:39:09

Tekkerue (42 views)
2014-09-09 02:24:56

mitcheeb (64 views)
2014-09-08 06:06:29

BurntPizza (47 views)
2014-09-07 01:13:42

Longarmx (35 views)
2014-09-07 01:12:14

Longarmx (39 views)
2014-09-07 01:11:22

Longarmx (36 views)
2014-09-07 01:10:19
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!