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)
|
Posted: Tue Jul 27, 2004 7:57 pm Post subject: Python & Leaping Lemmings |
|
|
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 |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Wed Jul 28, 2004 12:39 am Post subject: |
|
|
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 |
|
 |
Machu Righter, a person who rights wrongs

Joined: 09 Jul 2003 Posts: 737
|
Posted: Wed Jul 28, 2004 3:35 pm Post subject: |
|
|
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 |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Wed Jul 28, 2004 4:06 pm Post subject: |
|
|
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 |
|
 |
Shaede Tuck in your shirt.

Joined: 08 Jan 2004 Posts: 107
|
Posted: Wed Jul 28, 2004 5:36 pm Post subject: |
|
|
Hooray!
Sound effects. Higher resolution. Smooth motion. Windows based. More memory allocation!
Looks good. ^_~ |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Wed Jul 28, 2004 6:24 pm Post subject: |
|
|
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 |
|
 |
Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner


Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
|
Posted: Wed Jul 28, 2004 6:26 pm Post subject: |
|
|
Even better! (WinXP has made me even less likeful of Windows.) |
|
Back to top |
|
 |
Shaede Tuck in your shirt.

Joined: 08 Jan 2004 Posts: 107
|
Posted: Thu Jul 29, 2004 10:16 am Post subject: |
|
|
Sweet! I stand corrected. I'm liking it 100x more now!  |
|
Back to top |
|
 |
knight_00000 Monkeez wit Gunz!

Joined: 22 Jul 2003 Posts: 21 Location: CA/USA
|
Posted: Thu Jul 29, 2004 11:22 am Post subject: |
|
|
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 |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Thu Jul 29, 2004 6:05 pm Post subject: Ika |
|
|
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 |
|
 |
NeoTA Idiomatic Nomenclature

Joined: 15 Mar 2004 Posts: 165
|
Posted: Thu Jul 29, 2004 7:45 pm Post subject: |
|
|
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 |
|
 |
Machu Righter, a person who rights wrongs

Joined: 09 Jul 2003 Posts: 737
|
Posted: Thu Jul 29, 2004 8:31 pm Post subject: |
|
|
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 |
|
 |
knight_00000 Monkeez wit Gunz!

Joined: 22 Jul 2003 Posts: 21 Location: CA/USA
|
Posted: Thu Jul 29, 2004 8:43 pm Post subject: |
|
|
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 |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Fri Jul 30, 2004 2:32 pm Post subject: |
|
|
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 |
|
 |
Cardcaptor Stacey Mistress of the Clow

Joined: 24 Feb 2003 Posts: 72 Location: With Mr.Children
|
|
Back to top |
|
 |
|