SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Your Work / Work In Progress / The PHAT- Python practice
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 03-04-2010, 08:52 PM   #1
elephantinc
Level 32 pachyderm
 
elephantinc's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 1,859
Thanks: 12
Thanked 43 Times in 37 Posts
Default The PHAT- Python practice

Over the past 6 months I've been learning python and to learn a bit more I've started making a game. I'm hoping it will help me get into a good university (probably going to do computer science).
It's called the PHAT which stands for "The Phanteater army training (programme)". You play as a trainee anteater and the game is mostly a tutorial.
So far I've finished the basic movement and UI tutorial. My efforts to make an executable have so far been unsuccessful so I can't post anything that works but I can attach the code and screenshots. (Starts with menu.py)

Please tell me if I've done anything I shouldn't have or if there is a much better way to do something.

Menu:


Attached Files
File Type: zip thephat.zip (6.5 KB, 17 views)
elephantinc is offline   Reply With Quote
Old 03-04-2010, 11:31 PM   #2
stwert
EduSciVis-er
 
Join Date: Dec 2005
Location: Toronto
Posts: 3,373
Thanks: 74
Thanked 710 Times in 642 Posts
Default

Heh... captain placeholder eh?

I don't know how to make an exe either... I just run python scripts from the command line.
stwert is offline   Reply With Quote
Old 04-04-2010, 01:38 AM   #3
ben hobden
Subscriber
 
ben hobden's Avatar
 
Join Date: Jul 2008
Location: Chelmsford, Essex, UK
Posts: 1,162
Thanks: 13
Thanked 89 Times in 85 Posts
Default

how is python, as a language? is it fun to learn? i bought myself a book, a little while ago, which is learning python through making a game. i havnt had a go though yet.
ben hobden is offline   Reply With Quote
Old 04-04-2010, 04:42 AM   #4
stwert
EduSciVis-er
 
Join Date: Dec 2005
Location: Toronto
Posts: 3,373
Thanks: 74
Thanked 710 Times in 642 Posts
Default

Python for me has been a pretty good learning experience, mostly just messing around and reading documentation to try to achieve whatever goal I needed. I do bioinformatics, by the way, so most of the stuff I use it for is string based. I'm looking forward to using it with maya though.
stwert is offline   Reply With Quote
Old 04-04-2010, 11:01 AM   #5
elephantinc
Level 32 pachyderm
 
elephantinc's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 1,859
Thanks: 12
Thanked 43 Times in 37 Posts
Default

Quote:
Originally posted by ben hobden
how is python, as a language? is it fun to learn? i bought myself a book, a little while ago, which is learning python through making a game. i havnt had a go though yet.
If you don't already know a programming language it's really good. It's probably the highest level (proper) programming language. It's very human readable.
It's easy to learn and it's used for pretty much everything. If you are serious about programming I think you need to learn another programming language afterwards but it's great to start off with.

As far as creating a .exe is concerned there is an application called py2exe that bundles in a python interpreter and all the appropriate modules but so far I haven't managed to get it working.

You can do anything with python: http://www.swharden.com/blog/images/python.png

Last edited by elephantinc : 04-04-2010 at 11:14 AM.
elephantinc is offline   Reply With Quote
Old 04-04-2010, 11:38 AM   #6
ben hobden
Subscriber
 
ben hobden's Avatar
 
Join Date: Jul 2008
Location: Chelmsford, Essex, UK
Posts: 1,162
Thanks: 13
Thanked 89 Times in 85 Posts
Default

Nooo, im not serious about programming. Just where ive been learning maya,ive always heard of it, and then i was using after effects the other day and i saw you could use it in that. I read that stuff about it being easy and most human like. With visuals and pretty colours too i thought you cant go wrong!
ben hobden is offline   Reply With Quote
Old 04-04-2010, 11:59 AM   #7
elephantinc
Level 32 pachyderm
 
elephantinc's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 1,859
Thanks: 12
Thanked 43 Times in 37 Posts
Default

Quote:
Originally posted by ben hobden
Nooo, im not serious about programming. Just where ive been learning maya,ive always heard of it, and then i was using after effects the other day and i saw you could use it in that. I read that stuff about it being easy and most human like. With visuals and pretty colours too i thought you cant go wrong!
Go for it then. You always get helpful error messages too.
elephantinc is offline   Reply With Quote
Old 04-04-2010, 07:11 PM   #8
ctbram
Moderator
 
ctbram's Avatar
 
Join Date: Jan 2004
Location: Michigan, USA
Posts: 2,997
Thanks: 42
Thanked 582 Times in 532 Posts
Default

