Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Python & Leaping Lemmings
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Castle Paradox Forum Index -> The Arcade
View previous topic :: View next topic  
Author Message
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Tue Jul 27, 2004 7:57 pm    Post subject: Python & Leaping Lemmings Reply with quote

I've wanted to get away from the limitations of quickbasic for a long time, but only within the past few months have I actually been doing something about it.

After much fiddling with C/C++ I finaly decided I simply don't like it, and I went in a different direction. Python + PyGame are pretty much the perfect fit for the way I like to program, and the types of games I am interested in writing.

No, I haven't started writing HamsterWheel in Python, but yes, that is my current plan. Right now I am writing a practice game to get myself used to game programming in python. It is a simple game, and not even remotely RPG'ish, but y'all might find it amusing all the same.

It runs on both Windows and GNU/Linux, and I hope to get it working on Macintosh too, but at the moment Mac support is broken.

http://HamsterRepublic.com/games/leaping/

I would appreciate any feedback, especially feedback on the source-code.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Wed Jul 28, 2004 12:39 am    Post subject: Reply with quote

Cool! I tried out the game, and found myself addicted, playing for 15 minutes straight.


By a coincidence, I downloaded Python on a whim just a couple of days ago, and this reminded me to install it. Hmm... I suppose I'll have a look at the language too.

Since I have Python, I'll look at the source code a little later. First I have to download it.
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Machu
Righter, a person who rights wrongs




Joined: 09 Jul 2003
Posts: 737

PostPosted: Wed Jul 28, 2004 3:35 pm    Post subject: Reply with quote

Dude, you should totally make Hamster Wheel with Python! I can see how cool things could be.

However, I'm imagining the irony of Hamster wheel being made with Python. How can me make sure that mentioning code around Bob won't remind him of his run-in with Jormungandling?
_________________
Code:
[*]That's it
[*]I'm done reasoning with you
[*]Starting now, there's going to be a lot less conversation and a lot more killing
Back to top
View user's profile Send private message
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Wed Jul 28, 2004 4:06 pm    Post subject: Reply with quote

Machu wrote:
Dude, you should totally make Hamster Wheel with Python! I can see how cool things could be.

However, I'm imagining the irony of Hamster wheel being made with Python. How can me make sure that mentioning code around Bob won't remind him of his run-in with Jormungandling?


*Laugh* Fortunately, the Python language is named after the British Comedy group (of Holy Grail and Flying Circus fame) and not after the gigantic snake... so the only unhappy associations that Bob is likely to have with the name is "Your mother was a hamster, and your father smelled of eldarberries!"

I'm still not quite ready to jump into writing HamsterWheel, yet, as I really want to know that I know what I am doing before I start, so I do things right. So expect a few more mini-games like Leaping Lemmings before wheelwork commences.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Shaede
Tuck in your shirt.




Joined: 08 Jan 2004
Posts: 107

PostPosted: Wed Jul 28, 2004 5:36 pm    Post subject: Reply with quote

Hooray!

Sound effects. Higher resolution. Smooth motion. Windows based. More memory allocation!

Looks good. ^_~
Back to top
View user's profile Send private message Visit poster's website
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Wed Jul 28, 2004 6:24 pm    Post subject: Reply with quote

Shaede wrote:
Hooray!

Sound effects. Higher resolution. Smooth motion. Windows based. More memory allocation!

Looks good. ^_~


Yep! ... but NOT Windows based. Cross-platform. I do all the work on GNU/Linux, and then build a Windows port afterwards.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 15 Jul 2004
Posts: 3377
Location: Seattle, WA

PostPosted: Wed Jul 28, 2004 6:26 pm    Post subject: Reply with quote

Even better! (WinXP has made me even less likeful of Windows.)
Back to top
View user's profile Send private message Visit poster's website AIM Address
Shaede
Tuck in your shirt.




Joined: 08 Jan 2004
Posts: 107

PostPosted: Thu Jul 29, 2004 10:16 am    Post subject: Reply with quote

Sweet! I stand corrected. I'm liking it 100x more now! Ha ha ha!
Back to top
View user's profile Send private message Visit poster's website
knight_00000
Monkeez wit Gunz!




Joined: 22 Jul 2003
Posts: 21
Location: CA/USA

PostPosted: Thu Jul 29, 2004 11:22 am    Post subject: Reply with quote

