Skip to content

willcalderbank/python-pygame-particle-spawner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

python-pygame-particle-spawner

Possibly one of the most pointless pygame programs ever created, written in an a few hours just to see how pygame works. If nothing else it looks pretty.

How it works/structure

X number of points are created each one of these has a "track", these tracks are straight lines orginating from one point radiating randomly outwards, this point is the center point for the spawner. The points also have a ttl/distance to live, randomly assigned to them when created up to a maximum stated number.

For each new clock tick these points are moved alone their track a distance C then redrawen, if they have travelled further than there ttl they are removed and deleted.

Points are randomly created thoughout the running of the program based on a random number that is generated at each clock tick.

The chance of a point being created is easily changed, along with the colour, size and max ttl.

The center point of the spawner can be moved with a mouse click

Requirements

-Pygame

(Wow that was a lot of documentation for something so small and probably be forgot about)

About

Silly little program just playing with pygame

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages