PYTHON - Free Blender Game

Hi guys
just made a remake of the Mobile Phone game Snake or Cobra in our Blender GE
Just a simple 2d like.
But it has got a good python technique that you can use or learn from to make games like this.
I 'll make a better version with a real snake instead of balls.
You can download it from
http://www.fileden.com/files/2006/12/18/525368/Python.zip
If there is any Linux user feel free to change the zip to rar or any other which you guys use. and post a link

nice game man:cool:
very good work and script:yes:

What a classic. This reminds me of playing Nibbles in Q-BASIC when I was first learning to program as a kid. It runs very well for the most part, though I have a few suggestions to improve it:

  • Shrink the intro text to fit the camera view so that it displays properly in the BlenderPlayer.

  • Turn off positive pulse mode on the sensor named “keys” which is connected to the “ChangeDir” script. It is throwing errors to the console (and bogging down the logic processing), but turning off positive pulse mode stops this.

  • You have an empty with a keyboard sensor hooked to the “ChangeDir” script. This seems to be unnecessary, and it is throwing errors to the console because the sensor is named “sensor”, not “keys”. I deleted the empty, and the game played fine.

  • Your “random” placement is the same every time, because computer generated randoms are not random. To solve this, I suggest you use a script to seed the random actuators with the seconds value of the current time (I’m not exactly sure how to do that, but I’m sure it’s possible).

  • I can sometimes see the “snack” flash in the top left corner before it is randomly placed. You might try giving it a very short alpha animation, so that it is not visible until it has been repositioned.

These are all minor appearance and performance issues, though. The gameplay is right on, and it’s just as mindlessly entertaining as the original. Keep it up!

Hi thanks for you review Pocho & Blendenzo
Actually i used the empty first to get ChangeDir. But later made it in theSnake itself. I forgot to remove the empty
Yes i have to use the python to set seed and create randomness.
This is just a work of 4 hours. My original plan was to make a complete snake not just balls.Actually i made this game as 2D in Basic 2 years ago. In that i used actual snake like pictures not just balls. I will try to do the same in Blender.
Thanks.