• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
jinxiful

Python or Java?

19 posts in this topic

About a week ago I started learning Python.
I started from scratch (meaning i knew NOTHING about programming),
and so far i only know some basics (Variables, Strings, Lists, Functions etc).
I learned from TheNewBoston's video guides on youtube, and I got up to episode 16 (out of about 43 i believe).
So far I have only made some extremely basic stuff, such as a program that asks you to input 5 numbers and then tells you which of the numbers you typed is the biggest (really simple stuff).
From reading around some more, I came to realize that Java is much more efficient than python for creating full scale iOS and PC games (that's what im aiming for).
 
So my question is:
Should I drop python and start learning java (which would be harder, but better for my goals in the long run- python might be just a waste of time, and i should master java instead), or go on with python because i'm already a used to it, and learn a different language only when I have already mastered it (the only reason I chose python is because I read that it was easy to pick up- again, I know nothing about programming).
 
and another small question: how much time of language learning does it take to make a game, even a game as basic as "tic tac toe"?
and how does a fully developed game's (let's say a 2D platform adventure game) script looks like? Whats its length? can anyone send an example?
 
thanks in advance
0

Share this post


Link to post
Share on other sites

Is your goal in life to learn languages, or use languages to make awesome stuff?

I don't want to learn as many languages as possible if that's what you mean by "learn languages".

I want to master a language or two and be able to use them to make awesome stuff

0

Share this post


Link to post
Share on other sites


I second this: d4n1 has the right idea -- focus on learning game programming, not learning a language (if that's what you want to learn). Pick the language best for you (especially since you're starting out only a week ago) and learn the language. From there focus on game programming, not game programming in *this language I chose to learn*. The language is the tool; the real idea is using the best tool for the job.

 

so your'e saying that this: http://www.youtube.com/playlist?list=PLEA1FEF17E1E5C0DA (what im studying from) is for learning the language it self in depth, and will not eventually get me to making a game?

so where should i learn from? 

and how do i know the "best programming language" for my needs?

0

Share this post


Link to post
Share on other sites

 


I second this: d4n1 has the right idea -- focus on learning game programming, not learning a language (if that's what you want to learn). Pick the language best for you (especially since you're starting out only a week ago) and learn the language. From there focus on game programming, not game programming in *this language I chose to learn*. The language is the tool; the real idea is using the best tool for the job.

 

so your'e saying that this: http://www.youtube.com/playlist?list=PLEA1FEF17E1E5C0DA (what im studying from) is for learning the language it self in depth, and will not eventually get me to making a game?

so where should i learn from? 

and how do i know the "best programming language" for my needs?

 

 

Start by learning a language and how to program, the language you choose is irrelevant as long as it is reasonably popular(Learning how to program is far harder than learning a language and both your needs and the languages available will change over time), The new bostons python tutorials cover the very basics, nothing more, once you've worked through them i'd recommend looking at the official documentation and getting a decent book, pick a small project to work on to put what you've learned to practical use.

2

Share this post


Link to post
Share on other sites

If you already started with python, stick to it. Python is perfectly fine as a language and also specifically for game development.

 

Java is better for Android development, but for the PC, neither has any real advantage in the sense of deployment or availability. Most people have a Java VM installed, but Python can be packed pretty small and distributed with your game (py2exe even makes an executable file from it).

 

Python has good enough performance for everything you might want to do in the first years (and it will take years before you can think about making anything "big").  You will also be able to transfer all your python knowledge to Java later. Most experienced programmers can pick up a new programming language in a matter of days or weeks, because they know the concepts and only need to learn how to express them in the new language.

 

I suggest you stick with Python, learn how to program (which is easier in Python than in Java, imho) and once you really need it, switch to Java. But that will probably not be before the end of the year or so, if you really want to learn the concept correctly.

2

Share this post


Link to post
Share on other sites

 


I second this: d4n1 has the right idea -- focus on learning game programming, not learning a language (if that's what you want to learn). Pick the language best for you (especially since you're starting out only a week ago) and learn the language. From there focus on game programming, not game programming in *this language I chose to learn*. The language is the tool; the real idea is using the best tool for the job.

 

