lithekod / snake-ribs

A simple python code skeletons for making games.
MIT License
0 stars 2 forks source link

Simple rectangle collision #5

Closed FredTheDino closed 4 years ago

FredTheDino commented 4 years ago

Simple collision, I was thinking of adding circle collision aswell, or extracting the core of the collision resolution to a function that works on two point masses.

FredTheDino commented 4 years ago

My idea, was to not break out the functions into separate files. This would keep it really simple to develop for this. It might be better to have a file that we supply, that they then call into, but not giving them too many files is in my head a good idea. 2 files might be the sweetspot but I don't think splitting it up like a normal project is a good idea.

TheZoq2 commented 4 years ago

Going to more than 2 files is probably excessive, yea. I'd say we can leave it to a things_you_should_care_about.py and utilities.py

Alternatively, we can put all "strange" functions at the end with a big comment that says "you are not expected to understand this"