|
Having been turned on to Pygame in this thread and elsewhere, I've decided I really want to make a version of the board game Acquire. Before I even start, I'm wondering what I can do with my game if I make it using Pygame. Ideally I'd like to wrap it up into an installer/app for Windows/Mac/*nix/whatever that comes with its own copies of everything needed, so average Joe can download my game, set it up and then just run it. But everything I can find online tells me that for someone to play my game, they'd need to download Python (if they don't have it), Pygame and various other libraries. I don't know about you, but if I had to install that much crap to play a game, I'd never play anything. So does anyone know about distributing games made in Pygame in completely standalone packages? Can I do it?
|
# ¿ Jan 25, 2008 07:35 |
|
|
# ¿ Apr 28, 2024 09:06 |
|
Oh, OK, I thought I read that even after py2exe/py2app there were still some unresolved dependencies. Glad I'm wrong!
|
# ¿ Jan 25, 2008 17:41 |
|
darknife posted:How do I reference and use a object( an integer) in a function that is defined outside of it? code:
Haha owned son! Though you added the cautionary tale. vvvv pokeyman fucked around with this message at 07:46 on Mar 28, 2009 |
# ¿ Mar 28, 2009 07:39 |
|
darknife posted:Well, I know that using the same name is not good practice. I don't do that. It was just an example where I messed up on the names. Don't rewrite your code and ask us to debug that. Put your code in (or use pastebin or something if it's too long) so we can help you out. No point introducing yet another layer of abstraction.
|
# ¿ Mar 28, 2009 11:11 |
|
I feel like I should've seen something on the subject before, but I can't seem to find anything. Why is it that when you want to join a list of elements with a separator string, you call separator.join(a_sequence)? It never made any sense to me, and I always get it wrong because I think it makes more sense to call join on the sequence (i.e. seq.join(',')). I don't mean to start a holy war, I really don't care; I just think that maybe I'd remember it better if I knew why it's done this way.
|
# ¿ Apr 14, 2009 06:13 |
|
That makes sense. I always got tripped up, as I thought of it as "why should the string handle putting itself between items of a sequence". I should've considered the implementation. Thanks!
|
# ¿ Apr 14, 2009 07:56 |
|
|
# ¿ Apr 28, 2024 09:06 |
|
Thermopyle posted:Right, but I mean why create the Error class at all? Why not just have the InputError and TransitionError inherit directly from Exception? So you can catch all of your exceptions at once, but let others' exceptions move up the call stack.
|
# ¿ Oct 21, 2009 06:19 |