KWarBots – Colors, Collision Detection and More

This is a new video for my KDE game project, KWarBots. Here you can see some game objects/items with colors (the color can be changed on the map file, so it’s customizable when creating the map).

There the robot collides on this simple maze and always choose the left path to follow. It’s sufficient to demonstrate it for now.

If you are curious about the code to control the robot, it’s time to see this small piece of the robot code, used on this video:

1
2
3
4
5
6
7
8
#!/usr/bin/env kross
import sys
import Robot
def main():
  if (Robot.isMoving() == False):
    Robot.moveForward();
  if (Robot.collided() == True):
    Robot.turnLeft();

Yes, it’s just it! And finally, the video:

[youtube http://www.youtube.com/v/i3nZmv7y1xw?hd=1]