Re: [pygame] Capabilities of Pygame

2012-01-14 Thread ANKUR AGGARWAL
You can check put my repository for pygame examples https://github.com/ankur0890/Pygame-Examples-For-Learning On Sat, Jan 14, 2012 at 4:33 AM, R. Alan Monroe wrote: > > FORTRAN is still used in some circles because it's > > still very fast for number crunching. > > A bit off topic, but I've seen

Re: [pygame] Continuous Shooting

2012-01-13 Thread ANKUR AGGARWAL
Yeah.. I applied the counter logic and it worked for me :) Thanks a lot :) Regards Ankur Aggarwal On Fri, Jan 13, 2012 at 12:02 AM, Julian Marchant wrote: > First off, you need some sort of time management. As it is now, it'll run > at variable speeds depending on how fast the p

Re: [pygame] Delay Between iterations

2012-01-13 Thread ANKUR AGGARWAL
Hey Nate I applied your solution and it worked for me :) Thanks a lot :) Thanks to everybody else too :) Regards Ankur Aggarwal On Fri, Jan 13, 2012 at 2:15 AM, Zack Baker wrote: > Sorry nevermind. Saw your next email > > On Jan 12, 2012, at 12:35 PM, ANKUR AGGARWAL wrote: > > I

[pygame] Re: Delay Between iterations

2012-01-12 Thread ANKUR AGGARWAL
es.add(bullet) allSprites.clear(screen,background) allSprites.update() allSprites.draw(screen) pygame.display.flip() if __name__=='__main__': main() On Thu, Jan 12, 2012 at 11:01 PM, ANKUR AGGARWAL wrote: > import pygame > from p

[pygame] Delay Between iterations

2012-01-12 Thread ANKUR AGGARWAL
n__': main() I was trying to make shooting game. whenever I press the space key bullet object is called (bold code) . I want delay between iterations to produce the gap between the bullets.Tried the time.wait() but its working. Any Ideas?? Thanks In Advance Regards Ankur Aggarwal

[pygame] Continuous Shooting

2012-01-12 Thread ANKUR AGGARWAL
aw(screen) pygame.display.flip() if __name__=='__main__': main() Thanks in advance :) Regards Ankur Aggarwal <><>import pygame from pygame.locals import * import random pygame.init() screen=pygame.display.set_mode((640,480),0,24) pygame.display.set_caption(&q

[pygame] Demo Paint Program

2011-12-28 Thread ANKUR AGGARWAL
Created A Paint Demo Using Pygame API. It's in the github pygame-example repo. Check this out https://github.com/ankur0890/ Pygame-Examples-For-Learning/blob/master/paint.py . Got the idea from "Game Programming By Andy Harris" . Applied my own logic over the idea though :) Regards Ankur Aggarwal

Re: [pygame] Github Pygame Example Repository

2011-12-19 Thread ANKUR AGGARWAL
Thanks for your support... will do that asap :) On Tue, Dec 20, 2011 at 12:20 AM, Jeremy Sharpe < jeremy.adamson.sha...@gmail.com> wrote: > Good stuff. > > Looking around your repository, be careful not to include *~ and .pyc > files in your repo. > > (To get rid of them permanently, delete them

[pygame] Github Pygame Example Repository

2011-12-17 Thread ANKUR AGGARWAL
/ . Suggestions and feedback would be great. Looking for contribution too :) Regards Ankur Aggarwal

[pygame] Difference Between pygame.draw and pygame.gfxdraw

2011-11-28 Thread ANKUR AGGARWAL
out an appropriate answers. Please help!!! Thanks In Advance Regards Ankur Aggarwal

Re: [pygame] Making animation.

2011-05-28 Thread ANKUR AGGARWAL
I made a 3 level small snake game . It have used an animated "blast" shown during the snake collision. For that purpose I used a small sprite sheet and subsurface concept. Download the game and figure it out. Code is available at http://code.google.com/p/hungry-snakes/downloads/list On Sun, May 2

[pygame] Hungry Snake now on Softpedia

2011-05-14 Thread ANKUR AGGARWAL
Game Links - http://code.google.com/p/hungry-snakes/ , http://mac.softpedia.com/get/Games/Hungry-Snake.shtml Certificate Link - http://mac.softpedia.com/progClean/Hungry-Snake-Clean-98721.html Thanks Ankur Aggarwal

