Re: How do I make a game in Python ?
On 08/07/2016 08:47 AM, Cai Gengyang wrote: > Games are great. I guess I would like to invent animated games that > can teach students how to solve mathematical, physics, engineering , > Go and programming puzzles, basic financial literacy and investing > techniques through interesting and enriching games and puzzles and > university admissions interviews ... Create a piece of software like > this, get users to test it ... then when the feedback streams in, > iterate the product accordingly based on user feedback ... I'm sure you could probably google for some resources about Python game development. Google shows this link, for example, though I cannot vouch for whether or not it would be helpful: https://inventwithpython.com/chapters/ It claims to be a book that leads you through some game development using Python. Bear in mind that must start simple and work your way into more complex things. If you think you can pick up Python and develop a "complex game" in short order, you'll be very disappointed. It's along process. Even what you described could take years to fully develop. But if you have patience and an aptitude for learning you can without a doubt accomplish it. I think text-only number games are a great place to start honing your skills. -- https://mail.python.org/mailman/listinfo/python-list
Re: How do I make a game in Python ?
Games are great. I guess I would like to invent animated games that can teach students how to solve mathematical, physics, engineering , Go and programming puzzles, basic financial literacy and investing techniques through interesting and enriching games and puzzles and university admissions interviews ... Create a piece of software like this, get users to test it ... then when the feedback streams in, iterate the product accordingly based on user feedback ... On Sunday, August 7, 2016 at 12:02:56 PM UTC+8, Chris Angelico wrote: > On Sun, Aug 7, 2016 at 1:14 PM, Michael Torrie wrote: > > On 08/06/2016 03:51 PM, Cai Gengyang wrote: > >> As in, any recommended websites that helps users create complex games in > >> Python ? > > > > I imagine you create a complex game in Python the same way you'd do it > > in just about any other language. Thus any website on game design would > > be broadly applicable. And I'm sure there are a wide variety of topics > > that are relevant. Logic, game play, artificial intelligence, user > > interface, physics engines, and so forth. > > > > What you need to learn depends on what you already know and have > > experience in. The programming language is really only a part of > > developing "complex games." You'd probably want to start with simple, > > even child-like games first. Asking how to program complex games is a > > bit like asking how to build a car. > > Three of my students just recently put together a game (as their > first-ever collaborative project, working on different parts of the > project simultaneously), so I can tell you broadly how you would go > about it: > > 1) SCOPE. This is incredibly important. With the student project, they > had to have something demonstrable by Friday 5PM, so they had just > five days to get something working. But even when you don't have a > hard cut-off like that, you should scope back hard - brutally, even - > so you can get something workable as early as possible. > > 2) Pin down exactly what the *point* of your game is. What is the > fundamental thing you're trying to do? In their case, it was: Click on > the red squares before they turn back to white, then watch for another > square to turn red. As you develop, you'll mess around with everything > else, but don't mess with that. > > 3) Build a very basic project, managed in source control (git/hg/bzr > etc), and get it to the point of being testable. I don't mean unit > tests (although if you're a fan of TDD, you might well go that route), > but be able to fire up your game and actually run it. Commit that. > > 4) Progressively add features, constantly committing to source > control. Whenever your game isn't runnable, STOP and debug it until it > is. It's just way too hard to debug something that you can't even run. > > 5) Eventually, you'll get bored of the project or be forced to move on > to something else. At that point, the game is done. :) > > ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Re: How do I make a game in Python ?
On Sun, Aug 7, 2016 at 1:14 PM, Michael Torrie wrote: > On 08/06/2016 03:51 PM, Cai Gengyang wrote: >> As in, any recommended websites that helps users create complex games in >> Python ? > > I imagine you create a complex game in Python the same way you'd do it > in just about any other language. Thus any website on game design would > be broadly applicable. And I'm sure there are a wide variety of topics > that are relevant. Logic, game play, artificial intelligence, user > interface, physics engines, and so forth. > > What you need to learn depends on what you already know and have > experience in. The programming language is really only a part of > developing "complex games." You'd probably want to start with simple, > even child-like games first. Asking how to program complex games is a > bit like asking how to build a car. Three of my students just recently put together a game (as their first-ever collaborative project, working on different parts of the project simultaneously), so I can tell you broadly how you would go about it: 1) SCOPE. This is incredibly important. With the student project, they had to have something demonstrable by Friday 5PM, so they had just five days to get something working. But even when you don't have a hard cut-off like that, you should scope back hard - brutally, even - so you can get something workable as early as possible. 2) Pin down exactly what the *point* of your game is. What is the fundamental thing you're trying to do? In their case, it was: Click on the red squares before they turn back to white, then watch for another square to turn red. As you develop, you'll mess around with everything else, but don't mess with that. 3) Build a very basic project, managed in source control (git/hg/bzr etc), and get it to the point of being testable. I don't mean unit tests (although if you're a fan of TDD, you might well go that route), but be able to fire up your game and actually run it. Commit that. 4) Progressively add features, constantly committing to source control. Whenever your game isn't runnable, STOP and debug it until it is. It's just way too hard to debug something that you can't even run. 5) Eventually, you'll get bored of the project or be forced to move on to something else. At that point, the game is done. :) ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Re: How do I make a game in Python ?
On 08/06/2016 03:51 PM, Cai Gengyang wrote: > As in, any recommended websites that helps users create complex games in > Python ? I imagine you create a complex game in Python the same way you'd do it in just about any other language. Thus any website on game design would be broadly applicable. And I'm sure there are a wide variety of topics that are relevant. Logic, game play, artificial intelligence, user interface, physics engines, and so forth. What you need to learn depends on what you already know and have experience in. The programming language is really only a part of developing "complex games." You'd probably want to start with simple, even child-like games first. Asking how to program complex games is a bit like asking how to build a car. -- https://mail.python.org/mailman/listinfo/python-list
Re: How do I make a game in Python ?
On 8/6/2016 5:51 PM, Cai Gengyang wrote: As in, any recommended websites that helps users create complex games in Python ? For 2D graphics, try pygame among others. For 3D, I don't know what is current. On Sunday, August 7, 2016 at 5:41:25 AM UTC+8, Ian wrote: On Aug 6, 2016 11:57 AM, "Cai Gengyang" wrote: How do I make a game in Python ? import random answer = random.randint(0, 100) while True: guess = input("What number am I thinking of? ") if int(guess) == answer: print("Correct!") break print("Wrong!") And now you've made a game in Python. I suspect you missed the wisdom contained in this answer. 1. Define the core mechanic. 2. Start simple. Guess/Search for something hidden is a common core mechanic. Do you want this to be part of your game. With this start ... 3. Elaborate. I can think of several ways. Give hints. Add graphics. Increase player skill with repeated play. Use objects other than counts. Keep track of number of guesses and grade results. Keep track of actual guesses and inform about repeats. Record guesses visually so repetition is essentially impossible. On Aug 6, 2016 11:57 AM, "Cai Gengyang" wrote: How do I make a game in Python ? Start with an idea for the game. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list
Re: How do I make a game in Python ?
On Saturday, August 6, 2016 at 5:51:40 PM UTC-4, Cai Gengyang wrote: > As in, any recommended websites that helps users create complex games in > Python ? http://inventwithpython.com/ --Ned. -- https://mail.python.org/mailman/listinfo/python-list
Re: How do I make a game in Python ?
As in, any recommended websites that helps users create complex games in Python ? On Sunday, August 7, 2016 at 5:41:25 AM UTC+8, Ian wrote: > On Aug 6, 2016 11:57 AM, "Cai Gengyang" wrote: > > How do I make a game in Python ? > > > import random > > answer = random.randint(0, 100) > while True: > guess = input("What number am I thinking of? ") > if int(guess) == answer: > print("Correct!") > break > print("Wrong!") > > And now you've made a game in Python. > > > On Aug 6, 2016 11:57 AM, "Cai Gengyang" wrote: > > > How do I make a game in Python ? > > -- > > https://mail.python.org/mailman/listinfo/python-list > > -- https://mail.python.org/mailman/listinfo/python-list
Re: How do I make a game in Python ?
On Aug 6, 2016 11:57 AM, "Cai Gengyang" wrote: How do I make a game in Python ? import random answer = random.randint(0, 100) while True: guess = input("What number am I thinking of? ") if int(guess) == answer: print("Correct!") break print("Wrong!") And now you've made a game in Python. On Aug 6, 2016 11:57 AM, "Cai Gengyang" wrote: > How do I make a game in Python ? > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list
How do I make a game in Python ?
How do I make a game in Python ? -- https://mail.python.org/mailman/listinfo/python-list