"The Game must have 60% of its functions, Python-coded"

The third-person shooting game we’re working on is our thesis title for this trimester. However, the game’s features and functions should mostly be coded. Given the fact that our thesis will be done through Blender 2.49b, utilizing Blender Game Engine.

So far, we’ve done few models, and working on stages and enemies. So basically, is there a way to have Python-code versions of a menu, character movement, and maybe a simple AI?

Actually, we need most of them in code-version, as a part of ‘program listing’.

Sorry, but WHY? This requirement seems a bit odd for me. And how do you want to measure that?

It would make more sense to think about the design. Which are your features and what are the interfaces between them. Then you can look for implementations.

Creating a full rigged and textured character with python code is like cleaning the bathroom with a teethbrush :spin:. It is possible, but is it the right tool?

And finally the BGE is compiled C/C++ code. Regardless how much Python code you produce, this code is executed more often ;).

If you really want, go for Panda3d or pygame so you can get 100% python coded :D.

Python would be a good choice for controlling a Menu, Movement or AI.

You can code a lot in the BGE, but as Monster says, there’s no real reason to code the base parts of the game (like animation and rigging) when the BGE does it for you. You should put that stuff under the 40% of the non-coded work, and code the rest of the game (like usual) - if you use pretty much only code, then the game would end up being 85% coded (this is actual data that I just made up, LOL).

I guess that the 60% coded in python requirement is part of the assignment?
Of course I can point you towards the functions of python:

Here you can find everything you need for coding in python in blender.
As it is an assignment however, I won’t put all the code for menus, AI, gun control etc… here as that would be cheating :slight_smile:
But you can find all the parts you need for a game on these boards.

As a start try to find other games people have made and posted, you can lift a lot of the code from there. The trick is then to intergrate code from one project with another.

yeah, I agree with smoking_mirror. you’re not gonna find a lot of code ‘right here’. most of it you’ll find on others games. plagerism is wonderful, isn’t it? :slight_smile:

Also, don’t forget that the new blender console has an “Auto Complete” function (Go to Scripting). You can always test your code ideas in the console before implementing them in script form. Honestly, I’ve learned more Python there than I’ve learned from all the code examples I’ve ever seen.