8
iamroot
3y

OMFG... im in an AP computer science class and we are starting our first big project (this is a java class) and my teacher put us in a group of 3 and we had to figure out a project to do for the next 3 months. So like the teenagers they are they want to make a game... IN JAVA. like wtf java is not made for games. but since im only 1/3 of the group i have to go with the majority. So now I have to figure out how to do graphics in java. I am thinking of using LWJGL for 2d graphics. If anyone knows any other libraries for 2d graphics please let me know. (i don't want to use swing)

Comments
  • 1
    Lol I will have to face that next year. Which is why I am trying to spread coding literacy at my middle school before we go to high school in 10th grade.
  • 1
    Haha, that sucks. Good luck!
  • 1
    Minecraft is written is Java, it's not bad for games.
  • 0
    @tw17 i think he meant java isint ideal to make a game?
  • 1
    @tw17 ye ik but two things
    1 Minecraft is such a badly optimized game that it's hard to run on some computers.

    2 if you used an engine like unity or unreal it's possible to make a game in a day or two. But Java is really hard to make games in.

    Not saying it's not possible with java it's just c++ or c# is way more efficient and faster
  • 1
    @SoulSkrix it's not an "active" project. We still focus in the curriculum for the class but when we have extra time we work on it. Hence the long time period.
  • 1
    @iamroot
    Doesn't Minecraft run on Raspberry pi?
  • 1
    @okkimus single player but more intensive stuff like servers and huge builds and redstone contraptions it will lag too much
  • 1
    On more serious point:
    It really doesn't matter what language you are using. Your goal (hopefully) isn't an AAA game.
  • 1
    LubGDX is great for making Java games. Just make sure you keep it simple. It may seem at first that a Zelda (one of the first games) or pokemon clone would be simple, but it really isn't. You need to take care of Cameras, maps, game objects, entities, collisions and much more that takes a lot of time to get working , especially if you have no idea what you are doing.
    Some example projects:
    - tic-tac-toe
    - asteroids (twin stick shooter)
    - endless runner (with just jumping and maybe random map)
  • 1
    @okkimus @iamroot okkimus is right, do you really think you'll be able to make such a game that the *language* will be a problem?

    Don't be cocky, it sounds like a **much** better idea to use an easier language than loose dozens of hours debugging C++ because you read somewhere that Java isn't made for games.
  • 1
    JavaFX is pretty easy going and easy to get results with. 2D and the learning curve is not as steep as LWJGL. And it comes as part of Java 8!

    Just keep in mind that games take a lot of work to make... But hey, maybe three months from now you'll be telling us just that ;)
  • 0
    @host127001 which Library did we use the first time we made a game in Java?
  • 1
    @2xCmet Slick2D. Its pretty cool for simple 2D games
  • 0
    @host127001 wasn't Slick2d no longer maintained, with LibGDX being it's successor?
  • 1
    @killermenpl I don't know. Haven't done anything on the JVM for some time. I remember using it like 2 years ago and it was a great framework, but maybe today there are better ones.
  • 0
    Lol sick joke. You have the wrong idea, c++ or c# is not faster or more optimized than java it's just better for games and intense graphics processing due to the jvm being a thing.
Add Comment