[pygame] 3 Level Snake Game Made using Pygame API

2011-05-11 Thread ANKUR AGGARWAL
the three levels and "hungry.py" to play the basic version. Releasing this under GPLv3 :):) Try it out and feedback would be gr8. Here's the download link http://code.google.com/p/hungry-snakes/downloads/list Thanks Ankur Aggarwal

Re: [pygame] Mouse Focus

2011-05-09 Thread ANKUR AGGARWAL
It worked :D:D Thanks a lot :):) Ankur Aggarwal On Mon, May 9, 2011 at 1:49 PM, Scribble Master wrote: > Use the rect of each text surface. Then you can get the mouse position with > pygame.mouse.getpos() > http://www.pygame.org/docs/ref/mouse.html#pygame.mouse.get_pos > > a

[pygame] Mouse Focus

2011-05-08 Thread ANKUR AGGARWAL
I am getting some trouble with the mouse focus too. I have render the text on the screen like- level1 level2 level3 I want an algo that when i click on level1 , it executes the level1 . I am unable to focus on the text too . Please give me an algo for it Thanks in Advance Ankur Aggarwal

Re: [pygame] Underline Text on Focus

2011-05-08 Thread ANKUR AGGARWAL
I tried it and google it on the web too. It's not working :( On Mon, May 9, 2011 at 3:40 AM, Greg Ewing wrote: > ANKUR AGGARWAL wrote: > >> Hey I want to underline the text as soon as mouse gets focussed on it. >> > > Haven't used it myself, but Fonts have a s

[pygame] Underline Text on Focus

2011-05-08 Thread ANKUR AGGARWAL
Hey I want to underline the text as soon as mouse gets focussed on it. Can you please tell me the algo for that Thanks In Advance Ankur Aggarwal

[pygame] Pygame on facebook

2011-05-04 Thread ANKUR AGGARWAL
Hey I made a game using pygame API. i want to put the same on the facebook. Is there's any way to do this. I search around the developers.facebook.com and so far unable to seek something for python. Can you please help in this matter. Thanks in Advance :):) Ankur Aggarwal

[pygame] Rotation About A Point

2011-04-23 Thread ANKUR AGGARWAL
sform.rotate(image,a) screen.blit(image,(100,100)) pygame.display.update() clock.tick(1) Whats my mistake and whats the solution??? Thanks Ankur Aggarwal

[pygame] First Game Attempt

2011-04-18 Thread ANKUR AGGARWAL
Hey I was reading Pygame API for a month and made out a very basic ,small game named as "Hungry Snake" as practice. Want to share out the code with uou guys. Here's the link http://code.google.com/p/hungry-snakes/downloads/list Thanks Ankur Aggarwal

Re: [pygame] Making the sprite sheet background transparent

2011-04-14 Thread ANKUR AGGARWAL
n it > after you load the image. > > > On Thu, Apr 14, 2011 at 3:26 PM, ANKUR AGGARWAL > wrote: > >> Hey >> I want to make the sprite sheet background as transparent. How I can do >> that??? >> Code and the images is attached with the mail. Thanks in advance. >> >> Ankur Aggarwal >> > >

[pygame] Making the sprite sheet background transparent

2011-04-14 Thread ANKUR AGGARWAL
Hey I want to make the sprite sheet background as transparent. How I can do that??? Code and the images is attached with the mail. Thanks in advance. Ankur Aggarwal import pygame from pygame.locals import * from sys import exit counter=0 def update(): global counter counter=(counter+1)%5

[pygame] blit a list containing surfaces

2011-04-12 Thread ANKUR AGGARWAL
I created a list which contains the subsurfaces of the sprite image. Now i want to blit it on the screen so that it seems to be like a animation. I tried but unable to do so. So kindly help me in the algo of how to blit this list (Images=[, , , , , , , ]). Thanks in advance Ankur Aggarwal

[pygame] Sprite examples with images

2011-04-11 Thread ANKUR AGGARWAL
of sprites where images are also available so that i can get a better understanding. Thanks in Advance :):) Ankur Aggarwal

[pygame] Recommendations required

2011-04-04 Thread ANKUR AGGARWAL
Hey I am reading pygame module and experimenting with it in small codes too . I want your help. I want you to recommend the games ,beginner of this module should try to develop as a practice or so. Thanks Ankur Aggarwal