Sign in to follow this  

Unity Java vs Python for game dev

This topic is 2346 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a friend (HurrrrHmmm) who wants to know what would be better for making 3d games (This is not to do with a scripting language), Java or Python?

Java:
-Faster
-Uses More Ram
-Most used more for 3d games/apps (has a big community too)
-More wrappers to C++ stuff (Like Ogre3d, Which is what I'm going to use for graphics)
-More difficult

Python:
-Slower (But can be sped up with the use of IronPython or Psyco)
-Uses less Ram
-Less used for 3d games (but does have a big community)
-Lots of wrappers (like Java, like the Ogre3d wrapper :D)
-Less difficult

I know this is basic info, but I'm finding really hard to choose between both of these languages! Any help?

Share this post


Link to post
Share on other sites
Depends on what language you like most. Both languages have powerful engines with large community (JMonkeyEngine for Java and Panda3D for Python). Panda3D is actually a hybrid engine, it's written in C++ but Python is the main language for it. You could apply same thing to Java/Python - write your engine in Java, write your game in Jython. Although, writing an engine won't get you anywhere near the completed game, so you'd be better off just picking a language you like most, pick an engine and start coding.




It also depends on your programming style - Java forces object oriented style and is verbose, while Python is more of a hack scripting language brief in form.


Share this post


Link to post
Share on other sites
[quote name='LizardGamer' timestamp='1310295989' post='4833296']
[quote name='i_luv_cplusplus' timestamp='1310293380' post='4833284']
Python is more of a [b]hack scripting language[/b] brief in form.

[/quote]

What do you mean by that, (I don't really understand)?
[/quote]
compare some similar java and python code. Java has a lot of variable declarations, types, keywords while Python goes away with that in order to allow for quickly writing new code. http://pythonconquerstheuniverse.wordpress.com/category/java-and-python/ here you have some examples, it's a bit Python biased but still.

Share this post


Link to post
Share on other sites
Basically, if you want to write a medium -to- large program, use java. If you want to write a small application, use python. The speed hit in python will kill you on any decent sized application, and bug checking in python will get painful because of its dynamic typing.

So, it really depends what type of 3d game you want to create. Small game, use python. Medium to large game, use Java.

Share this post


Link to post
Share on other sites
[quote name='i_luv_cplusplus' timestamp='1310323892' post='4833417']
[quote name='LizardGamer' timestamp='1310295989' post='4833296']
[quote name='i_luv_cplusplus' timestamp='1310293380' post='4833284']
Python is more of a [b]hack scripting language[/b] brief in form.

[/quote]

What do you mean by that, (I don't really understand)?
[/quote]
compare some similar java and python code. Java has a lot of variable declarations, types, keywords while Python goes away with that in order to allow for quickly writing new code. http://pythonconquerstheuniverse.wordpress.com/category/java-and-python/ here you have some examples, it's a bit Python biased but still.
[/quote]
... So? The quantity of declarations and keywords does not a good language make.

Even with this definition of "hack scripting language", you haven't done anything to prove that it is good or bad.

Share this post


Link to post
Share on other sites
[quote name='smasherprog' timestamp='1310324707' post='4833419']
So, it really depends what type of 3d game you want to create. Small game, use python. Medium to large game, use Java.
[/quote]

What if I used various C++ libraries with python (like ogre3d, bullet, openal etc. and compiling to machine code with psyco)? Could this be suitable for a medium - large scale game? Or would Java still be better?

Share this post


Link to post
Share on other sites
The term large is relative, but If you want to do any large games, do not use python --use Java. Or, better yet, use c++. But, if your choices are Java or python only, definitely use Java over Python. Even with c++ libraries that python uses --it will help, but Python is slow compared to Java..

this is older, but its one of the links I found
http://blog.snaplogic.com/?p=55

Share this post


Link to post
Share on other sites
[quote]
Could this be suitable for a medium - large scale game?
[/quote]
It depends on the type of game, and your definition of "medium" and "large". Action games are far more performance sensitive than turn based games.

Python has been used in large AAA games, but mostly as a scripting language for the non-performance sensitive aspects of the game. If you are using libraries for graphics and physics you might be able to get away with using Python for most everything else.

[b]There is no right answer[/b]. What you need to balance are the requirements of your game, and your own requirements in terms of productivity and experience in the languages you know.

Share this post


Link to post
Share on other sites

This topic is 2346 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Forum Statistics

    • Total Topics
      628646
    • Total Posts
      2984030
  • Similar Content

    • By arash khalaqhdoust
      hey guys i hope you doing all well. last night i released my first game in google app store, i really appreciate you guys  to download it. and share your reviews about it
      the idea of game comes from mini hackgame of Bioshock.
       link of download:
      https://play.google.com/store/apps/details?id=com.RVBinary.piperist
      many thanks
    • By ForgedInteractive
      Who We Are
      We are Forged Interactive, a small team of like-minded game developers with the sole purpose of making games we love! Currently, we're progressing very quickly with our first project and there are plenty of opportunities and work for new interested programmers. With this project, our development platform is Unity 5.5.2 and C# as our behavioral language. Since this project is our first release, the game itself is a smaller project though progress is moving quickly. We are looking to finalize the current project and get started on future projects in the near future and are expanding our team to do so.
       
      Who We Are Looking For:
      Programmer Level Designer  
      About the Game
      Ours is the tale of two siblings, thrown into a world of chaos. Living in the shadow of their parents' heroic deeds and their Uncle's colorful military career, Finn and Atia are about to become the next force to shape our world. How will you rise through the ranks of Hereilla and what will be your legacy? Once defeated your enemies turn coat and join you in your adventures. Players can enjoy a range of troops and abilities based on their gameplay style which become more important as maps introduce more challenging terrain, enemies and bosses. Strong orc knights, dangerous shamans, and even a dragon are out on the prowl. Knowing when to fight and when to run, and how to manage your army is essential. Your actions alone decide the fate of this world.
       
      Previous Work by Team
      Although we are working towards our first game as Forged Interactive, our team members themselves have worked on titles including and not limited to:
      Final Fantasy Kingsglaive FIFA 2017 Xcom 2 Civilization  
      What do we expect?
      Reference work or portfolio. Examples what have you already done and what projects you have worked on academic or otherwise. The ability to commit to the project on a regular basis. If you are going on a two-week trip, we don't mind, but it would be good if you could commit 10+ hours to the project each week. Willingness to work with a royalty based compensation model, you will be paid when the game launches. Openness to learning new tools and techniques
       
      What can we offer?
      Continuous support and availability from our side. You have the ability to give design input, and creative say in the development of the game. Shown in credits on websites, in-game and more. Insight and contacts from within the Industry.
       
      Contact
      If you are interested in knowing more or joining, please email or PM us on Skype. A member of our management team will reply to you within 48 hours.
       
      E-mail: Recruitment@ForgedInteractive.com
      Skype: ForgedInteractive
       
      Regards,
      David, Colin and Joseph
       
      Follow us on:
      Facebook: https://www.facebook.com/ForgedInteractive/
      Twitter: @ForgedInteract
      Youtube: https://www.youtube.com/channel/UCpK3zhq5ToOeDpdI0Eik-Ug?view_as=subscriber
      Reddit: www.reddit.com/user/Forged_Interactive

    • By dell96
      I'm trying to make my first project but I'm stuck i don't know how to make my crate to start to spawn again when i hit the start button after i die.
      hoping someone can help!!!
      Crate.cs
      CrateSpawn.cs
      Cratework.cs
      GameController.cs
      GameManager.cs
  • Popular Now