Although nobody wants to be taught Python, I'm going to teach people online if they want to learn. Or people can ask questions about Python. Sometimes I'll post programs I made on Python. Here are some links to help.
Python home:
http://www.python.org/
Forums for Python:
http://python-forum.org/pythonforum/index.php
Tutorial:
http://docs.python.org/tut/
GUI Tkinter Tutorial:
http://www.pythonware.com/library/tkinter/introduction/index.htm
Attached Files:
Spacebattle | 32.29 kB This is the game I made. You'll need to but the file Stars in the same folder as this file.
Stars | 2.15 MB Put this file in the same folder as Spacebattle.
Spacebattle commented | 35.74 kB commented version of Sapcebattle
LiveWires Module | 2.15MB These are the different classes and functions livewires have in their module.
If anyone has any questions to ask, you can post them here:
Comments
I have added the files for spacebattle however you need to have python, pygames and livewires installed. At the moment, on my computer the game runs very slowly so any help clearing up the code would be appreciated. You can also download Spacebattle from here
No can do - you don't have comments, I can't easily read your code. Get some comments in there and I'll check it, but until then….
And you wrote all that code yourself - good work.
Also, what are your computer's specs, and the requirements of the game (roughly if you can)? (os, processor, ram, speed)
I wrote almost all of the code. Livewires helped with trigonmetry (but not the homing missile upgrade), gravity and to get a general understanding of their module. What sort of things do u want me to comment 4 ur sake. I know that my computer has 1GB of Ram and a graphics card (can't rember wat though). I'll try and find more details.
Here it is: Microsoft XP Professional Service Pack 2, TOSHIBA MNKH020AIV06, Intel(R) Pentium(R) M
Processor 2.00GHz, 1.99GHz, 1.00 GB RAM, soz I have no clue wat the requirements r 4 the game.
Chances are then the game takes up your RAM, that's why it's so slow. You need to clean up memory usage, make it more efficient.
Comments: Just describe each class, method, function, main sections of longer functions and briefly what they do, and maybe how it affects the game.
Ive added a commented file and list of functions in livewires module, I hope it helps. You may want to check my codeplex link because it has more details, if you have not done so already of course.
Thanks. I'll have a look at them.
I've got the game going properly on my computer now, would you like to help me develop it into 1 player JGat or anyone else for that matter
AI is a bit tricky, especially as I haven't finished looking through all the code yet… I've been meaning to print it out.
I was thinking just to have the opponents flying around shooting in front. They could have different formations and some would be harder to defeat than others, eg. if they moved in a compact circle to a single spaceship flying up and down on the screen.
I recommend that you check the link I provided earlier about once a fortnight/month if your interested in my program.