Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (577)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 2 3 [4]
  ignore  |  Print  
  2d game with libgdx where to start?  (Read 17471 times)
0 Members and 1 Guest are viewing this topic.
Offline davedes
« Reply #90 - Posted 2013-05-09 14:53:28 »

so how would you guys go about doing this? cause im probably just going to look for a working project and just start modifying it to make it work the way i want.
all this copying and pasting code has been nothing but problems  Emo
You need to understand how to program. Start by writing some Java programs that aren't related to graphics/games. Learn what Object Oriented programming is. Read some books about programming paradigms and design patterns. Take some courses, either at school or online.

Copy-pasting random code is like copy-pasting random English language sentences and hoping it forms a coherent essay.

Offline Nate

JGO Kernel


Medals: 149
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #91 - Posted 2013-05-09 17:05:27 »

Try this fast paced online book:
http://math.hws.edu/javanotes/
Other books are much longer and have lots of words. Smiley

@heisenbergman, read the CHANGES file in git for API breaking changes. You can also read the blog or even the git commit messages, though this is not necessary.

Offline ReBirth
« Reply #92 - Posted 2013-05-09 23:30:37 »

For nightly build you may want to see CHANGES file on the repository. I use stable build and wait for blog post for clearer explanation.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline heisenbergman

JGO Coder


Medals: 14


L___ o_ G___ a__ P___


« Reply #93 - Posted 2013-05-10 02:07:15 »

^ Okay, thanks Nate & RB!

Offline hellrazer21

Junior Duke





« Reply #94 - Posted 2013-05-10 02:56:56 »

its not that i dont know how to program (and im not say im an expert) but some of this stuff isn't in an intro to java book resize and setscreen is libgdx stuff

if someone can help me out with this project i'd be more then happy to share the profits


Offline Jimmt
« League of Dukes »

JGO Kernel


Medals: 136
Projects: 4
Exp: 3 years



« Reply #95 - Posted 2013-05-10 03:25:27 »

You don't really need to know that create() and render() are libgdx-related to debug it. Always follow the stack trace.
Offline heisenbergman

JGO Coder


Medals: 14


L___ o_ G___ a__ P___


« Reply #96 - Posted 2013-05-10 03:48:41 »

its not that i dont know how to program (and im not say im an expert) but some of this stuff isn't in an intro to java book resize and setscreen is libgdx stuff

if someone can help me out with this project i'd be more then happy to share the profits

I'll help, although I'm not interested in the profits. I'm just coming at this because I like a good bit of problem/puzzle-solving.

How many classes do you have already? Are the three classes from the previous page all you have so far? Meaning hellrazer -> Splash -> MainMenu?

Because I'll try running it when I get home and figure out for myself what's going on.

Offline hellrazer21

Junior Duke





« Reply #97 - Posted 2013-05-10 07:04:11 »

its only those three classes and its only test images and code. i was just trying to get setup, going from splash to mainmenu to game
the menu dosen't go anywhere right now, i didnt want to spend time on a serious menu if i couldn't get a basic screen change working, thanks for the help man i really appreciate it

heres the whole project http://www.mediafire.com/download.php?vcwd1qpddpw8ulz

Offline heisenbergman

JGO Coder


Medals: 14


L___ o_ G___ a__ P___


« Reply #98 - Posted 2013-05-10 07:26:11 »

^ Ayt. I'll post back here if I find something out.

Offline hellrazer21

Junior Duke





« Reply #99 - Posted 2013-05-10 07:46:42 »

ok im guna be working on the sprites

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline heisenbergman

JGO Coder


Medals: 14


L___ o_ G___ a__ P___


« Reply #100 - Posted 2013-05-10 15:18:27 »

Hey hellrazer21, I figured it out...

Based on the Screen API, the Screen interface has no create() method. What it has is show()... so what I did is take everything you had inside create() and I put it inside show(). It just displays a white screen, but at least you won't get any errors now.

That's why you were getting a NullPointerException --- because create() is never called meaning screen is indeed null when resize() is done.

Offline hellrazer21

Junior Duke





« Reply #101 - Posted 2013-05-10 23:03:59 »

what if i dispose everything from splash to get a clean start with the menu?

Offline heisenbergman

JGO Coder


Medals: 14


L___ o_ G___ a__ P___


« Reply #102 - Posted 2013-05-10 23:05:22 »

hmmmmm... well... you can try it and tell us how it goes just to see if you can get the menu working that way Smiley

Offline Jimmt
« League of Dukes »

JGO Kernel


Medals: 136
Projects: 4
Exp: 3 years



« Reply #103 - Posted 2013-05-10 23:54:26 »

hellrazer, please use google, and please post new threads for your problems instead of one giant thread.
Offline hellrazer21

Junior Duke





« Reply #104 - Posted 2013-05-13 04:45:53 »

ok  Lips Sealed


Offline Vermeer

JGO Coder


Medals: 16



« Reply #105 - Posted 2013-05-26 14:41:45 »

This may help, depends how you like to learn, but I found it helpful

www.youtube.com/watch?v=WP5qA_kgV6Y


Not just the first video , but the whole series.
Offline seifpic

Junior Newbie





« Reply #106 - Posted 2013-05-26 20:15:26 »

I'm a bit late here, but my recommendation is to learn basic Java first and get the hang of how it works and how to debug. Then start by learning Java2D, although you can do without it I recommend it to get a feel for basic UI and OOP programming. Once you're good with that then learn other APIs like Libgdx. To learn Libgdx, you should learn how OpenGL basically works, don't go too deep though. Then watch Dustin Riley's tutorials and maybe get into GLSL later. It's a long process but it will help big time. I can't say I'm a Java expert (heck I still prefer null layouts Tongue) but I think this should get you fluently programming in Libgdx. Don't forget to refer to the wiki and also refer to https://github.com/mattdesl/lwjgl-basics/wiki (all of it, not just the Libgdx section). As I said, I'm no expert so feel free to correct me in anything I say.
Hope this helps.
Pages: 1 2 3 [4]
  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.

Longarmx (49 views)
2014-10-17 03:59:02

Norakomi (38 views)
2014-10-16 15:22:06

Norakomi (31 views)
2014-10-16 15:20:20

lcass (34 views)
2014-10-15 16:18:58

TehJavaDev (65 views)
2014-10-14 00:39:48

TehJavaDev (65 views)
2014-10-14 00:35:47

TehJavaDev (54 views)
2014-10-14 00:32:37

BurntPizza (72 views)
2014-10-11 23:24:42

BurntPizza (43 views)
2014-10-11 23:10:45

BurntPizza (84 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!