Followers 0

# Unity Unity or LibGDX for beginning 2D games

## 3 posts in this topic

Hi, i've been learning bits and bobs of programming for a while now and finally want to get my head down and make something. I've looked around at various game libraries for one that would offer the most and be cross-platform and i managed to find LibGDX to fill all these needs. I was learning LibGDX for a while before i realised Unity3D could be used to made 2D games (which is my main focus at the moment, but the added 3D would be an added future bonus) and i was wondering how Unity3D fared against LibGDX on the 2D front?

Mainly my requirements are: ease of use/ease of learning, flexibility, speed of development and general usefulness.

I would also like to know if C# has significant advantages over UnityScript in Unity as other people have said about having problems with UnityScript and how much difference there is between C# and Java?

Edited by Xycaan
0

##### Share on other sites

I don't know LibGDX, but I do know that using Unity will also reap other benefits over an only 2d API, and even over other 3d engines.

One, you mention the 3d as well.  It is an added bonus, and in fact can be used to make your 2d better.  Also, if in the future you want to make something fully 3d(gameplay too) you already know Unity3d so don't have to learn anything else.

Two, Unity is a commercial closed source project.  This can be good and bad, but on the good side, there is a massive company behind it, which means that things are constantly getting added and approved.  I can't say that the path of improvements they make are always what the community wants, but at the least we know it isn't going anywhere anytime soon.  LibGDX, being open source, doesn't necesarily mean it will go under soon either, rather it is simply more likely than in the case of Unity.  Then Open Source does have other advantages though.

Unity and GameMaker have one thing in common, though in different ways.  They are "quirky" as in there are sometimes things that you just do the way the program says, not the way you may think makes more sense.   The UDK has this problem too.  In Unity, the recommended method for having objects know about other objects is to create public variables in your classes and drag&drop them.  You can also use the find functions, but they are supposed to be pretty slow so are not recommended.  There are other things too, but I don't remember all of them.

As far as C# in Unity, there are indeed a few things that UnityScript is lacking compared.  Delegates are one thing, but frankly, though there are a few things, from what I've seen in forums, there isn't anything that jumps out heavily that would make a big deal.  Remember that they get converted to the same .NET code on the backend so it doesn't matter much.  Many people can use either one, though if you are more comfortable with one or the other, it makes more sense to use it then to worry about the other having a feature that this one may not.

If you have a budget, and believe you are only going to ever be interested in 2d games, you could look up GameMaker Studio.  The price of the Master Collection is about to go from $499 to$799 in a few weeks, but if you were to want to export to all the mobile systems and desktops, GMStudio does it, assuming you purchase either the master collection or the specific module you want.  One good thing about it is that it tends to be much easier than Unity3d to use, mainly for 2d though, but since it has the gml scripting language(similar to java/C/C++/delphi), you can still do pretty much anything you want to.

Unity has some advantages over GMStudio though, especially recently, and not only in the 3d side of things.  They have recently upgraded the free side of Unity.  It now includes some mobile exports for free, and a couple of paid features are now free, at least partially, like hard shadows from one lamp.

2

##### Share on other sites

I started with LibGDX about three weeks ago. I don't know much but I have already sprites bouncing on screen, different levels and other fancy stuff. As a beginner with the game programming I think I stay with 2D for a while. Less work, more games.

0

##### Share on other sites

I would recommend staying with LibGDX, you'll be learning much more and you'll be writing everything out yourself. LibGDX is also 3D Capable.

0

## Create an account

Register a new account

Followers 0

• ### Similar Content

• By KaiZerg
Dear Colleagues,
I have got several Folders(paper), to keep cheat sheets, practical guides, Lists of sequences ect.
What is the best way to separate Folders?
1)
-Unity all
-Unreal Engine all
2)
-Game art
-Game Design
-Game Engine
-Game Programming

• By NA-45
I'm currently working on Metroidvania style game that I was inspired to start by Hollow Knight and Beksiński's art.

