Hello everyone, this is my "Hello World!!!" post for my blog..
Recently started using 'pygame' module in python. And thought what if I start with writing a program for the first game that I ever played - Snake (in some good old mobile phones)
So here is it, a functional snake using pygame module.. The aim is to gain maximum points by eating the food (extra points through bonus food) and make the snake grow. Biting itself or the rectangular boundary causes the snake to die..
This is analogous to our life where we learn the basics and grab the bigger ones as they arrive which allow us to grow bigger.
Source code
Recently started using 'pygame' module in python. And thought what if I start with writing a program for the first game that I ever played - Snake (in some good old mobile phones)
So here is it, a functional snake using pygame module.. The aim is to gain maximum points by eating the food (extra points through bonus food) and make the snake grow. Biting itself or the rectangular boundary causes the snake to die..
This is analogous to our life where we learn the basics and grab the bigger ones as they arrive which allow us to grow bigger.
Source code

No comments:
Post a Comment