Python Programming / discussion
Forum » Hidden / Per page discussions » Python Programming
started by: Automatic
on: 1209974654|%e %b %Y, %H:%M %Z|agohover
number of posts: 11
rss icon RSS: new posts
This is the discussion related to the wiki page Python Programming.
Spacebattle
Michael Bauer 24Michael Bauer 24 1210392006|%e %b %Y, %H:%M %Z|agohover

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

last edited on 1210392038|%e %b %Y, %H:%M %Z|agohover by Michael Bauer 24 + show more
unfold Spacebattle by Michael Bauer 24Michael Bauer 24, 1210392006|%e %b %Y, %H:%M %Z|agohover
Re: Spacebattle
JGatJGat 1210405681|%e %b %Y, %H:%M %Z|agohover

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)

last edited on 1210405867|%e %b %Y, %H:%M %Z|agohover by JGat + show more
unfold Re: Spacebattle by JGatJGat, 1210405681|%e %b %Y, %H:%M %Z|agohover
Re: Spacebattle
Michael Bauer 24Michael Bauer 24 1210406247|%e %b %Y, %H:%M %Z|agohover

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.

unfold Re: Spacebattle by Michael Bauer 24Michael Bauer 24, 1210406247|%e %b %Y, %H:%M %Z|agohover
Re: Spacebattle
Michael Bauer 24Michael Bauer 24 1210406698|%e %b %Y, %H:%M %Z|agohover

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.

last edited on 1210406742|%e %b %Y, %H:%M %Z|agohover by Michael Bauer 24 + show more
unfold Re: Spacebattle by Michael Bauer 24Michael Bauer 24, 1210406698|%e %b %Y, %H:%M %Z|agohover
Re: Spacebattle
JGatJGat 1210414849|%e %b %Y, %H:%M %Z|agohover

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.

unfold Re: Spacebattle by JGatJGat, 1210414849|%e %b %Y, %H:%M %Z|agohover
Re: Spacebattle
Michael Bauer 24Michael Bauer 24 1210420779|%e %b %Y, %H:%M %Z|agohover

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.

unfold Re: Spacebattle by Michael Bauer 24Michael Bauer 24, 1210420779|%e %b %Y, %H:%M %Z|agohover
Re: Spacebattle
JGatJGat 1210478697|%e %b %Y, %H:%M %Z|agohover

Thanks. I'll have a look at them.

unfold Re: Spacebattle by JGatJGat, 1210478697|%e %b %Y, %H:%M %Z|agohover
Re: Spacebattle
Anonymous (58.166.130.158) 1211601295|%e %b %Y, %H:%M %Z|agohover

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

unfold Re: Spacebattle by Anonymous (58.166.130.158), 1211601295|%e %b %Y, %H:%M %Z|agohover
Re: Spacebattle
JGatJGat 1211630302|%e %b %Y, %H:%M %Z|agohover

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.

unfold Re: Spacebattle by JGatJGat, 1211630302|%e %b %Y, %H:%M %Z|agohover
Re: Spacebattle
Michael Bauer 24Michael Bauer 24 1211697546|%e %b %Y, %H:%M %Z|agohover

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.

unfold Re: Spacebattle by Michael Bauer 24Michael Bauer 24, 1211697546|%e %b %Y, %H:%M %Z|agohover
Re: Spacebattle
Anonymous (121.222.53.38) 1212921705|%e %b %Y, %H:%M %Z|agohover

I recommend that you check the link I provided earlier about once a fortnight/month if your interested in my program.

unfold Re: Spacebattle by Anonymous (121.222.53.38), 1212921705|%e %b %Y, %H:%M %Z|agohover
new post
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-NonCommercial 3.0 License