so your'e saying that this: http://www.youtube.com/playlist?list=PLEA1FEF17E1E5C0DA (what im studying from) is for learning the language it self in depth, and will not eventually get me to making a game?

so where should i learn from? 

and how do i know the "best programming language" for my needs?

 

Yes you need to learn a language or two to actually program. But keep an eye on the bigger picture: you are learning to program, not to program just in Python. Things like variables, functions, etc. are all applicable to many, many languages that's all. For now, sticking to python and using that tool to learn programming, and then game programming, is your best bet. You can then move to Java, or C++, or anything else and it'll be easier to transfer your knowledge from language to language.

 

Learning the "best" programming language for your needs is a science and an art. In the future, you'll have experienced using different languages. As you work with Python, you'll notice what it does well and what it's not good at. If you later move to Java, you'll notice the same thing for that language. As time goes on, you'll have intuition. If there's another language you don't know, but think it might be a good one, just do some research, test the language out, etc.

0

Share this post


Link to post
Share on other sites

Ok, I get it. So the language is a tool for creating games, and I first need to learn "programming" before I learn "game programming". So i'll stick to python.

But let's say iv'e watched all of thenewboston's videos about python (43 of them), and I now know and have practiced all the basics. I know all the basic commands, functions, modules etc. Where do I go from there? How do I get this knowledge of writing python to serve me in making actual games? How will "print x" or "if x else y" be translated into a game? How do I start doing this process called "game programming"? It's like learning how to use work tools and then wanting to build a building. 

Edited by jinxiful
0

Share this post


Link to post
Share on other sites

Ok, I get it. So the language is a tool for creating games, and I first need to learn "programming" before I learn "game programming". So i'll stick to python.

But let's say iv'e watched all of thenewboston's videos about python (43 of them), and I now know and have practiced all the basics. I know all the basic commands, functions, modules etc. Where do I go from there? How do I get this knowledge of writing python to serve me in making actual games? How will "print x" or "if x else y" be translated into a game? How do I start doing this process called "game programming"? It's like learning how to use work tools and then wanting to build a building. 

 

For Python you can use pygame (a library) to handle graphics, input and sound.

Start with a very small game project (i usually recommend pong since it is fairly trivial).

 

Break it down into as small parts as you can.

what objects or data structures do you need to represent the game state ?

what rules govern how the game state is updated ?

 

then its simply a matter of a loop that:

*checks for player input

*updates the game state

*presents the gamestate to the player (i.e , draw stuff on screen and play sound effects)

Edited by SimonForsman
0

Share this post


Link to post
Share on other sites

Ok, I get it. So the language is a tool for creating games, and I first need to learn "programming" before I learn "game programming". So i'll stick to python.

But let's say iv'e watched all of thenewboston's videos about python (43 of them), and I now know and have practiced all the basics. I know all the basic commands, functions, modules etc. Where do I go from there? How do I get this knowledge of writing python to serve me in making actual games? How will "print x" or "if x else y" be translated into a game? How do I start doing this process called "game programming"? It's like learning how to use work tools and then wanting to build a building. 

 

write some simple stuff like mandelbrot set viewer or arkanoid 

then you could try to learn some more complex platform game

or something

 

hard truth is that this (doin decent game) is very hard (very large amunt of work, it is for example much harder then get a master degree in the college)

 

I was learning such basics you learn 20 years ago about '90

(though I was going very low lewel and got more than 10 years

of break in meanwhile) and still trying to make some decent game

with only partial succes - If this is not scary you - it should ;/

 

ps. probably native engish speakers got somewhat easier here becouse not knowing english can probably slow down you much here and learning english to this extent can take 5-10 years too (big part of articles tutorials etc are only avaliable in english - end even whan i was able to read english i was doing it much slower than in native language (still probably i read it a bit slower and it get more tired when reading english) - 

Edited by fir
0

Share this post


Link to post
Share on other sites

If you need to further your programming (and library use), I'd suggest learning to use API's and looking up the information on installation and use of the pygame library to make some simple games. Python and pygame is great and you can do a lot with it -- so go at it! You'll notice that something like "handling collision" and other algorithms can be translated from language to language, so "game programming" will be a bunch of tools and algorithms you learn using python and pygame. Check it out and learn a lot!

 

There's also a ton of videos on youtube about making games with pygame, so if youtube videos are helping you a lot, I'd say go for it :)

