Project ReTouch: First images

Welcome to my new project: ReTouch. The main idea of this project is to use a Meego device as a remote keyboard/touchpad device to control a Linux desktop over wifi or bluetooh.

For this, I’m using Qt4 (and on the future Qt5) to develop both the client and server sides of this application.

 

Main area

The client will just work on the Meego device (grabbing the gestures from a touch area and from a virtual keryboard) and send this information over a connection to the server part, who will be responsible to convert its input and perform these events on the machine.

The application running on the device (currently I’m testing on the QtCreator‘s simulator) is being developed using QtQuick (QML), as you can see on the screenshots:

 

Getting user input User touch areas

 

The server is the more complicated side, as its need to receive the client input and convert to the system signals to emulate real keyboard/mouse events. For this, I’ve done some tests using Xlib, with successful results.

By now, I’m finishing the client’s interface and starting capturing the virtual keyboard events (the touch ones are working well), and finishing projecting the basic connection protocol (its demand some security governance too).

So, stay tuned to future updates 🙂

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]

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 😀

KWarBots on KDE svn XD

Yeah, finally I commited KWarBots on playground/games on KDE SVN! (trully merged my internal git repository onto). It still not playable; it’s on heavy development, but now you can follow how things are going on the project…

Websvn: http://websvn.kde.org/trunk/playground/games/KWarBots/
svn: svn co svn://anonsvn.kde.org/home/kde/trunk/playground/games/KWarBots KWarBots

🙂