Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (120)
games submitted by our members
Games in WIP (577)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  A noob's project  (Read 2951 times)
0 Members and 1 Guest are viewing this topic.
Offline DudeJericho

Junior Newbie




窮すれば通ず


« Posted 2011-04-03 10:50:33 »

Hello all, I know that despite being my first post I'm asking for something like this, but I figured I might as well cut to the chase.

I want to make a Kanji game, for those who don't know Kanji are Japanese characters that were borrowed from the Chinese many years ago, but enough about that, basically in this game I want to teach the user how to do the correct stroke order for each character.
I'll be completely honest, I suck at programming so this project is like a learn as I go along kind of thing. So I figured I would do something quite simple, I first show the user through images or something how to actually draw the character, then the user would have to match up certain dots or points (which would be then shown corrected by a line i.e. "stroke") in the correct order. If they match up the wrong points, then instead of say a green line (as in correct) it would be a red line and there would be a message or something at the side saying they messed up along with a redo button.
Anyway I think most of you get the idea, I would like to hear what you think of this and if any of you have any suggestions in terms of implementing since I'm finding it hard how to do so. I'm planning to create at least 10 kanji for this game, so my guess is that I need to create something that will let me use co-ordinates for the points on the window. I'm pretty sure I'll be using Paint quite a bit and mouseListener.
Any suggestions or advice (maybe things I should look up on?) would be greatly appreciated. Thanks.
Offline Kurten

Junior Duke


Medals: 3
Exp: 3 years


-w-


« Reply #1 - Posted 2011-04-03 11:18:05 »

Nice idea for a game, im afraid i can't help you program this game since it's a bit over my level, but i strongly like the idea!

//クルテン
Offline DudeJericho

Junior Newbie




窮すれば通ず


« Reply #2 - Posted 2011-04-03 17:43:28 »

Thanks for the encouragement クルテンさん Wink
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline DudeJericho

Junior Newbie




窮すれば通ず


« Reply #3 - Posted 2011-04-05 21:51:49 »

Ok, after two whole days of research I have finally come across something, the MouseMotionListener interface, I believe I may be able to use this to be able to let a user draw on a panel using the mouse instead of that "points" idea which seems like could get abit messy and tricky, however I'm still not sure how I can use it for capturing the mouse cursor movement/location so for example if they started at a certain point and drew to another certain point that information would need to be captured and assesed seeing if they drew the correct stroke. Just writing this down makes it seem like it would be complicated Tongue
Any help/advice at all? Anyone? I'm not asking anyone to write anything for me, just want their opinions/ideas or areas they think I should look into..
Offline aazimon
« Reply #4 - Posted 2011-04-06 03:00:46 »

Have your component that will be drawn on, be the listener of the MouseMotion. See the tutorial here http://download.oracle.com/javase/tutorial/uiswing/events/mousemotionlistener.html. In the mouseDragged method, the MouseEvent has the x and y coordinates, and simple use those to draw on the screen.
Offline DudeJericho

Junior Newbie




窮すれば通ず


« Reply #5 - Posted 2011-04-08 23:07:44 »

Thanks for the reply.
Drawing on the window is not the problem really, its somehow having each character assigned certain co-ordinates that the user needs to cover to do the correct stroke, like it would be an array or co-ordinates for one stroke and if the co-ordinates of that array how been looped through meaning the user has dragged the mouse over them, then another array of co-ordinates would be available for them to draw over, but I don't think that will work. This is quite a hard program for me to do (especially as a newbie) which is why I'm trying to brainstorm abit here..
Offline philfrei
« Reply #6 - Posted 2011-04-09 00:16:39 »

OK, here is an idea.

Suppose you broke up the area to be covered into component polygons. The line that is drawn can be tested against the array of polygons, using a polygon's "contains" function. The draw act is successful if:

1) the mouse's location proceeds through all the polygons, in correct order;
2) the mouse's location never goes outside of any of the polygons, or (alternatively, if the polygon array is not perfectly contiguous) if it does not stray into a border(offlimits) polygon.

"It's after the end of the world! Don't you know that yet?"
Offline DudeJericho

Junior Newbie




窮すれば通ず


« Reply #7 - Posted 2011-04-09 06:36:10 »

That sounds good! I'll mess around with that abit. Thank you!  Smiley
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Longarmx (52 views)
2014-10-17 03:59:02

Norakomi (44 views)
2014-10-16 15:22:06

Norakomi (34 views)
2014-10-16 15:20:20

lcass (38 views)
2014-10-15 16:18:58

TehJavaDev (68 views)
2014-10-14 00:39:48

TehJavaDev (68 views)
2014-10-14 00:35:47

TehJavaDev (60 views)
2014-10-14 00:32:37

BurntPizza (73 views)
2014-10-11 23:24:42

BurntPizza (45 views)
2014-10-11 23:10:45

BurntPizza (86 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!