Well im getting a python book friday and I've set a goal for noveember. Before november I want to make a simple move NPC game with about 500 lines. Is this a realistic goal if I know nothing now?
3 replies to this topic
#1
Posted 16 August 2011 - 05:30 AM
|
|
|
#2
Posted 16 August 2011 - 05:30 PM
Once you learn how to write the language, it can be used as a tool. Games are often composed of classes (player, enemy) or even (ground, flower, cloud) all with internal states (position, health, is_angry) and class members (attack, move, perish)
You will need to plan out all these classes, and their checks that will be done during every single action of the game.
That being said, you may easily be able to create some of these applications within that time - It will take a lot of practice however to get it right.
Have you looked at PyGame? It is a library to aid in game design (canvas graphics, controls) and can aid you later down the road once you are comfortable enough with Python.
You will need to plan out all these classes, and their checks that will be done during every single action of the game.
That being said, you may easily be able to create some of these applications within that time - It will take a lot of practice however to get it right.
Have you looked at PyGame? It is a library to aid in game design (canvas graphics, controls) and can aid you later down the road once you are comfortable enough with Python.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#3
Posted 16 August 2011 - 06:54 PM
There is a lot of other factors to consider...
Are you gonna learn this full time, or you already have a job.
How fast do you read?
How good is your logic?
Like Alexander said, you will probably be able to do some code in your game, but as a first project, a game can be a little bit hard to master.
But if you are really passionated, and ready to start over a cople of time, I think this can be done
Are you gonna learn this full time, or you already have a job.
How fast do you read?
How good is your logic?
Like Alexander said, you will probably be able to do some code in your game, but as a first project, a game can be a little bit hard to master.
But if you are really passionated, and ready to start over a cople of time, I think this can be done
#4
Posted 17 August 2011 - 04:37 AM
I'm not real familiar with python, but when I was learning Pascal, I was able to write a Mastermind and a Yahtzee/Triple Yahtzee program within a few months.
One thing to be aware of is that "lines of code" doesn't mean a whole lot. In a language like C, it can take 10 times more lines of code to do the same you did in python. Also, in a language like C# or Delphi, the simple process of doing drag-and-drop onto forms creates hundreds of lines of code that you won't notice if you aren't looking for it.
All that said, making a simple program where you type in things like "north", "west", etc to move around a world with a basic text description of each room should be fairly easy. With that said, I've read more advanced books on object oriented programming that use that basic concept as the basis for detailed discussions of several techniques of OOP development.
One thing to be aware of is that "lines of code" doesn't mean a whole lot. In a language like C, it can take 10 times more lines of code to do the same you did in python. Also, in a language like C# or Delphi, the simple process of doing drag-and-drop onto forms creates hundreds of lines of code that you won't notice if you aren't looking for it.
All that said, making a simple program where you type in things like "north", "west", etc to move around a world with a basic text description of each room should be fairly easy. With that said, I've read more advanced books on object oriented programming that use that basic concept as the basis for detailed discussions of several techniques of OOP development.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