I love the python language, it's one of my favorites if not the favorite. Another cool game maker that uses the power of python is Ika, not sure if you have ever checked it out, ika.sourceforge.net it integrates python as it's scripting language but is made in C++. I'd love to see the much anticipated Hamsterwheel in python!
_________________
Signature
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Thu Jul 29, 2004 6:05 pm    Post subject: Ika Reply with quote

knight_00000 wrote:
I love the python language, it's one of my favorites if not the favorite. Another cool game maker that uses the power of python is Ika, not sure if you have ever checked it out, ika.sourceforge.net it integrates python as it's scripting language but is made in C++. I'd love to see the much anticipated Hamsterwheel in python!


Oh, hey! Ika! I remember that. IIRC, Ika started out as new version of Verge based on Python, but when the Verge developers decided to switch to C# somebody forked Ika into a separate project.

*adds link to "Alternatives" page*
Back to top
View user's profile Send private message Send e-mail Visit poster's website
NeoTA
Idiomatic Nomenclature




Joined: 15 Mar 2004
Posts: 165

PostPosted: Thu Jul 29, 2004 7:45 pm    Post subject: Reply with quote

Happy I've investigated python since you recommended it to me, and it's now my language of choice. a large reason is that it has 'batteries included' -- for instance i can immediately use hashing and md5-digest functions. the IFF-style chunks library is great too. i appreciate the way integers can be unlimited size
(good for eg. bitsets)

the game is fun, though it could be more strategic (ie actually make it possible to save 100%)

do you know how to convert a character extracted from a string to/from an integer value (eg 'A' <-> 65)?
Back to top
View user's profile Send private message
Machu
Righter, a person who rights wrongs




Joined: 09 Jul 2003
Posts: 737

PostPosted: Thu Jul 29, 2004 8:31 pm    Post subject: Reply with quote

Yah, concerning the actual Leaping Lemmings game: I think you should add more stuff besides lemmings. Like, power-ups, or maybe rocks that stun you.
_________________
Code:
[*]That's it
[*]I'm done reasoning with you
[*]Starting now, there's going to be a lot less conversation and a lot more killing
Back to top
View user's profile Send private message
knight_00000
Monkeez wit Gunz!




Joined: 22 Jul 2003
Posts: 21
Location: CA/USA

PostPosted: Thu Jul 29, 2004 8:43 pm    Post subject: Reply with quote

Hey James for your alternatives page, one way you can sum up most of em could be to link to gamingw.net, not sure if you have ever been there, but it supports a variety of game makers, (although is mostly flooded with RM2k3 users)
_________________
Signature
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Fri Jul 30, 2004 2:32 pm    Post subject: Reply with quote

NeoTA wrote:
...
do you know how to convert a character extracted from a string to/from an integer value (eg 'A' <-> 65)?


Glad to hear you like Python :)
That's a good question about char to int conversion... I am a little surprised not to see a simple built-in ascii() function.

I think the struct module might do what you want http://docs.python.org/lib/module-struct.html

and using struct you could write an ascii function pretty easily.
Code:

import struct

def ascii(s):
    """return the ascii code of the first char of the input string"""
    char = struct.unpack('B',s[0]);
    return char[0]


Machu wrote:
Yah, concerning the actual Leaping Lemmings game: I think you should add more stuff besides lemmings. Like, power-ups, or maybe rocks that stun you.


Maybe later. Brian (the other Hamster Republic guy who never posts) is interested in developing "Leaping Lemmings Professional". You could kinda consider my "Open Leaping Lemmings" to be a prequel or a tech-demo for what he has planned. It will have a story, and powerups, and who knows what all.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Cardcaptor Stacey
Mistress of the Clow




Joined: 24 Feb 2003
Posts: 72
Location: With Mr.Children

PostPosted: Sat Jul 31, 2004 8:07 am    Post subject: Reply with quote

James Paige wrote:
Yep! ... but NOT Windows based. Cross-platform. I do all the work on GNU/Linux, and then build a Windows port afterwards.


Good for you. Like to see some stuff made in Linux. Good luck with your project.
_________________
My Websites!
http://members.lycos.co.uk/cardcaptorstacey
http://members.lycos.co.uk/sointokoda
http://members.lycos.co.uk/youthfuldays
http://members.lycos.co.uk/nobodybutboa

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> The Arcade All times are GMT - 8 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group