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
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
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
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
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
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
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
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
/
. Suggestions and feedback would be great. Looking for contribution
too :)
Regards
Ankur Aggarwal
out an appropriate answers. Please help!!!
Thanks In Advance
Regards
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
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
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
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
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
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
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
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
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
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
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
>>
>
>
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
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
of
sprites where images are also available so that i can get a better
understanding. Thanks in Advance :):)
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
25 matches
Mail list logo