NVI
|
  |
| Joined: 11 Jan 2009 |
| Total Posts: 4744 |
|
|
| 12 Jan 2013 06:42 PM |
Has anyone tried this? I'd post my code but it's too messy. The basic algorithm is to go through every point, find the delta between the angle from the point and the angle to the next point, if it's below a certain value, it's in a line - if not, make a new line.
Then I go through my lines and throw out crap ones (ones with too-small differences between the last line and it's angle, ones that are too short, and ones that end up with perfect 0 or 90 degree angles somehow.)
After that, I check if I have at least two lines, then I check their angles in order to see if they match shapes (so far, a V and an upside down V).
Does anyone know a better way? |
|
|
| Report Abuse |
|
|
| |
|
|
| 12 Jan 2013 06:49 PM |
| Noobertuber used this sort of system in his 'Magicians' game. Ask him. |
|
|
| Report Abuse |
|
|
| |
|
NVI
|
  |
| Joined: 11 Jan 2009 |
| Total Posts: 4744 |
|
|
| 12 Jan 2013 06:51 PM |
| You guys are incredibly useless |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2013 06:52 PM |
@NVI Go try out Windows 8. It has nice mouse gestures and it may be what you are looking for.
~ God Bless ~ |
|
|
| Report Abuse |
|
|
| |
|
Garnished
|
  |
| Joined: 09 Apr 2012 |
| Total Posts: 12695 |
|
| |
|
Garnished
|
  |
| Joined: 09 Apr 2012 |
| Total Posts: 12695 |
|
| |
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
|
| 12 Jan 2013 07:02 PM |
You can take the mouse points and turn them into a vector group of sines and cosines, like this:
This way, when another path is drawn, you can compare the similarity in cosines and sines without having to worry about positional aspects.
I was trying to post example code, but I was blocked due to the moronic filter which uses, probably, the worst algorithm written. |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2013 07:04 PM |
^ In other words, Windows 8 is an operating system revolving around nothing but mouse gestures.
~ God Bless ~ |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2013 07:12 PM |
| I can't stand operating systems which lack keyboards. They make me cringe. |
|
|
| Report Abuse |
|
|
xSIXx
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 9202 |
|
|
| 12 Jan 2013 07:14 PM |
@thek00l
1. get windows 8 2. download third party start menu
done. |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2013 07:16 PM |
@xSIXx 1. get a mac it just works. |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2013 07:16 PM |
| Anywhere I can pirate windows 8 securely? :3 |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2013 07:17 PM |
@Holo,
1. Get a Mac.
2. Experience lag.
3. Try to upgrade its hardware.
4. It just doesn't work. |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2013 07:19 PM |
1. Goodboy! :D 2. Lag? Maybe when you keep it for years and get sophisticated updates which the computer cannot handle. 3. You can upgrade RAM. You can even get a Mac Pro and upgrade its hardware. 4. Yes it does. |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2013 07:20 PM |
| Can I upgrade the processor? |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2013 07:22 PM |
| Can you upgrade the processor for anything without tearing the entire computer apart? |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2013 07:26 PM |
Dunno, I wish I could. My current computer's processor is a piece of junk, and it was bought only a year ago! I'm on a laptop, I didn't purchase it.
|
|
|
| Report Abuse |
|
|
xSIXx
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 9202 |
|
| |
|
xSIXx
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 9202 |
|
|
| 12 Jan 2013 07:31 PM |
| well, if you are on a laptop, good luck |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2013 07:39 PM |
| Whatever, the thing's falling apart. I want to create my own before I go to college. |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
|
| 12 Jan 2013 08:20 PM |
@Oysi
Reminds me of Castlevania, personally. |
|
|
| Report Abuse |
|
|