DS-like `gestures` ?

Game Editor comments and discussion.

DS-like `gestures` ?

Postby akhad » Mon Sep 01, 2008 2:13 pm

Just wondering about this, though it's a little beyond my know-how. Has anyone attempted any screen-gesture code ? Like, for example, draw a circle gesture on the screen and a circle appears at the right size and screen co-ordinates, or a gesture that tells the difference between a Tick and a Cross and draws the respective tick or cross graphic ?
Any attempts at this as Global Code routines would be very interesting.
User avatar
akhad
 
Posts: 43
Joined: Tue Jan 16, 2007 1:59 pm
Location: U.K
Score: 0 Give a positive score

Re: DS-like `gestures` ?

Postby pyrometal » Mon Sep 01, 2008 2:37 pm

Interesting idea, but this is also very non-trivial to code...
SPRITE WARRIOR:
Free, open-source & crossplatform pixel art editor (currently under construction).
User avatar
pyrometal
 
Posts: 706
Joined: Wed Nov 28, 2007 4:07 am
Location: Kingston, ON, Canada
Score: 86 Give a positive score

Re: DS-like `gestures` ?

Postby BlarghNRawr » Mon Sep 01, 2008 3:35 pm

canvas?
Download Game Music
current projects:
Bold! ?% Started mechanics
Unnamed puzzle game 60% --i need a name!--
User avatar
BlarghNRawr
 
Posts: 767
Joined: Wed Jun 25, 2008 12:36 am
Location: Not using G-E anymore. Now using Source SDK.
Score: 27 Give a positive score

Re: DS-like `gestures` ?

Postby edh » Mon Sep 01, 2008 11:18 pm

I looked into this a little because of my interest in gp2x and windows mobile touchscreens.

One possible tip for solution is having a grid of some sort and using it to detect the gesture. As the mouse moves through the grid, you check to see if it is a gesture. Here is an example of the concept...

Lets say you divide the screen into a grid like this:
[1][2][3]
[4][5][6]
[7][8][9]

You might make a gesture like an "L" which would be drawn by click-dragging from 1 to 4 to 7 to 8 to 9 in that order. So, the gesture for "L" would be "14789".
You may have to make some "fuzziness" like "145" or "256" also match the "L" gesture.

An "O" might be 21478963 (always start at the top, or 12 O'Clock position and draw counter-clockwise). Or, with some fuzziness, you might allow 2563 or something.
User avatar
edh
 
Posts: 233
Joined: Thu Sep 13, 2007 12:17 am
Location: Maine, USA
Score: 14 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron