GPWiki.org
GPWiki.org
It is currently Wed Jun 19, 2013 2:51 pm

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Wed May 21, 2008 9:23 pm 
Rookie

Joined: Mon May 19, 2008 1:29 am
Posts: 2
What is a good graphics library for Python?
I tried Pygame but I didn't like it at all.

_________________
Windows shares 98% of it's code with a virus


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 21, 2008 9:47 pm 
Prolific Poster

Joined: Fri Apr 25, 2008 7:37 am
Posts: 24
This question is way too generic to give a reasonable answer.
What exactly do you want to use it for (2d/3d)? What didn't you like about pygame?


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 21, 2008 10:28 pm 
Game Programming Guru

Joined: Thu Jun 08, 2006 7:48 pm
Posts: 1248
Location: Scotland
Rabbyt? I've never used it, but Snowballz uses it, and snowballz is definately the best rts ever*


*not really, but it's quite fun.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 21, 2008 11:43 pm 
Rookie

Joined: Mon May 19, 2008 1:29 am
Posts: 2
My problem with Pygame is its complexity. I don't want to have to do this sorta **** at the beginning of my program:

Code:
import pygame
from pygame import *
from sys import exit
pygame.init()


Also I don't want to have to create a cursor graphic, set the title, and the like. I just want to make a simple 2d game and I don't care so much about extra features. I just want 2d graphics and music. :spin

_________________
Windows shares 98% of it's code with a virus


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 22, 2008 9:04 am 
Game Programming Guru

Joined: Thu Jun 08, 2006 7:48 pm
Posts: 1248
Location: Scotland
surely all you need is import pygame and pygame.init.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 22, 2008 1:54 pm 
Technomaniac

Joined: Sun Dec 05, 2004 11:27 am
Posts: 3249
Location: Sydney, Australia
yanom wrote:
My problem with Pygame is its complexity. I don't want to have to do this sorta **** at the beginning of my program:

Code:
import pygame
from pygame import *
from sys import exit
pygame.init()


Also I don't want to have to create a cursor graphic, set the title, and the like. I just want to make a simple 2d game and I don't care so much about extra features. I just want 2d graphics and music. :spin


So if I made a new library, lets call it SuperPygame, and the code for it was this:

Code:
def init: #or whatever the keyword for defining a function in python is
 import pygame
 from pygame import *
 from sys import exit
 pygame.init()


Would you use it? :)

_________________
Trying is the first step towards failure
b


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 22, 2008 5:01 pm 
Prolific Poster

Joined: Fri Apr 25, 2008 7:37 am
Posts: 24
Ack, I also don't actually see why having to write 4 lines for init is a problem. I don't know how short your game would be but if 4 lines are considered overhead I fear you wont find an existing library that is as "short" as you want


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 22, 2008 10:59 pm 
Game Programming Guru

Joined: Thu Jun 08, 2006 7:48 pm
Posts: 1248
Location: Scotland
in an object-oriented library like pygame i don't really see where a global init function should fit in, so imagainst it for that reason. but c'mon... 4 lines. what's so bad about that? and having to set the window title isn't exactly a problem either.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group