Now on to creating the main character. The first thing that went through my mind when I decided to create a character for this game was, "what will he look like?". Well considering the time and effort it would take to create an image for a main character that I would be happy with, I decided it would be better to settle with a square representation in place of an animated sprite.
One thing about python is that it really emphasizes simplicity and readability when coding, so I will try to reflect that in the code that I write. This helps make debugging easier as each function is like a check point which reduces the code you need to search through to find your error. So whenever you have a block of code that is used to reach a small goal, that code should probably go into a function. Here's an example of what I mean:
Saturday, September 25, 2010
Monday, September 20, 2010
Creating a 2D RPG using pygame: Part 1
A as small intro to what this blog series will be about, I'd like to start of by saying I am learning this as I go. I assume that since you are reading this you also do not have much experience in programing games but that you have programmed before. This is basically the documentation of my learning expirence and I hope that it will provide some good examples and a detailed thought process of how a game can be designed and implemented. If you have any ideas or ways to make things more efficient, please leave me a comment or send me an email. Any and all help is appreciated.
Just a reminder, this is not an introduction to python. You can't really expect to understand what is going on in the code without understanding the basics first. There are plenty of well put together python tutorials that can introduce you to the concepts of OO programming and the syntax of python. I would recommend starting here
I'll start off with what you will need to begin following along and some tools that I've found useful in helping me to develop my program(s) up to this point.
Just a reminder, this is not an introduction to python. You can't really expect to understand what is going on in the code without understanding the basics first. There are plenty of well put together python tutorials that can introduce you to the concepts of OO programming and the syntax of python. I would recommend starting here
I'll start off with what you will need to begin following along and some tools that I've found useful in helping me to develop my program(s) up to this point.
Subscribe to:
Posts (Atom)