Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (749)
Games in Android Showcase (226)
games submitted by our members
Games in WIP (838)
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  
  LIBGDX  (Read 220 times)
0 Members and 1 Guest are viewing this topic.
Offline pavul

Junior Devvie

Medals: 3
Exp: 4 years

« Posted 2018-03-09 02:21:17 »

i have been reading about libgdx and seems to be the better option to me ( i was about to use godot and libgdx, cause im moving from game maker studio 2, im a java developer so i had to choose between libgdx), so, the main class should be a GGAME, that game should have Screens, screenes is where each level reside, but there is another approach called Scene2D, bassically is to add an Stage and actors to a screen, so, my question is, what advantage have Stage over screen, what if i dont use Stage or actors, but screen and sprites?

its better not know why it works, that know why is not working
Offline VaTTeRGeR
« Reply #1 - Posted 2018-03-09 09:04:08 »

They are not on the same level of abstraction:

->Screen does nothing for you except provide a template, it's an interface for you to implement, it contains no logic.

->Stage on the other hand does transformation solving, sprite sorting, event management, hit detection etc etc for you. It's a class like SpriteBatch or ParticleController, containing lot's of logic, meant to be used inside your game/screen.

You could have multiple screens with each multiple stages in them, which is what you should probably do!
Use one Stage for your gameplay and another for your GUI. Then use multiple screens for your different levels.

What you don't want to do is add and remove objects piece by piece from the stage yourself when you change levels, which is why you should use different screens with each their own Stage(s).

Read this:
Pages: [1]
  ignore  |  Print  

Solater (10 views)
2018-03-17 05:04:08

nelsongames (30 views)
2018-03-05 17:56:34

Gornova (31 views)
2018-03-02 22:15:33

buddyBro (78 views)
2018-02-28 16:59:18

buddyBro (54 views)
2018-02-28 16:45:17

xxMrPHDxx (466 views)
2017-12-31 17:17:51

xxMrPHDxx (138 views)
2017-12-31 17:15:51

xxMrPHDxx (216 views)
2017-12-28 18:11:33

Ecumene (485 views)
2017-09-30 02:57:34

theagentd (593 views)
2017-09-26 18:23:31
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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‑
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!