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:

#!/usr/bin/env kross
import sys
import Robot
def main():
  if (Robot.isMoving() == False):
  if (Robot.collided() == True):

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


KWarBots: Work-in-Progress

Yeah, KWarBots still alive, and I’m here with some news (although the game is not playable yet). I developed some objects to use on the game, that you can see a few examples below. Soon I’ll put here a new video of the game, after finishing some tasks, like loading the game objects from a Map object…

KWarBots: some image examples

1- BlockObject: a material that cannot be destroyed. This object accepts color variations on your declaration (according the Map file);The robot thumbnail

2- TerrainObject: general terrain (that can be used as a “background” on the BattleArea), like dirty, sand, grass… This object doesn’t accepts color variation;

3- TileObject: general tile, used as a background too, but it accepts color variations;

4- WallObject: a destructible wall. Your resistance varies according the Map file and accepts color variations too;

5- WaterObject: an animated object, that doesn’t accepts color variations;

6- RobotObject: the animated robot object.

All of these images (and another ones, that I’ll keep in secret by now ;)) were made using kolourpaint, with a non-isometric pixel art visual (I love it, but as you can see, I don’t know how to draw water :p) and packaged on svgz files with inkscape. I made a class that load the images from the svgz files and change your default color values, acccording to your behavior. As some of them can be loaded multiple times and used on another positions, I have added a simple caching scheme on the ImageLoader class.

So, now I must to improve the Map loading structure and create some colliding mechanism to create a new experience with KWarBots… Wait for the video soon 😀

Finalmente, um site pessoal

Tá, tem cara de blog (e é um blog), mas deixa eu ser feliz assim… Agora ao menos tenho um local para poder colocar minhas coisas e os projetos que venho tentando desenvolver, dividindo o antigo The CoRE no The CoRE v2.0 e este aqui, onde trouxe os artigos relevantes de diversas categorias, como o jogo para KDE feito em QT, KWarBots; o bot tradutor para IRC feito em Python, transbot; as histórias cyberpunk CyberEnvironment; o script greasemonkey para remoção de propagandas GMail Without Ads; e por ai vai…

Espero sempre atualizar com algum material novo, e logo também terminar alguns ajustes que ainda faltam por aqui…