0

Share this post


Link to post
Share on other sites

 

From reading around some more, I came to realize that Java is much more efficient than python for creating full scale iOS and PC games (that's what im aiming for).

 

Efficiency is one of the last things you should worry about as a beginner.  You're not exactly going to be writing Battlefield 5.  Focus on what you find easiest to work with for now which certainly will be influenced by familiarity (so sticking with Python if you're already started down the road is very valuable).  Given a year or three of experience you'll have the knowledge to not only make a choice between languages for new projects but also be able to ask the right questions.

 

 

Actually, efficiency is EXACTLY what he/she should worry about as a beginner; it's just a matter of how you define efficiency.  ( For the record, I agree with you completely, I am just being a pedant ).

 

 

See, there are many metrics by which you can measure a programming languages efficicency.  The speed of the code it generates, the productivity of the programmer using it, or the speed in which someone learns the language.

 

As a beginner, you want to choose a language that is efficient for learning.  This generally means no or a simplified build cycle ( if you dont know what this means, good!  you picked a language that fit the criteria! ), lots of supporting documentation and a large community of people to talk to.  Python fits this criteria, although it wouldn't be my personal recommendation.  ( I would personally recommend LUA ).

1

Share this post


Link to post
Share on other sites

Ok, I get it. So the language is a tool for creating games, and I first need to learn "programming" before I learn "game programming". So i'll stick to python.

But let's say iv'e watched all of thenewboston's videos about python (43 of them), and I now know and have practiced all the basics. I know all the basic commands, functions, modules etc. Where do I go from there? How do I get this knowledge of writing python to serve me in making actual games? How will "print x" or "if x else y" be translated into a game? How do I start doing this process called "game programming"? It's like learning how to use work tools and then wanting to build a building. 

 

If-statements allow you to make decisions based on a test case. Can you not think of any situations in a game where you could use this? Logical statements are the most commonplace things. If I'm hungry, I eat, else, I don't eat. Simple. Of course the computer doesn't attribute it's logic skills to intuition, so you have to make that decision explicitly. If a player's health is less than 0%, then end game and notify the player.

 

You probably wouldn't be using the "print" function unless you were making a text-based game or debugging with the console. The reason why tutorials use functions like this when teaching is because they're easy to use and without them you wouldn't have any means to get meaningful output without writing code to accomplish that. That's clearly not a good start. 

 

Also, I should note that, you don't have to learn "programming" before learning "game programming." Just practice writing code, and make sure you complete your projects. In that respect, you ought to start small and gradually crank up the difficulty. If you feel you can handle a small game, then write a small game. 

 

I'm not sure if I explained your questions coherently. I feel like I might not have addressed them completely. I'm a little tired so I'm writing this on limited mental capacity, but I'll get back to this tomorrow and see if what I said makes sense biggrin.png

Edited by boogyman19946
0

Share this post


Link to post
Share on other sites

You can always use both. It's incredibly easy to extend Java with Python (or to use Java in Python) with Jython. Jython let's you use Java in Python, and you can use the Java Scripting API to script Java applications. But unless you really need both it's generally not done.

1

Share this post


Link to post
Share on other sites

Irh9: I would also not recomment mixing multiple languages when you just start with programming. Usually the syntax of one language is enough to deal with for a beginner. Two different ones are already problematic for someone who tries to understand the basic principles of programming.

0

Share this post


Link to post
Share on other sites

Ok so for now ill study python and later use pygame for making some basic games. And ill see where ill go from there :)

 

Thanks to everyone who commented for your time and patience :)

0

Share this post


Link to post
Share on other sites

IMo It is not to much important what you will chose, you still can change it a 'million' times. To be honest such kind of questions often gets me a bit angry (boring, boring, boring) but what to do. I would much like prefer to make a whole directory in this forum for such kind of questions "where to start"/"what to use"

Edited by fir
-1

Share this post


Link to post
Share on other sites

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  
Followers 0