Good luck with a degree in computer science.

It's like having a degree in pre-unemployment.
__________________
"If I have seen further it is by standing on the shoulders of giants." Sir Isaac Newton, 1675

Last edited by ctbram : 04-04-2010 at 07:15 PM.
ctbram is offline   Reply With Quote
Old 04-04-2010, 07:39 PM   #9
elephantinc
Level 32 pachyderm
 
elephantinc's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 1,859
Thanks: 12
Thanked 43 Times in 37 Posts
Default

Quote:
Originally posted by ctbram
Good luck with a degree in computer science.

It's like having a degree in pre-unemployment.
errr Thanks?
The number of people in england taking Comp Sci courses has dropped dramatically so I can hope.......
elephantinc is offline   Reply With Quote
Old 04-04-2010, 07:54 PM   #10
stwert
EduSciVis-er
 
Join Date: Dec 2005
Location: Toronto
Posts: 3,373
Thanks: 74
Thanked 710 Times in 642 Posts
Default

Don't listen to ctbram, comp sci has applications in a huge diversity of fields. I went to a career fair at my university and many of the companies were looking for comp sci grads... much more than biology
stwert is offline   Reply With Quote
Old 04-04-2010, 08:05 PM   #11
ctbram
Moderator
 
ctbram's Avatar
 
Join Date: Jan 2004
Location: Michigan, USA
Posts: 2,997
Thanks: 42
Thanked 582 Times in 532 Posts
Default

I was just teasing.

I have a B.S. in computer science and electrical engineering as well as a masters in aeronautical engineering and just completed a PhD in medical physics (biotech).

Much of what I did when I was doing my research involves computational analysis and utilized a great deal of my experience with programming.

I should have put more then just the smiley winky emoticon. Truly, wish you the best with your CS degree.
__________________
"If I have seen further it is by standing on the shoulders of giants." Sir Isaac Newton, 1675
ctbram is offline   Reply With Quote
Old 04-04-2010, 09:10 PM   #12
stwert
EduSciVis-er
 
Join Date: Dec 2005
Location: Toronto
Posts: 3,373
Thanks: 74
Thanked 710 Times in 642 Posts
Default

Haha, I must have missed the winky... next time do something like...

JK!!!!! LOL!!!! :attn: :bow: :p :p :p ROFL!!! CSC Roxors ur boxxors...!!!!:p :p
stwert is offline   Reply With Quote
Old 04-04-2010, 11:25 PM   #13
elephantinc
Level 32 pachyderm
 
elephantinc's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 1,859
Thanks: 12
Thanked 43 Times in 37 Posts
Default

Quote:
Originally posted by ctbram
I was just teasing.

I have a B.S. in computer science and electrical engineering as well as a masters in aeronautical engineering and just completed a PhD in medical physics (biotech).

Much of what I did when I was doing my research involves computational analysis and utilized a great deal of my experience with programming.

I should have put more then just the smiley winky emoticon. Truly, wish you the best with your CS degree.
Thanks
It does still have the 5th highest post graduate unemployment rating though, at somewhere in the 20% region.
Still, the universities I hope to get in to have much higher post graduate employment ratings, some of which are 100% (although how many of them ended up working in Mcdonalds is anyones guess)
elephantinc is offline   Reply With Quote
Old 05-04-2010, 11:16 AM   #14
gster123
Moderator
 
gster123's Avatar
 
Join Date: May 2005
Location: Manchester Uk
Posts: 6,300
Thanks: 1
Thanked 51 Times in 45 Posts
Default

Good luck with the Python.

I've only toyed with it. More of a C, Matlab, MEL and C# guy.

The first year of the degree will be a leveler to get everyone up to speed.

What uni's are you thinking about?

Steve
__________________
"No pressure, no diamonds" Thomas Carlyle
gster123 is offline   Reply With Quote
Old 05-04-2010, 03:26 PM   #15
Mayaniac
As Zbrushiac sounds stupid!
 
Mayaniac's Avatar
 
Join Date: Nov 2007
Location: Derby
Posts: 1,241
Thanks: 23
Thanked 33 Times in 30 Posts
Default

Yeah, should be fun. I spent awhile learning C# then some XNA... wasn't really my thing tbh, but haven't tried Python, so can't give you any cits/advice.

Good luck with it all though.
__________________
www.stevenegan-cgi.com

"Your weapons are no match for ours! People of Mars, surrender!"
"Um, this isn't Mars. This is Earth."
"Earth? Earth-with-nuclear-weapons Earth?"
"Yes."
[long pause] "Friend!!"
Mayaniac is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.