It's built in Unity using C# and has quite a bit done already.  I'm handling the programming myself and have a working model (besides combat which is a WIP) that can be expanded greatly depending on where we decide to take the project.  You can see the current test area here: https://streamable.com/mp5o8  Since I'm not artistically gifted, its all rectangles but can easily be skinned once we've desired on designs.
I have professional experience using Unity and C# working on both a released game and a prototype as well as having extensive Java knowledge.  I also dabble in Python with a little bit of C++.
I have worked on and completed many projects before, the most recent being a 2D stick fighting game written ground up in Java Swing (don't ask why): https://www.youtube.com/watch?v=V4Bkoyp_f0o
I'm looking for a 2D artist (potentially more than one) to create concept and game art and a designer/writer who can help flesh out the story as well as map out and create challenging and eye catching areas.  I can handle most if not all of the programming side of things though if there is anyone who is extremely passionate about this sort of thing, I'd consider splitting the load.
The end goal is a completed game that can be sold however profit isn't really a concern to me as it's mostly a labor of love from my part.  Any profits would be split between team members however that's pretty far off so don't make that a reason to join.
______________________________
The story I have in mind is something like this:
A man wakes up in a chasm that stretches seemingly endlessly in both directions lined with enormous statues.

He discovers a temple with text above a closed gate that tells of the failed kingdom that lies below.  After finding a way around this, he drops down into the subterranean kingdom.  Adventuring through the labrynth below, he comes across different cities in which the residents succumbed to different sins such as Greed, Wrath, etc.  Each city tells a story of how its fixation on something lead to their demise leading up to a fight with the personification of their mistake.
______________________________
An very rough idea for Waterways, a potential area:
- To enter you must be wearing a pair of glasses that you find somewhere earlier in the ruins.  There are similar glasses found in every home.  Everything appears incredibly beautiful however something seems wrong.  After triggering some event, the glasses break and it's revealed that the glasses are made of some sort of stone that makes everything appear differently.  The city is in ruins and absolutely disgusting as everything was neglected.
- The only thing that remains intact is in the center of the city, an incredible statue of a goddess holding up a large sphere of the same material that was used for the glass.  You slowly learn the story behind the statue: the goddess came from the sea that the city lies on and brought prosperity to them.
- After opening up the the temple of the goddess that lies right on the edge of the waters, a giant sheet of the glass covers an opening in the back of the temple that reveals the goddess behind it.  You shatter the glass and it becomes apparent that the goddess is actually a disgusting creature half beached and mostly immobile that appears to secrete the material that makes up the glass. Fight ensues.
______________________________
The combat is pretty up in the air and part of the reason I need a designer to bounce ideas off of but I think it will be something like this:
- 4 orbs equipped at a time
- 2 orbs selected at a time
- Pressing the cast button will cast a spell determined by the 2 orbs that are selected
- Spells cost mana however you can use spells with 0 mana and it will cost health instead
- These spells in addition to being useful for combat, are the Metroidvania "gating" metchanic.  For instance, one of the conceptualized spells is a water orb + water orb to create a ice pillar that can be either used to block projectiles/enemy paths or to jump on to reach high areas
______________________________
If you're interested or have any questions, contact me through discord.  My id is NA-45#3692.

• My game (built on the Unity platform, making use of EZ GUI) requires players to log into Facebook. However, when the player is using a language other than English on Facebook, I'm unable to display the localized Username (which is the same as the FB Username) within the game. Any ideas on how this can be tackled?
PS: Detecting the OS language doesn't really help here because, for all you know, the player might be using one language for the OS, but another one for their Facebook, so....
TIA!
• By NajeNDa
Hi there,
I am a game programmer (C#/C++) who is looking for a project to join. I am computer science engineer plus Master Degree in Game Development, currently working in one the most renown mobile games company (2 years academic experience, 1 year working experience).
I have developed several prototypes or even games almost ready to release, but I always lack of artists, so I am looking for a project already set up or few artist to begin working in something.
My preferences are:
Unity or Unreal Engine 4 based project (UE4 prefered) PC/Console game prefered but mobile is acceptable Not interested in VR Serious team with almost all the roles filled or pretending to be filled 3D project prefered over Sprites Guaranteed 7 work hours per week, Crunch 20 work hours per week  European team (if timezone is not a problem for you, so it is not for me) I am not looking for any kind of money income from games neither the team, I want to do this as a hobby and a way to improve my skills.
Cheers

• 11
• 12
• 21
• 11
• 28